Jump to content
  • 0

[Request]An item to be hero


Question

Posted

hello mxc, i have start these topic beacouse i have a litile problem i have see one  share :

http://www.maxcheaters.com/forum/index.php?topic=34266.0

so i install it in eclipse work fine but when i click to custum item, custum item dosen't disapear please tell me waht i must write in eclipse to disapear the item :) ,thx and a big sry for my english hope to understund

 

 

5 answers to this question

Recommended Posts

  • 0
Posted

 

@Matim

{
   private static final int[] ITEM_IDS = { YOUR ITEM ID - replace here };

   public void useItem(L2PlayableInstance playable, L2ItemInstance item)
   {
      if (!(playable instanceof L2PcInstance))
         return;
      L2PcInstance activeChar = (L2PcInstance)playable;
       int itemId = item.getItemId();
      
       if (itemId == YOUR ITEM ID - replace here) // Item to become hero
       {
          activeChar.setHero(true);
          activeChar.broadcastUserInfo();
          playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
       }
   }

somthink like these?

Guest
This topic is now closed to further replies.


×
×
  • Create New...