There is an error around %player.getdatablock() and i cant figure it out. Help?
package PlayerBomb
{
function armor::onTrigger(%this,%player,%slot,%val)
{
if(%slot $= 4 && %Player.getdatablock() $= BombArmor)
{
centerprintall("\c2True");
%Player.kill();
}
else
{
centerprintall("False");
}
Parent::onTrigger(%this,%player,%slot,%val);
}
};
ActivatePackage(PlayerBomb);