Is that script even needed?
i made a good one b4

here
NPC Code:
// NPC made by KuJi
//#COMMENTS Clothes Hanger
//#EDIT img cloats2.png
//#EDIT body body.png
//#EDIT sword sword1.png
//#EDIT shield shield1.png
//#EDIT head head1.png
//#EDIT skin black
//#EDIT coat black
//#EDIT sleeves black
//#EDIT shoes black
//#EDIT belt black
if (created) {setimg img;
}
//#CLIENTSIDE
if (playertouchsme) {
setplayerprop#8,body;
setplayerprop#1,sword;
setplayerprop#2,shield;
setplayerprop#3,head;
setplayerprop#C0,skin;
setplayerprop#C1,coat;
setplayerprop#C2,sleeves;
setplayerprop#C3,shoes;
setplayerprop#C3,belt;
}
Put this in your graal folder
levels/npcs
name it as defnpcClothes.txt