From ee03a82fce3c73a2b482eebc03d10bc8f373ca1d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 8 Feb 2019 17:01:49 -0200 Subject: More worker functions --- npc/functions/seasons.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'npc/functions') diff --git a/npc/functions/seasons.txt b/npc/functions/seasons.txt index 66946af91..924093623 100644 --- a/npc/functions/seasons.txt +++ b/npc/functions/seasons.txt @@ -107,6 +107,13 @@ function script sChristmas { //logmes "Enabled CHRISTMAS event.", LOGMES_ATCOMMAND; return; } +// Valentine Day is handled by @event, this is only for @reloadmobdb +function script sValentine { + // Add Valentine drops + addmonsterdrop(ChocolateSlime, Rose, 80); + addmonsterdrop(ChocolateSlime, LoveLetter, 8); + return; +} // This allows GMs to change seasons if needed function script SeasonControl { @@ -120,6 +127,7 @@ function script SeasonControl { "Winter Start", "Winter End", "SPECIAL - Christmas", + "SPECIAL - Valentine", "Abort"; switch (@menu) { @@ -130,8 +138,9 @@ function script SeasonControl { case 5: donpcevent("#SeasonCore::OnWinterStart"); break; case 6: donpcevent("#SeasonCore::OnWinterEnd"); break; case 7: sChristmas(); break; + case 8: sValentine(); break; } - } while (@menu != 8); + } while (@menu != 9); return; } @@ -171,6 +180,8 @@ function script SeasonReload { // Christmas have a special feature if ($EVENT$ == "Christmas") sChristmas(); + if ($EVENT$ == "Valentine") + sValentine(); $@SEASON=season(); return; -- cgit v1.2.3-60-g2f50