NPC Code:
if (created) {
setimg door.png;
setshape 1,32,32;
}
if (strequals(#c,open door)&&strequals(#g,Dragon Knights) && this.open=0) {
move 2,0,99999999999,none;
this.open=1;
}
if (strequals(#c,close door)&&strequals(#g,Dragon Knights) && this.open=1) {
move -2,0,99999999999,none;
this.open=0;
}
There ya go, have fun