diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-11-21 10:44:13 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-11-21 10:44:13 -0300 |
commit | 4e020f0fbd1409a948cde96d680cd54f1d64e6e6 (patch) | |
tree | 1de188429f1dce8c76dba9f6fab5c9b1b1991812 /npc | |
parent | 4be5faa879c7822c080735a594aa7b648c951db9 (diff) | |
download | serverdata-4e020f0fbd1409a948cde96d680cd54f1d64e6e6.tar.gz serverdata-4e020f0fbd1409a948cde96d680cd54f1d64e6e6.tar.bz2 serverdata-4e020f0fbd1409a948cde96d680cd54f1d64e6e6.tar.xz serverdata-4e020f0fbd1409a948cde96d680cd54f1d64e6e6.zip |
Send this data over Mirror Lake Framework.
This allows Moubootaur Legends to tap this info as well.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/clear_vars.txt | 5 | ||||
-rw-r--r-- | npc/functions/vault.txt | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt index 4cd8c9b8..89ca8c71 100644 --- a/npc/functions/clear_vars.txt +++ b/npc/functions/clear_vars.txt @@ -150,14 +150,17 @@ function script ClearVariables { function script FlushVariables { // Some variables should not be saved GM = 0; + ##01_TMWEXP = 0; // Christmas 2021 Event if (gettime(8) >= 346 || gettime(8) <= 9) { #NEW_LV+=(BaseLevel-#OLD_LV); if (BaseLevel != #OLD_LV) { - #NEW_EXP+=BaseExp; + #NEW_EXP=BaseExp; + if (getvaultid()) ##01_TMWEXP=BaseExp; // (Techinically wrong) } else { #NEW_EXP+=BaseExp-#OLD_EXP; + if (getvaultid()) ##01_TMWEXP=BaseExp-#OLD_EXP; } #OLD_EXP=0; #OLD_LV=0; diff --git a/npc/functions/vault.txt b/npc/functions/vault.txt index 4f45c871..2022b726 100644 --- a/npc/functions/vault.txt +++ b/npc/functions/vault.txt @@ -88,6 +88,8 @@ function script vaultOnLogout { "VAR1V", ##01_TMWQUEST, "VAR2N", "TMWGLOBAL", "VAR2V", ##01_TMWGLOBAL, + "VAR2N", "TMWEXP", + "VAR2V", ##01_TMWEXP, "VEXP", ##VAULT_EXP, "GOTO", ##VAULT_GOTO, "MLTO", ##VAULT_MLTO); |