2821
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
As a suggestion, never change the subject in coding help, it can really get confusing such as in this case right here.
wtf
Anyway you can use the function from your post like thisCode: [Select]%image is the datablock name of the weapon "image"%player.addItem(%image,%client);
%player and %client are self explanatory.
registerOutputEvent("Player", "addItem", "datablock ItemData", 1);
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;
}
}
}
Windows mail cause it's easier to work with on the surface pro than on yahoo's site
it's fun i guess
although i would do something else with it like this!