Thread: Levellist
View Single Post
  #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