summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-01-09 20:11:27 -0300
committerJesusaves <cpntb1@ymail.com>2024-01-09 20:11:27 -0300
commit3d98e39073df31d8b099a2694e0e094fd2e2d249 (patch)
treee5de8197ab454e0d11f9c932e2353b436d9312f9 /npc
parent7153086ed7c552fb0d4baacfff115d9ced9ce627 (diff)
downloadserverdata-3d98e39073df31d8b099a2694e0e094fd2e2d249.tar.gz
serverdata-3d98e39073df31d8b099a2694e0e094fd2e2d249.tar.bz2
serverdata-3d98e39073df31d8b099a2694e0e094fd2e2d249.tar.xz
serverdata-3d98e39073df31d8b099a2694e0e094fd2e2d249.zip
011-4 Eternal Swamps Navigation Area
Diffstat (limited to 'npc')
-rw-r--r--npc/011-3/flood.txt23
-rw-r--r--npc/011-4/_import.txt3
-rw-r--r--npc/011-4/_mobs.txt17
-rw-r--r--npc/_import.txt1
-rw-r--r--npc/functions/weather.txt1
5 files changed, 42 insertions, 3 deletions
diff --git a/npc/011-3/flood.txt b/npc/011-3/flood.txt
index 0fda21d8a..4ff712b7c 100644
--- a/npc/011-3/flood.txt
+++ b/npc/011-3/flood.txt
@@ -17,6 +17,12 @@ OnSwampMob:
OnInit:
addmapmask "011-3", MASK_SPECIAL;
bindatcmd "es_flood", "#EternalSwampCore::OnSkipFlood", 99, 99, 1;
+
+ // We need to keep 011-4 in sync with 011-3, dealt here
+ addmapmask "011-4", MASK_SPECIAL;
+ setcells "011-4", 157, 31, 159, 34, 1, "ESwpRBridge1";
+ setcells "011-4", 157, 44, 159, 52, 1, "ESwpRBridge2";
+ setcells "011-4", 151, 76, 153, 83, 1, "ESwpRBridge3";
end;
OnMinute02:
@@ -51,12 +57,19 @@ OnSkipFlood:
delcells "ESwpBridge6";
delcells "ESwpBridge7";
delcells "ESwpBridge8";
+ setcells "011-4", 157, 31, 159, 34, 1, "ESwpRBridge1";
+ setcells "011-4", 157, 44, 159, 52, 1, "ESwpRBridge2";
+ setcells "011-4", 151, 76, 153, 83, 1, "ESwpRBridge3";
mapannounce "011-3", "Eternal Swamps: The flood ceases!",bc_all|bc_npc;
+ mapannounce "011-4", "Eternal Swamps: The flood ceases!",bc_all|bc_npc;
} else {
- // 40% chances to flood, 75% during night
- .@odds=40;
+ // 45% chances to flood, 80% during night
+ // When raining: floods 60% at day and 95% at night
+ .@odds=45;
if (is_night())
.@odds+=35;
+ if (getmapmask("011-3") & MASK_RAIN)
+ .@odds+=15;
/*
// Bugfix
@@ -68,7 +81,7 @@ OnSkipFlood:
*/
// Maybe we should flood it
- if (rand(0,100) < .@odds) {
+ if (rand2(0,100) < .@odds) {
if ($@GM_OVERRIDE) debugmes "[Flood] F - Flooding";
removemapmask "011-3", MASK_SPECIAL;
@@ -81,10 +94,14 @@ OnSkipFlood:
setcells "011-3", 41, 197, 43, 203, 1, "ESwpBridge6";
setcells "011-3", 36, 227, 38, 233, 1, "ESwpBridge7";
setcells "011-3", 31, 67, 33, 72, 1, "ESwpBridge8";
+ delcells "ESwpRBridge1";
+ delcells "ESwpRBridge2";
+ delcells "ESwpRBridge3";
//debugmes "[Flood] F - Spawn and Announce";
areamonster "011-3", 20, 20, 60, 260, "Bluepar", Bluepar, rand2(11,29), "#EternalSwampCore::OnSwampMob";
mapannounce "011-3", "Eternal Swamps: A flood starts!",bc_all|bc_npc;
+ mapannounce "011-4", "Eternal Swamps: A flood starts!",bc_all|bc_npc;
// TODO: Handle players in bridges
//debugmes "[Flood] F - Map Timer OK";
diff --git a/npc/011-4/_import.txt b/npc/011-4/_import.txt
new file mode 100644
index 000000000..2841ca4db
--- /dev/null
+++ b/npc/011-4/_import.txt
@@ -0,0 +1,3 @@
+// Map 011-4: Eternal Swamps - Navigation
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/011-4/_mobs.txt",
diff --git a/npc/011-4/_mobs.txt b/npc/011-4/_mobs.txt
new file mode 100644
index 000000000..d24e4d923
--- /dev/null
+++ b/npc/011-4/_mobs.txt
@@ -0,0 +1,17 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 011-4: Eternal Swamps - Navigation mobs
+011-4,91,55,24,14 monster Sea Slime 1093,5,100000,30000
+011-4,227,60,27,27 monster Sea Slime 1093,5,100000,30000
+011-4,100,77,24,14 monster Piou 1002,5,100000,30000
+011-4,56,61,30,17 monster Croc 1006,10,100000,30000
+011-4,52,75,24,14 monster Small Frog 1437,5,100000,30000
+011-4,122,67,32,36 monster Blub 1008,5,100000,30000
+011-4,160,66,24,37 monster Ocean Croc 1133,3,200000,60000
+011-4,218,88,35,16 monster Toppy Blub 1009,5,100000,30000
+011-4,195,48,36,23 monster Bluepar 1177,3,200000,60000
+011-4,161,82,41,18 monster Water Fairy 1184,5,100000,30000
+011-4,283,51,7,6 monster Golden Scorpion 1078,1,300000,120000
+011-4,277,78,7,6 monster Siege Tower 1235,1,300000,120000
+011-4,297,97,1,1 monster Water Element 1412,1,300000,120000
+011-4,278,63,16,23 monster Croc 1006,10,100000,30000
+011-4,260,35,24,14 monster Piou 1002,5,100000,30000
diff --git a/npc/_import.txt b/npc/_import.txt
index 3abcfe633..885db7540 100644
--- a/npc/_import.txt
+++ b/npc/_import.txt
@@ -146,6 +146,7 @@
@include "npc/011-1/_import.txt"
@include "npc/011-2/_import.txt"
@include "npc/011-3/_import.txt"
+@include "npc/011-4/_import.txt"
@include "npc/012-1/_import.txt"
@include "npc/012-2/_import.txt"
@include "npc/012-3/_import.txt"
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index 5c369e1bd..8c1643359 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -108,6 +108,7 @@ OnInit:
// Special
htput(.wcore, "011-3", "special");
+ htput(.wcore, "011-4", "special");
consoleinfo "[Weather.sys] Total Maps = " + htsize(.wcore);