Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Object.onAction()


    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:
          // Invalid action detected (probably client cheating), log this
View Full Code Here

      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");
View Full Code Here

        }
      }
    }
   
    if (activeChar.getTarget() != target)
      target.onAction(activeChar);
    else
    {
      if ((target.getObjectId() != activeChar.getObjectId()) && activeChar.getPrivateStoreType() == 0
      /* && activeChar.getActiveRequester() ==null */)
        target.onForcedAttack(activeChar);
 
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.