summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-11 16:00:40 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-11 16:00:40 -0300
commit4cd390c6b42c78e45d0ae325eabc37a50fe2c0bb (patch)
tree40e31a88352c50792cc612b3441a1c4889aa8446
parentfe619dc26d4532b16c41faeba6564d30e92c38a0 (diff)
downloadserverdata-4cd390c6b42c78e45d0ae325eabc37a50fe2c0bb.tar.gz
serverdata-4cd390c6b42c78e45d0ae325eabc37a50fe2c0bb.tar.bz2
serverdata-4cd390c6b42c78e45d0ae325eabc37a50fe2c0bb.tar.xz
serverdata-4cd390c6b42c78e45d0ae325eabc37a50fe2c0bb.zip
Reduce the scope of OLD/NEW/ORG EXP/LV from player to char
-rw-r--r--npc/functions/clear_vars.txt24
1 files changed, 12 insertions, 12 deletions
diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt
index d0ae3682..56a7e07e 100644
--- a/npc/functions/clear_vars.txt
+++ b/npc/functions/clear_vars.txt
@@ -145,12 +145,12 @@ function script ClearVariables {
// Christmas 2021 Event
if (isChristmas21()) {
- if (!#ORG_LV || !#ORG_EXP) {
- #ORG_EXP=BaseExp;
- #ORG_LV=BaseLevel;
+ if (!ORG_LV || !ORG_EXP) {
+ ORG_EXP=BaseExp;
+ ORG_LV=BaseLevel;
}
- #OLD_EXP=BaseExp;
- #OLD_LV=BaseLevel;
+ OLD_EXP=BaseExp;
+ OLD_LV=BaseLevel;
}
return;
}
@@ -163,15 +163,15 @@ function script FlushVariables {
// Christmas 2021 Event
if (isChristmas21()) {
- #NEW_LV+=(BaseLevel-#OLD_LV);
- if (BaseLevel != #OLD_LV) {
- #NEW_EXP=BaseExp;
+ NEW_LV+=(BaseLevel-OLD_LV);
+ if (BaseLevel != OLD_LV) {
+ NEW_EXP=BaseExp;
} else {
- #NEW_EXP+=BaseExp-#OLD_EXP;
+ NEW_EXP+=BaseExp-OLD_EXP;
}
- #OLD_EXP=0;
- #OLD_LV=0;
- if (getvaultid()) ##01_TMWEXP=#NEW_EXP; // (Techinically wrong)
+ OLD_EXP=0;
+ OLD_LV=0;
+ if (getvaultid()) ##01_TMWEXP=NEW_EXP; // (Techinically wrong)
}
return;
}