View Single Post
  #1  
Old 08-01-2005, 11:45 AM
hotrian hotrian is offline
Who?
Join Date: May 2003
Location: Eatonville, Washington, 98328
Posts: 56
hotrian is on a distinguished road
Send a message via AIM to hotrian Send a message via MSN to hotrian
Question Level doesnt exist check?

NPC Code:
   
copylevel orilevel.nw,folder/newlevel.nw; Copies orilevel.nw to folder/newlevel.nw
deletelevel level.nw; deletes level.nw



To reduce lag it would make sence to delete a copied level
Im sure that G2K2 doesnt have 10000 Dungeon levels
It would make sence to " if {playerscount<1} deletelevel #L; "

But then if I logged out then logged back in, the level would be gone

Is there a way to detect if the player is on a level that doesnt exist?
Sence if you log onto a level that has been deleted
it stops at "loading player attributes"

(Yes i do know that those commands are serverside...)

-Edit
I suppose it could also be done by checking who was in the level
then checking if they are all online or not
and like rechecking every 30 seconds or something

Last edited by hotrian; 08-01-2005 at 12:29 PM..
Reply With Quote