summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/003-3/malindou.txt6
1 files changed, 6 insertions, 0 deletions
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: