Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Summon.destroyItem()


          L2Summon activeChar = (L2Summon) playable;
         
          if (activeChar.getInventory().getInventoryItemCount(potion, 0) > 0)
          {
            L2ItemInstance item = activeChar.getInventory().getItemByItemId(potion);
            activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);
          }
          else
          {
            if (Config.DEBUG)
              _log.log(Level.WARNING, "Attention: playable " + playable.getName() + " has not potions " + potion + "!");
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.