summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-02 16:05:42 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-02 16:05:42 -0300
commit6672a71807e3131a2030fb855f34b1f8bddc1e34 (patch)
treed16f815a4fec833864e78b7e7a5de3741d37c6c0
parent3ecb5f59260f15c3fd956287d14d19bc9ac92c8a (diff)
downloadserverdata-6672a71807e3131a2030fb855f34b1f8bddc1e34.tar.gz
serverdata-6672a71807e3131a2030fb855f34b1f8bddc1e34.tar.bz2
serverdata-6672a71807e3131a2030fb855f34b1f8bddc1e34.tar.xz
serverdata-6672a71807e3131a2030fb855f34b1f8bddc1e34.zip
[skip ci] debug markers everywhere
-rw-r--r--npc/000-1/exit.txt2
-rw-r--r--npc/011-3/flood.txt11
2 files changed, 12 insertions, 1 deletions
diff --git a/npc/000-1/exit.txt b/npc/000-1/exit.txt
index 2f043e3e2..d0cddd15c 100644
--- a/npc/000-1/exit.txt
+++ b/npc/000-1/exit.txt
@@ -10,7 +10,7 @@ OnTalk:
OnTalkNearby:
// Switch LOCATION$ and warp to nearest town's Soul Menhir
.@lx=array_find($@LOCAMASTER_LOC$, LOCATION$);
- debugmes "%d", .@lx;
+ debugmes "%s is %d", LOCATION$, .@lx;
if (.@lx >= 0) {
warp $@LOCMASTER_MAP$[.@lx], $@LOCMASTER_X[.@lx], $@LOCMASTER_Y[.@lx];
debugmes "%s (%d , %d)", $@LOCMASTER_MAP$[.@lx], $@LOCMASTER_X[.@lx], $@LOCMASTER_Y[.@lx];
diff --git a/npc/011-3/flood.txt b/npc/011-3/flood.txt
index 326ba03ac..92bb73384 100644
--- a/npc/011-3/flood.txt
+++ b/npc/011-3/flood.txt
@@ -30,12 +30,15 @@ OnMinute42:
OnMinute46:
OnMinute52:
OnMinute56:
+ debugmes "[Flood] Cycle begin";
.@fd=!(getmapmask("011-3")&MASK_SPECIAL); // .@fd - is flooded?
if (.@fd) {
+ debugmes "[Flood] UF - Unflooding";
// If it is flooded, unflood it to prevent players getting struck for too long
killmonster("011-3", "#EternalSwampCore::OnSwampMob");
addmapmask "011-3", MASK_SPECIAL;
+ debugmes "[Flood] UF - Del Cells";
delcells "EterSwampBridge1";
delcells "EterSwampBridge2";
delcells "EterSwampBridge3";
@@ -45,6 +48,7 @@ OnMinute56:
delcells "EterSwampBridge7";
mapannounce "011-3", "Eternal Swamps: The flood ceases!",bc_all|bc_npc;
} else {
+ debugmes "[Flood] Analysis";
// 40% chances to flood, 75% during night
.@odds=40;
if (is_night())
@@ -52,8 +56,10 @@ OnMinute56:
// Maybe we should flood it
if (rand(0,100) < .@odds) {
+ debugmes "[Flood] F - Flooding";
removemapmask "011-3", MASK_SPECIAL;
+ debugmes "[Flood] F - Adding Cells";
setcells "011-3", 37, 22, 39, 24, 3, "EterSwampBridge1";
setcells "011-3", 37, 34, 39, 41, 3, "EterSwampBridge2";
setcells "011-3", 31, 67, 33, 73, 3, "EterSwampBridge3";
@@ -62,18 +68,22 @@ OnMinute56:
setcells "011-3", 41, 157, 43, 163, 3, "EterSwampBridge6";
setcells "011-3", 36, 187, 38, 193, 3, "EterSwampBridge7";
+ debugmes "[Flood] F - Spawn and Announce";
areamonster "011-3", 20, 20, 60, 220, "Bluepar", Bluepar, rand(8,26), "#EternalSwampCore::OnSwampMob";
mapannounce "011-3", "Eternal Swamps: A flood starts!",bc_all|bc_npc;
// TODO: Handle players in bridges
+ debugmes "[Flood] F - Map Timer OK";
maptimer("011-3", "#EternalSwampCore::OnBridgeDown", 10);
}
}
+ debugmes "[Flood] Cycle finished";
end;
// Fix players struck by setcells
OnBridgeDown:
+ debugmes "[Flood] [OnBD] Bridge is Down";
if (isin(37, 22, 39, 24))
slide 38, 21;
else if (isin(37, 34, 39, 41))
@@ -88,6 +98,7 @@ OnBridgeDown:
slide 42, 155;
else if (isin(36, 187, 38, 193))
slide 37, 185;
+ debugmes "[Flood] [OnBD] Finished";
end;
}