Package net.sf.l2j.gameserver.model.actor.instance

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.sendPacket()


        L2PcInstance activeChar = getClient().getActiveChar();
        if (activeChar == null) return;

        L2HennaInstance[] henna = HennaTreeTable.getInstance().getAvailableHenna(activeChar.getClassId());
        HennaEquipList he = new HennaEquipList(activeChar, henna);
        activeChar.sendPacket(he);
    }

    /* (non-Javadoc)
     * @see net.sf.l2j.gameserver.clientpackets.ClientBasePacket#getType()
     */
 
View Full Code Here


                  }

                      SystemMessage smsg = new SystemMessage(SystemMessageId.S1_GAVE_YOU_S2_DMG);
                      smsg.addString(activeChar.getName());
                      smsg.addNumber(damage);
                      player.sendPacket(smsg);

                }
                else
                  target.reduceCurrentHp(damage, activeChar);
                  }
View Full Code Here

                  if (attacker instanceof L2PcInstance)
                  {
                    L2PcInstance player = (L2PcInstance)attacker;
                    if (isOverhit() && attacker == getOverhitAttacker())
                    {
                      player.sendPacket(new SystemMessage(SystemMessageId.OVER_HIT));
                      exp += calculateOverhitExp(exp);
                    }
                  }

                  // Distribute the Exp and SP between the L2PcInstance and its L2Summon
View Full Code Here

                if (attacker instanceof L2PcInstance)
                {
                  L2PcInstance player = (L2PcInstance)attacker;
                  if (isOverhit() && attacker == getOverhitAttacker())
                  {
                    player.sendPacket(new SystemMessage(SystemMessageId.OVER_HIT));
                    exp += calculateOverhitExp(exp);
                  }
                }

                // Distribute Experience and SP rewards to L2PcInstance Party members in the known area of the last attacker
View Full Code Here

    L2PcInstance activeChar = (L2PcInstance) playable;
    L2Object target = activeChar.getTarget();

    if (!(target instanceof L2DoorInstance))
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
      activeChar.sendPacket(new ActionFailed());
      return;
    }
    L2DoorInstance door = (L2DoorInstance)target;
View Full Code Here

    L2Object target = activeChar.getTarget();

    if (!(target instanceof L2DoorInstance))
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
      activeChar.sendPacket(new ActionFailed());
      return;
    }
    L2DoorInstance door = (L2DoorInstance)target;

    if (!(activeChar.isInsideRadius(door, INTERACTION_DISTANCE, false, false)))
View Full Code Here

    L2DoorInstance door = (L2DoorInstance)target;

    if (!(activeChar.isInsideRadius(door, INTERACTION_DISTANCE, false, false)))
    {
      activeChar.sendMessage("Too far.");
      activeChar.sendPacket(new ActionFailed());
      return;
    }
    if (activeChar.getAbnormalEffect() > 0 || activeChar.isInCombat())
    {
      activeChar.sendMessage("You cannot use the key now.");
View Full Code Here

      return;
    }
    if (activeChar.getAbnormalEffect() > 0 || activeChar.isInCombat())
    {
      activeChar.sendMessage("You cannot use the key now.");
      activeChar.sendPacket(new ActionFailed());
      return;
    }

    int openChance = 35;
View Full Code Here

                  else {
                    //test with: activeChar.sendPacket(new SystemMessage(SystemMessage.FAILED_TO_UNLOCK_DOOR));
                    activeChar.sendMessage("You failed to open Anterooms Door.");
                    activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 13));
                PlaySound playSound = new PlaySound("interfacesound.system_close_01");
                activeChar.sendPacket(playSound);
                  }
        }
        else{
          activeChar.sendMessage("Incorrect Door.");
        }
View Full Code Here

        if ((SevenSigns.getInstance().isSealValidationPeriod() || SevenSigns.getInstance().isCompResultsPeriod()) && _page == 4)
            return;

    SSQStatus ssqs = new SSQStatus(activeChar, _page);
    activeChar.sendPacket(ssqs);
  }

  /* (non-Javadoc)
   * @see net.sf.l2j.gameserver.clientpackets.ClientBasePacket#getType()
   */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.