Hey guys I have been having some trouble with making this work, and it should be a simple fix... D:
messageClient(%client, 'MsgItemPickup', '', %slot, 0);
%client.player.tool[%slot] = 0;
%client.player.weaponCount--;
serverCmdUnUseTool(%client);
messageClient(%client,'',"You discard an item.");
It's doing everything right except it's only unmounting the item's image, and the item stays in the inventory when it should be discarded.