diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-01-20 02:46:20 +0000 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-01-20 02:46:20 +0000 |
commit | 8875cef958add4b361300c1ba108d8bf1d7995d7 (patch) | |
tree | 96f05618b8dc04bc19778d51482f85c6f4e94865 /npc/functions/clear_vars.txt | |
parent | c1be7bd1eab5b0c230001c369292abe757a7f32a (diff) | |
download | serverdata-8875cef958add4b361300c1ba108d8bf1d7995d7.tar.gz serverdata-8875cef958add4b361300c1ba108d8bf1d7995d7.tar.bz2 serverdata-8875cef958add4b361300c1ba108d8bf1d7995d7.tar.xz serverdata-8875cef958add4b361300c1ba108d8bf1d7995d7.zip |
Christmas 2021 Cleanup
Contains several other bugfixes and improvements
- The Mana World Team's Chairman
- Fix Terogan Fight
- Poppet's Battle Chamber (inactive)
- `@setcells` and `@delcells`
- Fix Graveyard Ghosts
- Jande skill (inactive)
Diffstat (limited to 'npc/functions/clear_vars.txt')
-rw-r--r-- | npc/functions/clear_vars.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt index e5e6e5d4..65d21291 100644 --- a/npc/functions/clear_vars.txt +++ b/npc/functions/clear_vars.txt @@ -1,7 +1,6 @@ +// Update variables on server init, login and logout function script ClearVariables { - if (@login_event != 1) goto L_Deprecated; - // Some temporary bugfix GM = getgroupid(); @@ -142,6 +141,15 @@ function script ClearVariables { } +function script FlushVariables { + // Some variables should not be saved + GM = 0; + ##01_TMWEXP = 0; + return; +} + + + function script ServerUpdate { if ($@STARTUP) { debugmes "Cowardly refusing to update server outside startup"; |