I noticed another scripting problem other then the one mikepg pointed out.
NPC Code:
if (actionserverside) {
setcharani #p(0),#p(1);
}
//#CLIENTSIDE
if (created) {
this.dontmove=false;
}
if (actionleftmouse&&keydown2(keycode(b),ignorecase)& &keydown2(keycode(r),ignorecase)&&this.dontmove==f alse){
this.dontmove=true;
triggeraction x+1.5,y+2,serverside,shelf1;
sleep 4;
triggeraction x+1.5,y+2,serverside,shelf2;
this.dontmove=false;
}