doesn't work

and the action IS being called
NPC Code:
// NPC made by Excaliber
if(created){
setshape 1,32,64;
}
if(actionsword){
if(strequals(#p(0),sword)){
playerswordpower = 5;
}
}
//#CLIENTSIDE
if (playertouchsme) {
setplayerprop #1,hot-sword.gif;
playerswordpower = 5;
setsword hot-sword.gif,5;
say2 A NEW SWORD!;
triggeraction x,y,sword,sword;
}