diff options
Diffstat (limited to 'npc/commands/event.txt')
-rw-r--r-- | npc/commands/event.txt | 12 |
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); |