Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-20-2002, 07:39 AM
ckb1985 ckb1985 is offline
Registered User
ckb1985's Avatar
Join Date: Mar 2002
Location: NY
Posts: 413
ckb1985 is on a distinguished road
Send a message via ICQ to ckb1985 Send a message via AIM to ckb1985
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;}
Reply With Quote
  #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
  #3  
Old 04-20-2002, 08:20 AM
ckb1985 ckb1985 is offline
Registered User
ckb1985's Avatar
Join Date: Mar 2002
Location: NY
Posts: 413
ckb1985 is on a distinguished road
Send a message via ICQ to ckb1985 Send a message via AIM to ckb1985
thanks

It works thank you
Reply With Quote
  #4  
Old 04-20-2002, 10:20 AM
Kadar Kadar is offline
Registered User
Join Date: Jan 2002
Posts: 636
Kadar is on a distinguished road
NPC Code:

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

__________________
Reply With Quote
  #5  
Old 04-20-2002, 11:40 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Use in like this:
(playerx in |min,max| && playery in |min,max|)
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #6  
Old 04-26-2002, 08:48 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
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
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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