summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/033-4/malindou.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/npc/033-4/malindou.txt b/npc/033-4/malindou.txt
index 4b8040b..d3db137 100644
--- a/npc/033-4/malindou.txt
+++ b/npc/033-4/malindou.txt
@@ -117,6 +117,14 @@ OnGlobalChat:
OnPCBaseLvUpEvent:
end;
+// Death & Logout events
+OnPCDieEvent:
+ @qhub_died=1;
+OnPCLogoutEvent:
+ HUB_Logout(@qhub_died);
+ @qhub_died=0;
+ end;
+
// Every time the server starts, clean up possibly broken data about treasures.
// NPC ID might have changed.
OnInterIfInitOnce: