summaryrefslogtreecommitdiff
path: root/npc/commands/event.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-14 22:15:40 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-14 22:15:40 -0200
commit9b4df1b7ef28781bcf9a601077986e8f24ced32b (patch)
treecb95ed2b7aade994bb28a874f155f3bf40c6e9ba /npc/commands/event.txt
parentbb18a37c27ceec2f3b66b8b8a0619322c08a38d7 (diff)
downloadserverdata-9b4df1b7ef28781bcf9a601077986e8f24ced32b.tar.gz
serverdata-9b4df1b7ef28781bcf9a601077986e8f24ced32b.tar.bz2
serverdata-9b4df1b7ef28781bcf9a601077986e8f24ced32b.tar.xz
serverdata-9b4df1b7ef28781bcf9a601077986e8f24ced32b.zip
Christmas is coming: Handle Christmas drops and items
Diffstat (limited to 'npc/commands/event.txt')
-rw-r--r--npc/commands/event.txt66
1 files changed, 45 insertions, 21 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt
index 6f43705ae..a41af175f 100644
--- a/npc/commands/event.txt
+++ b/npc/commands/event.txt
@@ -14,6 +14,40 @@ function script DelItemFromEveryPlayer {
return;
}
+// Christmas cannot be on GEM because it affects seasons system
+function script sChristmas {
+ // Add drops?
+ addmonsterdrop(Moggun, XmasCake, 800);
+ addmonsterdrop(AlphaMouboo, XmasCake, 920);
+ addmonsterdrop(BlueSlime, XmasCake, 1000);
+ addmonsterdrop(SantaSlime, XmasCake, 1200);
+ addmonsterdrop(IcedFluffy, XmasCake, 1500);
+ addmonsterdrop(Yeti, XmasCake, 5000);
+
+ addmonsterdrop(Bandit, XmasCandyCane, 300);
+ addmonsterdrop(Mouboo, XmasCandyCane, 480);
+ addmonsterdrop(WhiteSlime, XmasCandyCane, 500);
+ addmonsterdrop(RudolphSlime,XmasCandyCane, 1000);
+ addmonsterdrop(Fluffy, XmasCandyCane, 2000);
+ addmonsterdrop(AzulSlime, XmasCandyCane, 2000);
+
+ addmonsterdrop(Duck, GingerBreadMan, 360);
+ addmonsterdrop(WaterFairy, GingerBreadMan, 1000);
+
+
+ // Change maps?
+ addmapmask "009-1", MASK_CHRISTMAS;
+ addmapmask "017-2", MASK_CHRISTMAS;
+ addmapmask "017-2-1", MASK_CHRISTMAS;
+ addmapmask "017-3", MASK_CHRISTMAS;
+
+ // Enable event
+ set $EVENT$, "Christmas";
+ logmes "Enabled CHRISTMAS event.", LOGMES_ATCOMMAND;
+ return;
+ }
+ //MASK_CHRISTMAS
+
function script GlobalEventMenu {
function rateManagement {
@@ -45,10 +79,6 @@ function script GlobalEventMenu {
}
function sEaster {
- // Delete all GoldenEasteregg and SilverEasteregg from every player
- // WARNING, possibly dangerous.
- DelItemFromEveryPlayer(GoldenEasteregg);
- DelItemFromEveryPlayer(GoldenEasteregg);
// Enable event
set $EVENT$, "Easter";
@@ -56,25 +86,17 @@ function script GlobalEventMenu {
return;
}
- function sChristmas {
- // Delete all Christmas stuff?
+ // WARNING, possibly dangerous.
+ function sClear {
+ // Delete all Easter Stuff from every player
DelItemFromEveryPlayer(GoldenEasteregg);
DelItemFromEveryPlayer(GoldenEasteregg);
- // Add drops?
-
- // Change maps?
- addmapmask "009-1", MASK_CHRISTMAS;
- addmapmask "017-2", MASK_CHRISTMAS;
- addmapmask "017-2-1", MASK_CHRISTMAS;
- addmapmask "017-3", MASK_CHRISTMAS;
-
- // Enable event
- set $EVENT$, "Christmas";
- logmes "Enabled CHRISTMAS event.", LOGMES_ATCOMMAND;
- return;
+ // Delete all Christmas stuff
+ DelItemFromEveryPlayer(ClosedChristmasBox);
+ DelItemFromEveryPlayer(OpenedChristmasBox);
}
- //MASK_CHRISTMAS
+
@@ -101,10 +123,11 @@ function script GlobalEventMenu {
l("Disable event"), -,
l("Enable Easter"), -,
l("Enable Worker's Day"), -,
+ l("Enable Christmas"), -,
l("Reset Kill Saulc Event (Monthly)"), -;
switch (@menu) {
- case 1: set $EVENT$, "";$REFERRAL_ENABLED=0; logmes "Disabled events.", LOGMES_ATCOMMAND;
+ case 1: set $EVENT$, ""; sClear(); logmes "Disabled events.", LOGMES_ATCOMMAND;
break;
case 2: sEaster(); break;
case 3:
@@ -115,7 +138,8 @@ function script GlobalEventMenu {
debugmes "Snakes are now dropping Pearls.";
*/
break;
- case 4: DelItemFromEveryPlayer(MurdererCrown); break;
+ case 4: sChristmas(); break;
+ case 5: DelItemFromEveryPlayer(MurdererCrown); break;
}
return;