![]() |
Level doesnt exist check?
NPC Code: 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 |
Save the accounts of the players in the instance (copied levels) to a string in a database NPC when they enter. When they leave, make it remove them from the string. Every hour, make the DB go through the list of instances. If an instance's string is empty, it deletes that instance.
|
That works too lol
|
levelexists() in GScript2.
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 03:36 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.