Originally Posted by
arisasam
Haha no worries, umm.
If you set a function, such as casting a spell on them or clicking a button, to add an item to a second player's inventory, it will do no more than add the item to their inventory. I'm trying to make it so it gives them the item as well as equipping the item to any given slot.
Alright,
here's a command:
Code:
if (playerCommand.equalsIgnoreCase("forceitem")) {
try {
int id = 14484; //Dragon claws
c.getItems().wearItem(id, 3);//use as wearItem(item id, slot)
} catch(Exception e) {
e.printStackTrace();
}
}
this forces the user to wear dragon claws, it will automatically add the item, because when you unequip it, it will go to your inventory.
Is this what you meant?
If not, add my skype so we can talk better: -