summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-02-08 17:01:49 -0200
committerJesusaves <cpntb1@ymail.com>2019-02-08 17:01:49 -0200
commitee03a82fce3c73a2b482eebc03d10bc8f373ca1d (patch)
treee96d72e9216aaaddb5634e074080531affe35629 /npc/functions
parent2ba52c84ea317a16e4f9a941e4fc27c2d304b0c1 (diff)
downloadserverdata-ee03a82fce3c73a2b482eebc03d10bc8f373ca1d.tar.gz
serverdata-ee03a82fce3c73a2b482eebc03d10bc8f373ca1d.tar.bz2
serverdata-ee03a82fce3c73a2b482eebc03d10bc8f373ca1d.tar.xz
serverdata-ee03a82fce3c73a2b482eebc03d10bc8f373ca1d.zip
More worker functions
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/seasons.txt13
1 files changed, 12 insertions, 1 deletions
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;