summaryrefslogtreecommitdiff
path: root/npc/027-5/general_terogan_door.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/027-5/general_terogan_door.txt')
-rwxr-xr-xnpc/027-5/general_terogan_door.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/npc/027-5/general_terogan_door.txt b/npc/027-5/general_terogan_door.txt
new file mode 100755
index 00000000..4a3f8946
--- /dev/null
+++ b/npc/027-5/general_terogan_door.txt
@@ -0,0 +1,16 @@
+
+027-5,70,25,0 script #GeneralDoor3 NPC45,1,0,{
+ if ( (countitem("CryptKey") < 10) && ($@CRYPT_FIGHT3 != 0) )
+ goto L_NoKeys;
+
+ delitem "CryptKey", 10;
+ warp "027-8",39,60;
+ goto L_close;
+
+L_NoKeys:
+ message strcharinfo(0), "This door is locked.";
+ end;
+
+L_close:
+ close;
+}