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/017-3/loratay.txt | 1 + npc/functions/seasons.txt | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/017-3/loratay.txt b/npc/017-3/loratay.txt index ff9b4f498..8f16618d8 100644 --- a/npc/017-3/loratay.txt +++ b/npc/017-3/loratay.txt @@ -25,6 +25,7 @@ L_Valentine: close; getitem2(ValentineDress, 1, 1, 0, 0, any(DarkRedDye, RedDye), 0,0,0); + getexp BaseLevel*110, JobLevel*11; mesn; mesq l("There you go, your Valentine Dress!"); mesq lg("Good luck with your boyfriend!", "Good luck with your girlfriend!"); 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-70-g09d2