From e6defc9510db57cef38e0dba78735626f52949c3 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 16 Jul 2019 00:23:00 -0300 Subject: Just to don't pollute char_reg_num_db, erase possibly outdated treasure data every time the server restarts. --- npc/003-3/malindou.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc/003-3/malindou.txt') diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt index b8ebee4b5..ac7c7ef0d 100644 --- a/npc/003-3/malindou.txt +++ b/npc/003-3/malindou.txt @@ -464,6 +464,12 @@ OnInit: //htput($@CONTRIBUTORS, "", 1); end; +// Every time the server starts, clean up possibly broken data about treasures. +// NPC ID might have changed. +OnInterIfInitOnce: + query_sql("DELETE FROM `char_reg_num_db` WHERE `key`='RNGTREASURE_DATE'"); + end; + // This control all PC Login events // Position matters! OnPCLoginEvent: -- cgit v1.2.3-60-g2f50