Thread: Slideing door
View Single Post
  #4  
Old 08-29-2001, 11:16 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
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
__________________
Thanks,
-KJL
Reply With Quote