summaryrefslogtreecommitdiff
path: root/npc/042-6
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-30 21:01:16 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-30 21:01:16 -0300
commit4202ada5ea5d058de01d35c5bca4c7c1f21d236b (patch)
treeb64a8f1c5fd8f32bcaedc2de56f72d15977c8bf7 /npc/042-6
parentf691c281ee89345efe307733d7b3b6b0ec7bd0c2 (diff)
downloadserverdata-4202ada5ea5d058de01d35c5bca4c7c1f21d236b.tar.gz
serverdata-4202ada5ea5d058de01d35c5bca4c7c1f21d236b.tar.bz2
serverdata-4202ada5ea5d058de01d35c5bca4c7c1f21d236b.tar.xz
serverdata-4202ada5ea5d058de01d35c5bca4c7c1f21d236b.zip
The universal rule for Kamelot Caves: You can go back freely between the treasure
caves and the sewers; But if the treasure is looted, the path will be locked.
Diffstat (limited to 'npc/042-6')
-rw-r--r--npc/042-6/_warps.txt1
-rw-r--r--npc/042-6/ctrl.txt18
2 files changed, 18 insertions, 1 deletions
diff --git a/npc/042-6/_warps.txt b/npc/042-6/_warps.txt
index e7dcbaf35..d67d25523 100644
--- a/npc/042-6/_warps.txt
+++ b/npc/042-6/_warps.txt
@@ -1,4 +1,3 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 042-6: Camelot Sewer East Path warps
-042-6,21,76,0 warp #042-6_21_76 0,3,042-5,58,53
042-6,55,20,0 warp #042-6_55_20 0,0,042-10,149,135
diff --git a/npc/042-6/ctrl.txt b/npc/042-6/ctrl.txt
index bdb22c20a..196213792 100644
--- a/npc/042-6/ctrl.txt
+++ b/npc/042-6/ctrl.txt
@@ -128,3 +128,21 @@ function monster0426 {
}
+
+// The exit only works before chest is looted
+042-6,21,76,0 script #KDoor0426 NPC_HIDDEN,0,3,{
+ end;
+
+OnTouch:
+ .@g=getcharid(2);
+ if (.@g < 1) percentheal -100, -100;
+ if ($KAMELOT_KEYMASK[.@g] & 8) goto L_NoAccess;
+ warp "042-5@"+.@g, 58, 53;
+ end;
+
+
+L_NoAccess:
+ dispbottom l("OH NOES! The ceiling seems to have collapsed when the chest was open! We are forced to go forward!!");
+ end;
+}
+