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...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock