Thread: dance floor
View Single Post
  #2  
Old 04-20-2002, 07:44 AM
amonrabr amonrabr is offline
Scripter
Join Date: Nov 2001
Location: Brazil
Posts: 374
amonrabr is on a distinguished road
Re: dance floor

Quote:
Originally posted by ckb1985
I need a little help here currently it only works if you start up on the dance floor and then it doesnt stop if you leave


// NPC made by Dúnedain lots of help from shadowless warrior
if (playery<49 && playery>33 && playerx<42 &&
playerx>22)
{timeout=0.5;
}
else if (playery>49 || playery<33 || playerx>42|||
playerx<22)
{timeout=0;
}


if (timeout) {
playersprite=23;sleep 1;playersprite=37;sleep
1;playersprite=1;sleep 1;playersp
rite=3;timeout=.5;}
????
let the timeout working all the time...
Timeout is the time to reload the script and see if u´re in the right zone.

NPC Code:

timeout=.05;
if (playery<49 && playery>33 && playerx<42 &&playerx>22)
{
playersprite=23;sleep 1;playersprite=37;sleep
1;playersprite=1;sleep 1;playersp
rite=3;timeout=.5;
}

Reply With Quote