summaryrefslogtreecommitdiff
path: root/npc/commands/event.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-02-08 17:25:41 -0200
committerJesusaves <cpntb1@ymail.com>2019-02-08 17:25:41 -0200
commit498e20cad1dccb15ec1d8bf60910804af8a65b96 (patch)
tree396da261749d99e0e362736bb4696aa5c746ec28 /npc/commands/event.txt
parentee03a82fce3c73a2b482eebc03d10bc8f373ca1d (diff)
downloadserverdata-498e20cad1dccb15ec1d8bf60910804af8a65b96.tar.gz
serverdata-498e20cad1dccb15ec1d8bf60910804af8a65b96.tar.bz2
serverdata-498e20cad1dccb15ec1d8bf60910804af8a65b96.tar.xz
serverdata-498e20cad1dccb15ec1d8bf60910804af8a65b96.zip
Some structure, still need to add the map, the NPCs, and the chocolate boc
6 bars = 1 box, maybe. And on map you probably can farm the boxes, too. You can send with a Love Letter for better effect. Love Letter can be read.
Diffstat (limited to 'npc/commands/event.txt')
-rw-r--r--npc/commands/event.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt
index ec4f90067..5c423531e 100644
--- a/npc/commands/event.txt
+++ b/npc/commands/event.txt
@@ -69,6 +69,18 @@ function script GlobalEventMenu {
removemapmask "020-2", MASK_CHRISTMAS;
}
+ // Delete all Valentine Day stuff
+ if ($EVENT$ != "Valentine") {
+ DelItemFromEveryPlayer(LoveLetter);
+ debugmes "TODO: Delete valentine chocolate box";
+ } else if ($EVENT$ == "Valentine") {
+ // ItemDB prefers account variables than quest log
+ DelAccRegFromEveryPlayer("#VALENTINE_POINTS");
+ DelAccRegFromEveryPlayer("#VALENTINE_RECEIVED");
+ DelAccRegFromEveryPlayer("#VALENTINE_OPENED");
+ DelAccRegFromEveryPlayer("#VALENTINE_SENT");
+ }
+
// We must remove any event drop
charcommand("@reloadmobdb");
SeasonReload(1);