Package l2p.gameserver.model

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


        }
      }
    }
    if(toreturn.isEmpty())
    {
      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.getAdena() < price)
    {
      activeChar.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
View Full Code Here


      return;
    }
    if(activeChar.getAdena() < price)
    {
      activeChar.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
      activeChar.sendActionFailed();
      return;
    }
    if(!activeChar.getInventory().validateWeight(weight))
    {
      sendPacket(Msg.YOU_HAVE_EXCEEDED_THE_WEIGHT_LIMIT);
View Full Code Here

      return;
    }
    if(!activeChar.getInventory().validateWeight(weight))
    {
      sendPacket(Msg.YOU_HAVE_EXCEEDED_THE_WEIGHT_LIMIT);
      activeChar.sendActionFailed();
      return;
    }
    if(!activeChar.getInventory().validateCapacity(toreturn))
    {
      sendPacket(Msg.YOUR_INVENTORY_IS_FULL);
View Full Code Here

      return;
    }
    if(!activeChar.getInventory().validateCapacity(toreturn))
    {
      sendPacket(Msg.YOUR_INVENTORY_IS_FULL);
      activeChar.sendActionFailed();
      return;
    }
    if(!activeChar.getInventory().validateWeight(weight))
    {
      sendPacket(Msg.YOU_HAVE_EXCEEDED_THE_WEIGHT_LIMIT);
View Full Code Here

      return;
    }
    if(!activeChar.getInventory().validateWeight(weight))
    {
      sendPacket(Msg.YOU_HAVE_EXCEEDED_THE_WEIGHT_LIMIT);
      activeChar.sendActionFailed();
      return;
    }
    activeChar.reduceAdena(price, true);
    for(L2ItemInstance itm : toreturn)
    {
View Full Code Here

      return;
    }
    L2Clan clan = activeChar.getClan();
    if(clan == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    if(!activeChar.isClanLeader())
    {
      activeChar.sendPacket(Msg.ONLY_THE_CLAN_LEADER_MAY_APPLY_FOR_WITHDRAWAL_FROM_THE_ALLIANCE);
View Full Code Here

    {
      return;
    }
    if(activeChar.getDuel() != null)
    {
      activeChar.sendActionFailed();
      return;
    }
    L2Player manufacturer = (L2Player) activeChar.getVisibleObject(_id);
    if(manufacturer == null || manufacturer.getPrivateStoreType() != L2Player.STORE_PRIVATE_MANUFACTURE || manufacturer.getDistance(activeChar) > L2Character.INTERACTION_DISTANCE)
    {
View Full Code Here

    }
    sendPackets(packets);
    packets.clear();
    activeChar.unsetVar("offline");
    // на всякий случай
    activeChar.sendActionFailed();
    if(first && activeChar.isGM() && Config.SAVE_GM_EFFECTS && activeChar.getPlayerAccess().CanUseGMCommand)
    {
      //silence
      if(activeChar.getVarB("gm_silence"))
      {
View Full Code Here

    {
      return;
    }
    if(activeChar.isOutOfControl() || activeChar.getTransformation() != 0)
    {
      activeChar.sendActionFailed();
      return;
    }
    // You cannot do anything else while fishing
    if(activeChar.isFishing())
    {
View Full Code Here

    Functions.show("data/html/help/" + item.getItemId() + ".htm", activeChar, null);
    if(item.getItemId() == 7063)
    {
      activeChar.sendPacket(new RadarControl(0, 2, new Location(51995, -51265, -3104)));
    }
    activeChar.sendActionFailed();
  }

  public int[] getItemIds()
  {
    return _itemIds;
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.