Jump to content
  • 0

[HELP] equip the weapon automatic ?


Question

Posted

getActiveChar().getInventory().addItem("test", 7575, 1, activeChar, null); //here adds the weapon to char.

getActiveChar().getInventory().equipitem(7575); //this equip the weapon "7575" ID to weapon!

 

what's the mode of making the weapon equip themselves automatically

after the weapon added to the inventory ???????

5 answers to this question

Recommended Posts

  • 0
Posted

I dunno if u mean that:

 

player.getInventory().equipItem(ItemTable.getInstance().createItem("", ITEM_ID, 1, player, null));

  • 0
Posted

i think he wants, like demonic weapon, that when the player pick up (or get via admin give or something like that), the player is forced to equip this item.

  • 0
Posted

I dunno if u mean that:

 

player.getInventory().equipItem(ItemTable.getInstance().createItem("", ITEM_ID, 1, player, null));

 

Thanks man, that was it I was looking for. :D :D :D :D :D :D :D

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..