summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/commands/event.txt2
-rw-r--r--npc/functions/event.txt2
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