This is the function used for Event_addItem
function Player::addItem(%player,%image,%client)
{
for(%i = 0; %i < %player.getDatablock().maxTools; %i++)
{
%tool = %player.tool[%i];
if(%tool == 0)
{
%player.tool[%i] = %image;
%player.weaponCount++;
messageClient(%client,'MsgItemPickup','',%i,%image);
break;
}
}
}
Using this, I did this in the console:
Player::addItem(findClientByName("BigNaeyt").player, "GunItem", findClientByName("BigNaeyt"));
This causes the item to appear in my tools, but for some reason I can't scroll over it. Ideas?