Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.L2Object.onAction()


  private void handleTarget(String command, L2PcInstance activeChar) {
    try {
      String targetName = command.substring(13);
      L2Object obj = L2World.getInstance().getPlayer(targetName);
      if ((obj != null) && (obj instanceof L2PcInstance)) {
        obj.onAction(activeChar);
      } else {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        sm.addString("Player "+targetName+" not found");
        activeChar.sendPacket(sm);
      }
View Full Code Here


    if (activeChar.getPrivateStoreType()==0 && activeChar.getActiveRequester()==null)
    {
      switch (_actionId)
      {
        case 0:
          obj.onAction(activeChar);
          break;
        case 1:
          if (obj instanceof L2Character && ((L2Character)obj).isAlikeDead())
            obj.onAction(activeChar);
          else
View Full Code Here

        case 0:
          obj.onAction(activeChar);
          break;
        case 1:
          if (obj instanceof L2Character && ((L2Character)obj).isAlikeDead())
            obj.onAction(activeChar);
          else
            obj.onActionShift(getClient());
          break;
        default:
          // Ivalid action detected (probably client cheating), log this
View Full Code Here

    else
      target = L2World.getInstance().findObject(_objectId);
    if (target == null) return;
    if (activeChar.getTarget() != target)
    {
      target.onAction(activeChar);
    }
    else
    {
      if ((target.getObjectId() != activeChar.getObjectId())
          && activeChar.getPrivateStoreType() ==0
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.