package SkiSpawn {
function GameConnection::spawnPlayer(%this)
{
parent::spawnPlayer(%this);
schedule(500,0,"GiveSkis",%this);
}
};
activatepackage(SkiSpawn);
function GiveSkis(%client)
{
for(%i=0;%i<5;%i++)
{
%toolDB = %client.player.tool[%i];
if(%toolDB == 0)
{
%col.tool[%i] = SkiItem.getID();
messageClient(%client,'MsgItemPickup','',%i,SkiItem.getID());
break;
}
}
}
Should work, it hasn't been tested though...and I'm sure someone else is going to come and show me some more efficient way.