summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-10 01:34:52 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-10 01:34:52 -0300
commitcfe1e4a526e7198f849d7a7b917feaf8b0d1c469 (patch)
tree16a6ab03bdd324140dc39156253bbf1a537da406
parent91538c6e6784c9baf2961f4aed314bd60556d041 (diff)
downloadserverdata-cfe1e4a526e7198f849d7a7b917feaf8b0d1c469.tar.gz
serverdata-cfe1e4a526e7198f849d7a7b917feaf8b0d1c469.tar.bz2
serverdata-cfe1e4a526e7198f849d7a7b917feaf8b0d1c469.tar.xz
serverdata-cfe1e4a526e7198f849d7a7b917feaf8b0d1c469.zip
And this is what Micksha wanted most - Player getting arrested.
-rw-r--r--npc/001-3-0/gates.txt29
1 files changed, 27 insertions, 2 deletions
diff --git a/npc/001-3-0/gates.txt b/npc/001-3-0/gates.txt
index dc30bcac..ea1b676d 100644
--- a/npc/001-3-0/gates.txt
+++ b/npc/001-3-0/gates.txt
@@ -165,10 +165,35 @@ OnTouch:
end;
OnTouch:
- // TODO Bust instantly if doing at wrong time? Don't let player do so?
- // FIXME
+ // No enter except when q1 and q2 matches
+ .@q=getq(ThiefQuests_Artis);
+ .@q2=getq2(ThiefQuests_Artis);
+ if (.@q != 4 || .@q2 != 2)
+ end;
+
warp "001-2-40", 56, 40;
+ addtimer2(3000, .name$+"::OnBusted");
end;
+
+// Henry said to you don't use the gate, because you are not discrete enough.
+// Poor player, this is what happens for not paying attention to Henry's advise.
+OnBusted:
+ if (getmap() != "001-2-40")
+ end;
+
+ mesn l("Legion Officer");
+ mes l("HEY! How you got here!?");
+ next;
+ // Check if you'll be caught
+ if (ArrestedChances()) {
+ mesc l("Arrested!");
+ mesc l("You'll now spend a few minutes on the jail to reflect on your actions.");
+ ArrestPlayer(5);
+ } else {
+ mesc l("You're almost found out, but manage to make a quick escape!");
+ warp "001-1", 41, 36;
+ }
+ close;
}