Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Creature.sendActionFailed()


      return;
    }
   
    if (list1.getListId() != _listId)
    {
      activeChar.sendActionFailed();
      activeChar.setMultisell(null);
      return;
    }
   
    if (activeChar.isActionsDisabled())
View Full Code Here


      return;
    }
   
    if (activeChar.isActionsDisabled())
    {
      activeChar.sendActionFailed();
      return;
    }
   
    if (activeChar.isInStoreMode())
    {
View Full Code Here

      return;
    }
   
    if (activeChar.isInTrade())
    {
      activeChar.sendActionFailed();
      return;
    }
   
    if (activeChar.isFishing())
    {
View Full Code Here

      return;
    }
   
    if (!Config.ALT_GAME_KARMA_PLAYER_CAN_SHOP && (activeChar.getKarma() < 0) && !activeChar.isGM())
    {
      activeChar.sendActionFailed();
      return;
    }
   
    MultiSellEntry entry = null;
    for (MultiSellEntry $entry : list1.getEntries())
View Full Code Here

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

      }
     
      if (!inventory.validateCapacity(slots))
      {
        activeChar.sendPacket(Msg.YOUR_INVENTORY_IS_FULL);
        activeChar.sendActionFailed();
        return;
      }
     
      if (entry.getIngredients().size() == 0)
      {
View Full Code Here

        return;
      }
     
      if (entry.getIngredients().size() == 0)
      {
        activeChar.sendActionFailed();
        activeChar.setMultisell(null);
        return;
      }
     
      for (MultiSellIngredient ingridient : entry.getIngredients())
View Full Code Here

      player.sendPacket(SystemMsg.YOU_CANNOT_BOARD_A_SHIP_WHILE_YOU_ARE_POLYMORPHED, ActionFail.STATIC);
      return;
    }
    if (player.isMovementDisabled() || player.isSitting())
    {
      player.sendActionFailed();
      return;
    }
    if (!player.isInBoat())
    {
      player.setBoat(this);
View Full Code Here

    if (activeChar.isDead())
    {
      sendPacket(new Die(activeChar));
    }
    activeChar.unsetVar("offline");
    activeChar.sendActionFailed();
    if (first && activeChar.isGM() && Config.SAVE_GM_EFFECTS && activeChar.getPlayerAccess().CanUseGMCommand)
    {
      if (activeChar.getVarB("gm_silence"))
      {
        activeChar.setMessageRefusal(true);
View Full Code Here

      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_objectId);
    if ((boat == null) || boat.isMoving)
    {
      player.sendActionFailed();
      return;
    }
    boat.oustPlayer(player, _location, false);
  }
}
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.