Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-02-2002, 10:38 PM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Levellist

It would help me if there was a list of levels I can access serverside. I'd need the variables levelscount and #L(...) to randomly place NPCs in certain levels (or to refill the fishrate).
#L(...) should be sorted alphabetically and #L(0) should not be the same as #L, but the first level in the order.
Then I could do something like this:
NPC Code:

if (created) {
timeout = 5;
}
if (timeout) {
if (level.fishrate < level.maxfishrate) level.fishrate+=0.1;
this.nextlevel= (this.nextlevel+1)%levelscount;
warpto #L(this.nextlevel),0,0;
}

__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote
 


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 11:18 PM.


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