From e2bc08e01e15245a0ff3dc71ecdcefe3134c86dc Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 3 Jul 2023 14:59:30 -0300 Subject: Reattach logout and death main handler --- npc/033-4/malindou.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'npc/033-4') 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: -- cgit v1.2.3-70-g09d2