Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Object.onAction()


    {
      String targetName = wordList[1];
      L2Object obj = L2World.getPlayer(targetName);
      if(obj != null && obj.isPlayer())
      {
        obj.onAction(activeChar, false);
      }
      else
      {
        activeChar.sendMessage("Player " + targetName + " not found");
      }
View Full Code Here


      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.getTarget() != target)
    {
      target.onAction(activeChar, _attackId == 1);
      return;
    }
    if(target.getObjectId() != activeChar.getObjectId() && activeChar.getPrivateStoreType() == L2Player.STORE_PRIVATE_NONE && !activeChar.isInTransaction())
    {
      target.onForcedAttack(activeChar, _attackId == 1);
View Full Code Here

      if(activeChar.getAggressionTarget() != null && activeChar.getAggressionTarget() != obj)
      {
        activeChar.sendActionFailed();
        return;
      }
      obj.onAction(activeChar, _actionId == 1);
    }
    catch(NullPointerException e)
    {
      e.printStackTrace();
    }
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.