Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   dance floor (https://forums.graalonline.com/forums/showthread.php?t=27763)

ckb1985 04-20-2002 07:39 AM

dance floor
 
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;}

amonrabr 04-20-2002 07:44 AM

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;
}


ckb1985 04-20-2002 08:20 AM

thanks
 
It works thank you

Kadar 04-20-2002 10:20 AM

NPC Code:

if (timeout){
if (playery<49 && playery>33 && playerx<42 &&playerx>22)
{
playersprite = random(1,35);
}
timeout=.05;
}


Saga2001 04-20-2002 11:40 AM

Use in like this:
(playerx in |min,max| && playery in |min,max|)

emortylone 04-26-2002 08:48 PM

Heh, dance floors are retarded. LOL, i dont' particuarly like them. Except when you get on one that moves you really fast, and you attack ppl and they can't really see you swing your sword! Heh.
---Shifter


All times are GMT +2. The time now is 12:38 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.