NPC Code:
if(playerchats&&strequals(#g,GUILDNAME)){
if(strequals(#c,open door)&&this.open==0){
for (this.moved=0;this.moved<10;this.moved++){
x-=0.5;
sleep 0.1;
}
this.open=1;
}elseif(strequals(#c,close door)&&this.open==1){
for (this.moved=0;this.moved<10;this.moved++){
x+=0.5;
sleep 0.1;
}
this.open=0;
}
}
this one is a lot better then the other one lol (the other one it wouldn't smoothly go over it would just appear there lol so I added a sleep, took out the functions, and made it so they can only open the door if the door is closed)
yes it does work offline... (and pretty sure it works online all the functions look like they will work online)...
only thing you have to edit is the guild name in red