If the check returns it IS "-1," and I'd use MsgDropItem, what would I tell it to drop?
I tested "%player.tool[%slot].getID()" but it returned a syntax error.
Just use slot.
Ex. messageClient(%client,'',"",%slot);
Also, at the top, I noticed %obj, but then you went and did %player = %client.player;
That was not necissary. Just change the
Player::SetInventory(%obj, %item, %slot, %client)
to
Player::SetInventory(%player, %item, %slot, %client)
and remove
%player = %client.player;