NPC Code:if(playertouchsme){setplayerprop #P1, yourhat.png;}
if(playertouchsme){setplayerprop #P1, yourhat.png;}