diff options
Diffstat (limited to 'npc/042-6/ctrl.txt')
-rw-r--r-- | npc/042-6/ctrl.txt | 18 |
1 files changed, 18 insertions, 0 deletions
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; +} + |