summaryrefslogtreecommitdiff
path: root/npc/commands/event.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-15 22:22:51 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-15 22:22:51 -0200
commit50b14fe88a2b71c81f1f3f41ae00ab3c2f193ca5 (patch)
treebd77411e02b0b9fc173b2cd8288ef66551e8a5ef /npc/commands/event.txt
parent8cf90b487f998dc4f55ff3eafcca6e62a9faf108 (diff)
downloadserverdata-50b14fe88a2b71c81f1f3f41ae00ab3c2f193ca5.tar.gz
serverdata-50b14fe88a2b71c81f1f3f41ae00ab3c2f193ca5.tar.bz2
serverdata-50b14fe88a2b71c81f1f3f41ae00ab3c2f193ca5.tar.xz
serverdata-50b14fe88a2b71c81f1f3f41ae00ab3c2f193ca5.zip
When (re)starting christmas, clear data from previous years
Diffstat (limited to 'npc/commands/event.txt')
-rw-r--r--npc/commands/event.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt
index 7e51ecdfd..24e29ea3d 100644
--- a/npc/commands/event.txt
+++ b/npc/commands/event.txt
@@ -155,7 +155,10 @@ function script GlobalEventMenu {
debugmes "Snakes are now dropping Pearls.";
*/
break;
- case 4: sChristmas(); break;
+ case 4:
+ logmes "Enabled CHRISTMAS event.", LOGMES_ATCOMMAND;
+ query_sql("DELETE FROM `quest` WHERE `quest_id` = '"+SQuest_Christmas+"'");
+ sChristmas(); break;
case 5: DelItemFromEveryPlayer(MurdererCrown); break;
}