summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-20 12:08:38 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-20 12:08:38 -0300
commitc0619600967f96f3d5dd82ea983b3ebcdb163a61 (patch)
treeeddc2e72225f66dc0a654cd8cf7c4081df6e9856 /npc
parent4a059d290aa4365f7f97793dbcf621e6c4af5b99 (diff)
downloadserverdata-c0619600967f96f3d5dd82ea983b3ebcdb163a61.tar.gz
serverdata-c0619600967f96f3d5dd82ea983b3ebcdb163a61.tar.bz2
serverdata-c0619600967f96f3d5dd82ea983b3ebcdb163a61.tar.xz
serverdata-c0619600967f96f3d5dd82ea983b3ebcdb163a61.zip
Update some Christmas code regarding quest deletion
Diffstat (limited to 'npc')
-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