I've tried everything i could think of (not that much really

) but i can't set the players swor d and change their sword level. It changes for a sec. then goes back. this scrip has 2 things i tried X_x
NPC Code:
if(created){
setshape 1,35,96;
}
if(actionsword){
if(strequals(#p(0),psy)){
setsword swordc-reverseblade.png,5;
playerswordpower = 5;
}
if(strequals(#p(0),war)){
setsword swordc-reverseblade.png,6;
playerswordpower = 6;
}
}
//#CLIENTSIDE
if(playerchats&&strequals(#c,bell)){
if(hasweapon(Psy system)){
setsword swordc-reverseblade.png,5;
playerswordpower = 5;
triggeraction x,y,sword,psy;
}
}
if(playerchats&&strequals(#c,bell)){
if(hasweapon(Warrior system)){
setsword swordc-reverseblade.png,6;
playerswordpower = 6;
triggeraction x,y,sword,war;
}
}
if (created) {
x=x+.5;
showcharacter;
setcharprop #3,#3;
setcharprop #C0,#C0;
setcharprop #C1,#C1;
setcharprop #C2,#C2;
setcharprop #C3,#C3;
setcharprop #C4,#C4;
setcharprop #n,Mati's Ghost;
setcharprop #8,#8;
dir = 2;
}