From 47f790759ea3ea56d31e000bc3f3b7f142ee802d Mon Sep 17 00:00:00 2001 From: wushin Date: Fri, 11 Apr 2014 14:32:22 -0500 Subject: Npcs remaining script fixes Npcs changed for travel Npcs changed for new maps Npcs changed for basic crypts --- world/map/npc/027-3/locked_doors.txt | 128 +++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 world/map/npc/027-3/locked_doors.txt (limited to 'world/map/npc/027-3/locked_doors.txt') diff --git a/world/map/npc/027-3/locked_doors.txt b/world/map/npc/027-3/locked_doors.txt new file mode 100644 index 00000000..b2ec8779 --- /dev/null +++ b/world/map/npc/027-3/locked_doors.txt @@ -0,0 +1,128 @@ +// Locked Doors + +027-3.gat,22,29,0|script|#CLockDoor1|35,0,0 +{ + if (countitem("CryptKey") < 5) + goto L_NoKeys; + mes "Open the Locked Door?"; + menu + "Yes.", L_Open, + "No.", L_Close; + +L_Open: + delitem "CryptKey", 5; + warp "027-3.gat",22,26; + goto L_Close; + +L_NoKeys: + message strcharinfo(0), "This door is locked."; + end; + +L_Close: + close; +} + +027-3.gat,22,27,0|script|#CInsideDoor1|35,0,0 +{ + mes "Open the Door?"; + menu + "Yes.", L_Open, + "No.", L_Close; + +L_Open: + warp "027-3.gat",22,30; + message strcharinfo(0), "This door slams shut and locks itself behind you."; + goto L_Close; + +L_Close: + close; +} + +027-3.gat,37,29,0|script|#CLockDoor2|35,0,0 +{ + if (countitem("CryptKey") < 5) + goto L_NoKeys; + mes "Open the Locked Door?"; + menu + "Yes.", L_Open, + "No.", L_Close; + +L_Open: + delitem "CryptKey", 5; + warp "027-3.gat",37,26; + goto L_Close; + +L_NoKeys: + message strcharinfo(0), "This door is locked."; + end; + +L_Close: + close; +} + +027-3.gat,37,27,0|script|#CInsideDoor2|35,0,0 +{ + mes "Open the Door?"; + menu + "Yes.", L_Open, + "No.", L_Close; + +L_Open: + warp "027-3.gat",37,30; + message strcharinfo(0), "This door slams shut and locks itself behind you."; + goto L_Close; + +L_Close: + close; +} + +027-3.gat,128,29,0|script|#CLockDoor3|35,0,0 +{ + if (countitem("CryptKey") < 5) + goto L_NoKeys; + mes "Open the Locked Door?"; + menu + "Yes.", L_Open, + "No.", L_Close; + +L_Open: + delitem "CryptKey", 5; + warp "027-3.gat",128,26; + goto L_Close; + +L_NoKeys: + message strcharinfo(0), "This door is locked."; + end; + +L_Close: + close; +} + +027-3.gat,128,27,0|script|#CInsideDoor3|35,0,0 +{ + mes "Open the Door?"; + menu + "Yes.", L_Open, + "No.", L_Close; + +L_Open: + warp "027-3.gat",128,30; + message strcharinfo(0), "This door slams shut and locks itself behind you."; + goto L_Close; + +L_Close: + close; +} + +027-3.gat,22,22,0|script|Crypt#1|35,0,0 +{ + // Coords X: 117,104,110,118; + // Coords Y: 53, 87, 53,87; + end; +} +027-3.gat,35,22,0|script|Crypt#2|35,0,0 +{ + // Coords X: 105,118,118,122; + // Coords Y: 58, 77, 72, 58 + end; +} -- cgit v1.2.3-70-g09d2