diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-01-04 21:30:10 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-01-04 21:30:10 -0200 |
commit | 90f0f606ce26ed33b3d0201f54d037cebfee56a2 (patch) | |
tree | 4ff56f4bbeaf32287cd5868fdc1d0f952d282a5f /npc/functions/seasons.txt | |
parent | 08b774bbec7c190b8bd6e5d508e207ee53ed7aac (diff) | |
download | serverdata-90f0f606ce26ed33b3d0201f54d037cebfee56a2.tar.gz serverdata-90f0f606ce26ed33b3d0201f54d037cebfee56a2.tar.bz2 serverdata-90f0f606ce26ed33b3d0201f54d037cebfee56a2.tar.xz serverdata-90f0f606ce26ed33b3d0201f54d037cebfee56a2.zip |
Move event load to where it belongs
Diffstat (limited to 'npc/functions/seasons.txt')
-rw-r--r-- | npc/functions/seasons.txt | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/npc/functions/seasons.txt b/npc/functions/seasons.txt index 0e269f6ac..6f867ce7f 100644 --- a/npc/functions/seasons.txt +++ b/npc/functions/seasons.txt @@ -34,6 +34,81 @@ function script season { } +// Event seasons +// Christmas cannot be on GlobalEventMenu because it affects seasons system +function script sChristmas { + // Determine the drop rates based on month, and Christmas proximity + if (gettime(GETTIME_MONTH) == DECEMBER) { + if (gettime(GETTIME_DAYOFMONTH) <= 26) + .@m=10; + else + .@m=8; + } else { + .@m=5; + } + + // Add Christmas drops + addmonsterdrop(Moggun, XmasCake, 80*.@m); + addmonsterdrop(AlphaMouboo, XmasCake, 92*.@m); + addmonsterdrop(BlueSlime, XmasCake, 100*.@m); + addmonsterdrop(SantaSlime, XmasCake, 120*.@m); + addmonsterdrop(IcedFluffy, XmasCake, 150*.@m); + addmonsterdrop(Yeti, XmasCake, 500*.@m); + + addmonsterdrop(Bandit, XmasCandyCane, 30*.@m); + addmonsterdrop(Mouboo, XmasCandyCane, 48*.@m); + addmonsterdrop(WhiteSlime, XmasCandyCane, 50*.@m); + addmonsterdrop(RudolphSlime,XmasCandyCane, 100*.@m); + addmonsterdrop(Fluffy, XmasCandyCane, 200*.@m); + addmonsterdrop(AzulSlime, XmasCandyCane, 200*.@m); + + addmonsterdrop(Duck, GingerBreadMan, 36*.@m); + addmonsterdrop(WaterFairy, GingerBreadMan, 100*.@m); + + // Event drop rates, multiplied by 10 during Christmas (see .@m) + addmonsterdrop(Yeti, ClosedChristmasBox, 350*.@m); + addmonsterdrop(WaterFairy, ClosedChristmasBox, 108*.@m); + addmonsterdrop(AlphaMouboo, ClosedChristmasBox, 83*.@m); + addmonsterdrop(IcedFluffy, ClosedChristmasBox, 67*.@m); + addmonsterdrop(BlueSlime, ClosedChristmasBox, 42*.@m); + addmonsterdrop(Moggun, ClosedChristmasBox, 40*.@m); + addmonsterdrop(SantaSlime, ClosedChristmasBox, 36*.@m); + addmonsterdrop(AzulSlime, ClosedChristmasBox, 20*.@m); + addmonsterdrop(Fluffy, ClosedChristmasBox, 20*.@m); + addmonsterdrop(RudolphSlime,ClosedChristmasBox, 8*.@m); + addmonsterdrop(WhiteSlime, ClosedChristmasBox, 3*.@m); + addmonsterdrop(GiantMaggot, ClosedChristmasBox, 2*.@m); + + // This is not dropped outside December + if (gettime(GETTIME_MONTH) == DECEMBER) { + // Bugfix + if (gettime(GETTIME_YEAR) == 2018) + .@m+=10; + addmonsterdrop(WaterFairy, XmasGift, 6*.@m); + addmonsterdrop(AlphaMouboo, XmasGift, 5*.@m); + addmonsterdrop(IcedFluffy, XmasGift, 4*.@m); + addmonsterdrop(SantaSlime, XmasGift, 3*.@m); + addmonsterdrop(Fluffy, XmasGift, 2*.@m); + addmonsterdrop(AzulSlime, XmasGift, 2*.@m); + } + + // Change maps for Christmas Season (Specially LoF maps) + addmapmask "003-1", MASK_CHRISTMAS; + addmapmask "005-1", MASK_CHRISTMAS; + addmapmask "009-1", MASK_CHRISTMAS; + addmapmask "012-1", MASK_CHRISTMAS; + addmapmask "017-2", MASK_CHRISTMAS; + addmapmask "017-2-1", MASK_CHRISTMAS; + addmapmask "017-3", MASK_CHRISTMAS; + addmapmask "020-2", MASK_CHRISTMAS; + + // Enable event + set $EVENT$, "Christmas"; + //logmes "Enabled CHRISTMAS event.", LOGMES_ATCOMMAND; + return; +} + +// This allows GMs to change seasons if needed function script SeasonControl { do { |