From c0619600967f96f3d5dd82ea983b3ebcdb163a61 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 20 Dec 2020 12:08:38 -0300 Subject: Update some Christmas code regarding quest deletion --- npc/commands/event.txt | 2 +- npc/functions/event.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/npc/commands/event.txt b/npc/commands/event.txt index 608080d16..088e15884 100644 --- a/npc/commands/event.txt +++ b/npc/commands/event.txt @@ -359,7 +359,7 @@ function script GlobalEventMenu { break; case 8: logmes "Enabled CHRISTMAS event.", LOGMES_ATCOMMAND; - query_sql("DELETE FROM `quest` WHERE `quest_id` = '"+SQuest_Christmas+"'"); + DelQuestFromEveryPlayer(SQuest_Christmas); sChristmas(); break; case 9: $EVENT$=any("Demure Birthday", "Blame Saulc"); diff --git a/npc/functions/event.txt b/npc/functions/event.txt index 71f717667..a9562fe02 100644 --- a/npc/functions/event.txt +++ b/npc/functions/event.txt @@ -580,7 +580,7 @@ OnClock0000: if ($EVENT$ != "") FYStopEvent(); $EVENT$="Christmas"; - query_sql("DELETE FROM `quest` WHERE `quest_id` = '"+SQuest_Christmas+"'"); + DelQuestFromEveryPlayer(SQuest_Christmas); sChristmas(); } // End the event the day after -- cgit v1.2.3-60-g2f50