From 19de3fc1c3b4f6d1e287ca5e48fae8607158cf08 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 25 Jul 2021 03:05:39 -0300 Subject: This is a quick'n'dirty patch for some broken GM commands, fix it later --- npc/functions/clear_vars.txt | 3 +++ npc/functions/global_event_handler.txt | 1 + 2 files changed, 4 insertions(+) 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; -- cgit v1.2.3-60-g2f50