Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Player.sendActionFailed()


      return;
   
    // hex1r0: temp solution
    if (activeChar.isBlocked())
    {
      activeChar.sendActionFailed();
      return;
    }
   
    if (!Config.ALLOW_DISCARDITEM)
    {
View Full Code Here


      activeChar.sendPacket(Msg.YOU_CANNOT_DO_THAT_WHILE_FISHING);
      return;
    }
    if (activeChar.isActionsDisabled() || activeChar.isSitting())
    {
      activeChar.sendActionFailed();
      return;
    }
    if (!activeChar.isInRangeSq(_loc, 22500) || Math.abs(_loc.z - activeChar.getZ()) > 50)
    {
      activeChar.sendPacket(Msg.THAT_IS_TOO_FAR_FROM_YOU_TO_DISCARD);
View Full Code Here

      return;
    }
    L2ItemInstance oldItem = activeChar.getInventory().getItemByObjectId(_objectId);
    if (oldItem == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    if (!oldItem.canBeDropped(activeChar, false))
    {
      activeChar.sendPacket(Msg.THAT_ITEM_CANNOT_BE_DISCARDED);
View Full Code Here

      return;
    }
    long oldCount = oldItem.getCount();
    if (oldCount < _count)
    {
      activeChar.sendActionFailed();
      return;
    }
    L2ItemInstance dropedItem = activeChar.getInventory().dropItem(_objectId, _count, false);
    if (dropedItem == null)
    {
View Full Code Here

      return;
    }
    L2ItemInstance dropedItem = activeChar.getInventory().dropItem(_objectId, _count, false);
    if (dropedItem == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    dropedItem.dropToTheGround(activeChar, _loc);
    Log.LogItem(activeChar, Log.Drop, dropedItem);
    activeChar.updateStats();
View Full Code Here

      return;
    }
    L2Clan clan = activeChar.getClan();
    if(clan == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    L2Alliance alliance = clan.getAlliance();
    if(alliance == null)
    {
View Full Code Here

        temp.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
        if(temp.getPet() != null)
        {
          temp.getPet().getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
        }
        temp.sendActionFailed();
      }
    }
    for(Long storedId : _team2)
    {
      if((temp = L2ObjectsStorage.getAsPlayer(storedId)) != null)
View Full Code Here

        temp.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
        if(temp.getPet() != null)
        {
          temp.getPet().getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
        }
        temp.sendActionFailed();
      }
    }
  }

  /**
 
View Full Code Here

      return;
    }
    ConcurrentLinkedQueue<L2ItemInstance> list = activeChar.getInventory().getRefundItemsList();
    if(list == null || list.isEmpty())
    {
      activeChar.sendActionFailed();
      return;
    }
    L2NpcInstance npc = activeChar.getLastNpc();
    boolean isValidMerchant = npc instanceof L2ClanHallManagerInstance || npc instanceof L2MerchantInstance || npc instanceof L2MercManagerInstance || npc instanceof L2CastleChamberlainInstance || npc instanceof L2NpcFriendInstance;
    if(!activeChar.isGM() && (npc == null || !isValidMerchant || !activeChar.isInRange(npc.getLoc(), L2Character.INTERACTION_DISTANCE)))
View Full Code Here

    }
    L2NpcInstance npc = activeChar.getLastNpc();
    boolean isValidMerchant = npc instanceof L2ClanHallManagerInstance || npc instanceof L2MerchantInstance || npc instanceof L2MercManagerInstance || npc instanceof L2CastleChamberlainInstance || npc instanceof L2NpcFriendInstance;
    if(!activeChar.isGM() && (npc == null || !isValidMerchant || !activeChar.isInRange(npc.getLoc(), L2Character.INTERACTION_DISTANCE)))
    {
      activeChar.sendActionFailed();
      return;
    }
    GArray<L2ItemInstance> toreturn = new GArray<L2ItemInstance>(_ids.length);
    long price = 0, weight = 0;
    for(int itemId : _ids)
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.