Author Topic: Discarding an Item  (Read 545 times)

Hey guys I have been having some trouble with making this work, and it should be a simple fix... D:
Code: [Select]

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.

ctrl+w
Stop reinventing the wheel

ctrl+w
Stop reinventing the wheel
If you're not going to help then leave.  I'm using this code for ctrl+w.  The whole point is for the item to be discarded not dropped.


« Last Edit: February 04, 2010, 05:52:41 PM by Tezuni »