function botItem::onAdd(%this,%a,%b,%c,%d,%e) //General arguments, just in case
{
for (%i = 0; %i <= $accentnum; %i++) %this.hideNode($accent[%i]);
for (%i = 0; %i <= $chestnum; %i++) %this.hideNode($chest[%i]);
for (%i = 0; %i <= $hatnum; %i++) %this.hideNode($hat[%i]);
for (%i = 0; %i <= $hipnum; %i++) %this.hideNode($hip[%i]);
for (%i = 0; %i <= $LArmnum; %i++) %this.hideNode($LArm[%i]);
for (%i = 0; %i <= $LHandnum; %i++) %this.hideNode($LHand[%i]);
for (%i = 0; %i <= $LLegnum; %i++) %this.hideNode($LLeg[%i]);
for (%i = 0; %i <= $packnum; %i++) %this.hideNode($pack[%i]);
for (%i = 0; %i <= $RArmnum; %i++) %this.hideNode($RArm[%i]);
for (%i = 0; %i <= $RHandnum; %i++) %this.hideNode($RHand[%i]);
for (%i = 0; %i <= $RLegnum; %i++) %this.hideNode($RLeg[%i]);
for (%i = 0; %i <= $secondPacknum; %i++) %this.hideNode($secondPack[%i]);
%player.hideNode("headSkin");
%player.hideNode("LSki");
%player.hideNode("RSki");
%player.hideNode("skirtTrimLeft");
%player.hideNode("skirtTrimRight");
%player.unhideNode("tank");
%player.setNodeColor("tank", "1 0.25 1 1");
}
In the case of items, %this is the datablock of the item. Also, where do you define %player?