diff options
Diffstat (limited to 'npc/000-2-2/doors.txt')
-rw-r--r-- | npc/000-2-2/doors.txt | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/npc/000-2-2/doors.txt b/npc/000-2-2/doors.txt new file mode 100644 index 00000000..c97a7c5d --- /dev/null +++ b/npc/000-2-2/doors.txt @@ -0,0 +1,75 @@ +// Evol scripts. +// Authors: +// Ablu +// Alastrim +// Jesusalva +// Reid +// Description: +// Doors NPCs. + +000-2-2,48,29,0 script DoorUpwards NPC_HIDDEN,0,0,{ + +OnTouch: + // Actually this will never work because Instanced map + if (mobcount("000-2-2","all") > 0) goto L_Warn; + + goto L_Warp; + +L_Warn: + .@q = getq(ShipQuests_Peter); + if (.@q >= 15) goto L_Warp; + + mesn "Narrator"; + mesc(l("There are still some monsters left! Do you want to abort the quest?"), 9); + next; + + menu + l("Yes."), L_Warp, + l("No."), -; + + slide 48, 28; + closeclientdialog; + close; + +L_Warp: + warp "000-2-1", 72, 36; + + deltimer("Peter::OnLowTime"); + deltimer("Peter::OnTimeout"); + closeclientdialog; + close; +} + +// Besides the door, Alige is hiding himself and would rather not be disturbed +000-2-2,24,31,0 script LeftDoor NPC_HIDDEN,0,0,{ + +OnTouch: + mesn "Narrator"; + mesc(l("It seems that you need a key to open this door."), 9); + next; + mesc(l("What do you want to do?"), 9); + next; + + menu + rif(countitem(JohanneKey) > 0, l("Use the key.")), L_Warp, + l("Break the door."), L_Break, + l("Go away."), -; + + closeclientdialog; + close; + +L_Break: + + mes ""; + mesn "Narrator"; + mesc(l("You hear a loud scream. It must be the creaking of the wooden door..."), 9); + + close; + +L_Warp: + mes ""; + mesn "Narrator"; + mesc(l("Wait, it seems someone is blocking the door from the other side!"), 9); + + close; +} |