summaryrefslogtreecommitdiff
path: root/npc/027-4/general_razha_door.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-09 13:33:57 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-09 13:33:57 -0300
commitcf18ce071c79ae37e14ea38943e0b1d88da70a7b (patch)
treef9159c9b60b3018300dd22ffba0d797bc5e828e5 /npc/027-4/general_razha_door.txt
parent8a4bf716002a017de77fe7df301ef8e4aaf00a2e (diff)
downloadserverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.gz
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.bz2
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.xz
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.zip
Override
Diffstat (limited to 'npc/027-4/general_razha_door.txt')
-rwxr-xr-xnpc/027-4/general_razha_door.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/npc/027-4/general_razha_door.txt b/npc/027-4/general_razha_door.txt
new file mode 100755
index 00000000..68db1550
--- /dev/null
+++ b/npc/027-4/general_razha_door.txt
@@ -0,0 +1,16 @@
+
+027-4,73,76,0 script #GeneralDoor2 NPC45,1,0,{
+ if ( (countitem("CryptKey") < 10) && ($@CRYPT_FIGHT2 != 0) )
+ goto L_NoKeys;
+
+ delitem "CryptKey", 10;
+ warp "027-7",39,60;
+ goto L_close;
+
+L_NoKeys:
+ message strcharinfo(0), "This door is locked.";
+ end;
+
+L_close:
+ close;
+}