moveMap.bind(keyboard, "x", dropTool);
that's the client side, letting them bind /dropTool to a key
you'll probably want to look at the server side, serverCmdDropTool(%client, %slot)
I did some testing and came up with this ingame
function dropOther(%c,%i){%p=%c.player;%o=%p.tool[%p.currTool];%p.tool[%p.currTool]=%i;serverCmdDropTool(%c,%p.currTool);%p.tool[%p.currTool]=%o;messageClient(%c,'MsgItemPickup','',%p.currTool,%o);}
more pretty version
function dropOtherItem(%client, %item)
{
if(!isObject(%player = %client.player))
return;
%oldTool = %player.tool[%player.currTool];
%player.tool[%player.currTool] = %item;
serverCmdDropTool(%client, %player.currTool);
%player.tool[%player.currTool] = %oldTool;
messageClient(%client, 'MsgItemPickup', '', %player.currTool, %oldTool);
}
it works by swapping out the tool, using the droptool command, and swapping it back
note that this would work best if you're not trying to drop the same item, and if your item doesn't have an initial delay/equip animation
input is the tool ID, ie, for hammer use nameToID("HammerItem") as the input