summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-12 13:10:09 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-12 13:10:09 -0300
commit45967984a959680e9bbf8db85229b52dbcebf466 (patch)
tree8c49ceecdab22bdf3ca471f29dccd9dde5dd0d26
parentf178a3bc3f08c43f148bbee9e769982a8a73656a (diff)
downloadserverdata-45967984a959680e9bbf8db85229b52dbcebf466.tar.gz
serverdata-45967984a959680e9bbf8db85229b52dbcebf466.tar.bz2
serverdata-45967984a959680e9bbf8db85229b52dbcebf466.tar.xz
serverdata-45967984a959680e9bbf8db85229b52dbcebf466.zip
Add failsafes
-rw-r--r--npc/080-1/final.txt3
-rw-r--r--npc/081-2/logic.txt18
2 files changed, 18 insertions, 3 deletions
diff --git a/npc/080-1/final.txt b/npc/080-1/final.txt
index e288a275..a287c6c1 100644
--- a/npc/080-1/final.txt
+++ b/npc/080-1/final.txt
@@ -195,6 +195,9 @@ OnPayFunds:
if (mobcount(getmap(), "#X21BarrierF::OnKil")) {
dispbottom strcharinfo(0) + " : " + l("This clearly is not a real gate; Most likely an illusion to prevent access. I should be able to dispel it by killing the guardians.");
+ slide 84, 137;
+ if (checkcell(getmap(), 84, 135, cell_chkpass))
+ setcells .@mapd$, 81, 131, 86, 135, 1, "X21LF@"+X21ID();
end;
}
delcells("X21LF@"+X21ID());
diff --git a/npc/081-2/logic.txt b/npc/081-2/logic.txt
index 6cecaf6e..5a985cce 100644
--- a/npc/081-2/logic.txt
+++ b/npc/081-2/logic.txt
@@ -175,8 +175,12 @@ OnInit:
081-2,103,213,0 script #X21Barrier1 NPC_HIDDEN,4,1,{
@inst = instance_id() + 1;
- if (!'XMAS21CANDLE)
+ if (!'XMAS21CANDLE) {
dispbottom l("Northern Lights")+" : "+l("The strong shall yield the %s to enlighten the way, according to the established sequence.", b(l("powder")));
+ slide 105, 214;
+ if (checkcell(getmap(), 105, 212, cell_chkpass))
+ setcells .@mapa$, 103, 211, 107, 212, 1, "X21L1@"+X21ID();
+ }
end;
OnInit:
.distance=1;
@@ -187,8 +191,12 @@ OnInit:
/* Seeds Puzzle - See 2021.txt */
081-2,127,129,0 script #X21Barrier2 NPC_HIDDEN,4,0,{
- if (!'XMAS21TREE)
+ if (!'XMAS21TREE) {
npctalkonce l("In this year Christmas, kids shall play ball. Once the Christmas Tree is set, the festivities may proceed.");
+ slide 127, 130;
+ if (checkcell(getmap(), 127, 128, cell_chkpass))
+ setcells .@mapa$, 124, 127, 131, 128, 1, "X21L2@"+X21ID();
+ }
end;
OnInit:
.distance=1;
@@ -230,8 +238,12 @@ OnInit:
/* Ambush Puzzle */
081-2,49,73,0 script #X21Barrier3 NPC_HIDDEN,2,0,{
- if (!'XMAS21AMBUSH)
+ if (!'XMAS21AMBUSH) {
npctalkonce l("One room, Seventeen buttons, Three truths, and a lever to bring joy to the children.");
+ slide 49, 74;
+ if (checkcell(getmap(), 49, 72, cell_chkpass))
+ setcells .@mapa$, 47, 71, 51, 72, 1, "X21L3@"+X21ID();
+ }
end;
OnInit:
.distance=1;