diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-07-16 00:23:00 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-07-16 00:23:00 -0300 |
commit | e6defc9510db57cef38e0dba78735626f52949c3 (patch) | |
tree | 03f53854a97e188ddfd4b5d4a7359bb1242b7719 /npc/003-3 | |
parent | bb3a847c85f79e2f73379b21ee5cb9197d1ba145 (diff) | |
download | serverdata-e6defc9510db57cef38e0dba78735626f52949c3.tar.gz serverdata-e6defc9510db57cef38e0dba78735626f52949c3.tar.bz2 serverdata-e6defc9510db57cef38e0dba78735626f52949c3.tar.xz serverdata-e6defc9510db57cef38e0dba78735626f52949c3.zip |
Just to don't pollute char_reg_num_db, erase possibly outdated treasure data
every time the server restarts.
Diffstat (limited to 'npc/003-3')
-rw-r--r-- | npc/003-3/malindou.txt | 6 |
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: |