Could someone tell me the point of all that scripting?
here you go:
NPC Code:
if (playerchats && strequals(#c,knighthelmet)) {
set haton;
setplayerprop #P1,hat0.png;
}
oh and for the hat item:
NPC Code:
if (playerenters) {
toweapons Hat;
setimg haticon.png;
}
if (weaponfired&&!haton&&knighthelmet) {
set haton;
setplayerprop #P1,hat0.png;
setani haton,;
freezeplayer 0.6;
sleep 0.6;
}
// taking hat off
if(weaponfired&&haton){
unset haton;
setani hatoff,;
freezeplayer 0.6;
sleep 0.6;
setplayerprop #P1,;
}