diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-07-25 03:05:39 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-07-25 03:05:39 -0300 |
commit | 19de3fc1c3b4f6d1e287ca5e48fae8607158cf08 (patch) | |
tree | e4dc5d177ec6e819e891900167de40f8e17eb636 | |
parent | 962d8b7eb79c68dcf30d42ec2716644885513486 (diff) | |
download | serverdata-19de3fc1c3b4f6d1e287ca5e48fae8607158cf08.tar.gz serverdata-19de3fc1c3b4f6d1e287ca5e48fae8607158cf08.tar.bz2 serverdata-19de3fc1c3b4f6d1e287ca5e48fae8607158cf08.tar.xz serverdata-19de3fc1c3b4f6d1e287ca5e48fae8607158cf08.zip |
This is a quick'n'dirty patch for some broken GM commands, fix it later
-rw-r--r-- | npc/functions/clear_vars.txt | 3 | ||||
-rw-r--r-- | npc/functions/global_event_handler.txt | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt index 3788f762..1405f89f 100644 --- a/npc/functions/clear_vars.txt +++ b/npc/functions/clear_vars.txt @@ -2,6 +2,9 @@ function script ClearVariables { if (@login_event != 1) goto L_Deprecated; + // Some temporary bugfix + GM = getgroupid(); + // Remove old variables to new quest system if (QL_VALON) { setq CandorQuest_Valon, QL_VALON; diff --git a/npc/functions/global_event_handler.txt b/npc/functions/global_event_handler.txt index 89df294c..8a9c4fd6 100644 --- a/npc/functions/global_event_handler.txt +++ b/npc/functions/global_event_handler.txt @@ -15,6 +15,7 @@ OnPCLoginEvent: end; OnPCLogoutEvent: + GM = 0; vaultOnLogout(); end; |