diff options
Diffstat (limited to 'npc')
-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; |