summaryrefslogtreecommitdiff
path: root/npc/002-2/doors.txt
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-22 23:42:45 -0300
committerjesusalva <cpntb1@ymail.com>2018-02-22 23:42:45 -0300
commit569e700bb17b985a17bd1eded208722f7fe66ae1 (patch)
treefcec4e5156c7c70c6140fb65f445a82c232ce415 /npc/002-2/doors.txt
parentf8240de7fee7b91c3d68211b51cf59bc8fbaa0e8 (diff)
downloadserverdata-569e700bb17b985a17bd1eded208722f7fe66ae1.tar.gz
serverdata-569e700bb17b985a17bd1eded208722f7fe66ae1.tar.bz2
serverdata-569e700bb17b985a17bd1eded208722f7fe66ae1.tar.xz
serverdata-569e700bb17b985a17bd1eded208722f7fe66ae1.zip
Fix Peter's quest so you can get 2450 GP in Candor (not counting Tolchi & Beer)
Diffstat (limited to 'npc/002-2/doors.txt')
-rw-r--r--npc/002-2/doors.txt69
1 files changed, 69 insertions, 0 deletions
diff --git a/npc/002-2/doors.txt b/npc/002-2/doors.txt
new file mode 100644
index 000000000..09317360d
--- /dev/null
+++ b/npc/002-2/doors.txt
@@ -0,0 +1,69 @@
+// Evol scripts.
+// Authors:
+// Ablu
+// Alastrim
+// Reid
+// Description:
+// Doors NPCs.
+
+002-2,48,29,0 script DoorUpwards NPC_HIDDEN,0,0,{
+
+OnTouch:
+ if (mobcount("002-2","all") > 0) goto L_Warn;
+
+ goto L_Warp;
+
+L_Warn:
+ .@q = getq(ShipQuests_Peter);
+ if (.@q == 5) goto L_Warp;
+
+ mesn "Narrator";
+ mes col(l("There are still some rattos left! Do you want to abort the quest?"), 9);
+ next;
+
+ menu
+ l("Yes."), L_Warp,
+ l("No."), -;
+
+ warp "002-2", 48, 28;
+ closeclientdialog;
+ close;
+
+L_Warp:
+ warp "002-1", 72, 36;
+ closeclientdialog;
+ close;
+}
+
+002-2,24,31,0 script LeftDoor NPC_HIDDEN,0,0,{
+
+OnTouch:
+ mesn "Narrator";
+ mes col(l("It seems that you need a key to open this door."), 9);
+ next;
+ mes col(l("What do you want to do?"), 9);
+ next;
+
+ menu
+ rif(countitem(718) > 0, l("Use the key.")), L_Warp,
+ l("Break the door."), L_Break,
+ l("Go away."), -;
+
+ closeclientdialog;
+ close;
+
+L_Break:
+
+ mes "";
+ mesn "Narrator";
+ mes col(l("You hear a loud scream. It must be the creaking of the wooden door..."), 9);
+
+ close;
+
+L_Warp:
+ mes "";
+ mesn "Narrator";
+ mes col(l("Wait, it seems someone is blocking the door from the other side!"), 9);
+
+ close;
+}