summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-02 20:56:08 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-02 20:56:08 -0300
commita2739966bfa171f9afcf873df746f5d418df5a92 (patch)
treeed718468f1517fcb58a82dfe8ec7cc75ed1ccea6
parent2800444630565467ffd047073ed6a4a869385e8e (diff)
downloadserverdata-a2739966bfa171f9afcf873df746f5d418df5a92.tar.gz
serverdata-a2739966bfa171f9afcf873df746f5d418df5a92.tar.bz2
serverdata-a2739966bfa171f9afcf873df746f5d418df5a92.tar.xz
serverdata-a2739966bfa171f9afcf873df746f5d418df5a92.zip
Playing with Christmas (only Halinarzo is affected)
-rw-r--r--db/constants.conf2
-rw-r--r--npc/commands/event.txt20
-rw-r--r--npc/functions/weather.txt4
3 files changed, 24 insertions, 2 deletions
diff --git a/db/constants.conf b/db/constants.conf
index 8bcb1b42a..4d70e8f57 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -3855,7 +3855,7 @@ constants_db: {
MASK_RAIN: 16
MASK_SANDSTORM: 32
MASK_SNOW: 64
- MASK_RESERVED1: 128
+ MASK_CHRISTMAS: 128
MASK_RESERVED2: 256
comment__: "speechflags"
diff --git a/npc/commands/event.txt b/npc/commands/event.txt
index f8641f83b..49bc9f897 100644
--- a/npc/commands/event.txt
+++ b/npc/commands/event.txt
@@ -56,6 +56,21 @@ function script GlobalEventMenu {
return;
}
+ function sChristmas {
+ // Delete all Christmas stuff?
+ DelItemFromEveryPlayer(GoldenEasteregg);
+ DelItemFromEveryPlayer(GoldenEasteregg);
+
+ // Add drops?
+
+ // Change maps?
+
+ // Enable event
+ set $EVENT$, "Christmas";
+ logmes "Enabled CHRISTMAS event.", LOGMES_ATCOMMAND;
+ return;
+ }
+ //MASK_CHRISTMAS
@@ -81,7 +96,8 @@ function script GlobalEventMenu {
menu
l("Disable event"), -,
l("Enable Easter"), -,
- l("Enable Worker's Day"), -;
+ l("Enable Worker's Day"), -,
+ l("Enable Refeer Program"), -;
switch (@menu) {
case 1: set $EVENT$, ""; logmes "Disabled events.", LOGMES_ATCOMMAND;
@@ -95,6 +111,8 @@ function script GlobalEventMenu {
debugmes "Snakes are now dropping Pearls.";
*/
break;
+ case 4: $EVENT$="Refeer"; logmes "Enabled REFEER event.", LOGMES_ATCOMMAND;
+ break;
}
return;
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index d9c7b1d67..bdf58b191 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -107,6 +107,10 @@ OnMinute45:
if (!(.@mk & MASK_NONE))
.@mk=.@mk|MASK_NONE;
+ // Christmas Decor should not be here
+ if ($EVENT$ == "Christmas" && .@key$ == "009-1")
+ .@mk=.@mk|MASK_CHRISTMAS;
+
setmapmask .@key$, .@mk;
// Is it night time?