summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-08 11:15:55 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-08 11:15:55 -0300
commit22e4bc1892235d29eedb59fafee4c4397ecb3189 (patch)
treed229c657d1196acf19e70ac2b55357a80a3c92dc
parent2f55b2884a8e4f7dd3bf6f26f147dcc5000da6a9 (diff)
downloadserverdata-22e4bc1892235d29eedb59fafee4c4397ecb3189.tar.gz
serverdata-22e4bc1892235d29eedb59fafee4c4397ecb3189.tar.bz2
serverdata-22e4bc1892235d29eedb59fafee4c4397ecb3189.tar.xz
serverdata-22e4bc1892235d29eedb59fafee4c4397ecb3189.zip
This allows player to break inside the archives
-rw-r--r--npc/001-2-8/_import.txt1
-rw-r--r--npc/001-2-8/doors.txt53
-rw-r--r--npc/001-3-0/gates.txt1
-rw-r--r--npc/001-3-2/henry.txt2
4 files changed, 55 insertions, 2 deletions
diff --git a/npc/001-2-8/_import.txt b/npc/001-2-8/_import.txt
index 93b064fe..17bbd2dc 100644
--- a/npc/001-2-8/_import.txt
+++ b/npc/001-2-8/_import.txt
@@ -1,4 +1,5 @@
// Map 001-2-8: Left Wing
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/001-2-8/_warps.txt",
+"npc/001-2-8/doors.txt",
"npc/001-2-8/mapflags.txt",
diff --git a/npc/001-2-8/doors.txt b/npc/001-2-8/doors.txt
new file mode 100644
index 00000000..9d9de958
--- /dev/null
+++ b/npc/001-2-8/doors.txt
@@ -0,0 +1,53 @@
+// Evol scripts.
+// Author:
+// Jesusalva
+// Description:
+// The Door for Town Archives
+
+001-2-8,38,30,0 script #ArtisArchiveGate NPC_NO_SPRITE,0,0,{
+ function breakIn;
+ function notToday;
+
+ .@q=getq(ThiefQuests_Artis);
+ mes l("The door is locked and you don't have the key.");
+ next;
+ mes l("This is probably where the town files are kept.");
+ if (.@q > 1) notToday();
+ if (.@q == 1) breakIn();
+ close;
+
+function notToday {
+ mesc l("I have nothing else to do down there.");
+ return;
+}
+
+function breakIn {
+ mesc l("Should we break in? We'll be in a bad situation if we're found out.");
+ next;
+ // Better to not use only a pine!
+ if (LockPicking(2, 3, false)) {
+ // TODO: Begin the catch timer (addtimer)
+ warp "001-2-43", 27, 34;
+ } else {
+ if (ArrestedChances()) {
+ mesc l("Arrested!");
+ // TODO: Arrest player, preferably without GM commands D:
+ atcommand("@jailfor 5mn "+strcharinfo(0));
+ } else {
+ mesc l("You're almost found out, but manage to make a quick escape!");
+ warp "001-1", 90, 55;
+ }
+
+ }
+ return;
+}
+
+OnTouch:
+ npctalkonce l("Dang! It is locked.");
+ end;
+
+OnInit:
+ .distance=1;
+ end;
+}
+
diff --git a/npc/001-3-0/gates.txt b/npc/001-3-0/gates.txt
index 01d28c6a..8eaca1b0 100644
--- a/npc/001-3-0/gates.txt
+++ b/npc/001-3-0/gates.txt
@@ -3,7 +3,6 @@
// Micksha
// Description:
// The Sewer Gates, and Wheels.
-// THIS IS A PLACEHOLDER!
001-3-0,90,62,0 script #Gate1 NPC_SEWER_GATE,2,2,{
.@q=getq(ThiefQuests_Artis);
diff --git a/npc/001-3-2/henry.txt b/npc/001-3-2/henry.txt
index cb142bf3..724a292c 100644
--- a/npc/001-3-2/henry.txt
+++ b/npc/001-3-2/henry.txt
@@ -54,7 +54,7 @@ function proposeFirstQuest {
b(l("In Artis Townhall Archives,"))+" "+l("there is an entry about me."),
l("If they somehow catch me again, they'll use this entry as evidence to get me on a harsher punishment..."),
l("So please find my file on the archives and, I don't know, deal with it?"),
- l("I am smart and have friends, I'll know if you lie. Anyway, just don't get caught inside the archives.");
+ l("I am smart, I'll know if you lie. Anyway, just don't get caught inside the archives.");
//l("After messing with the Major and the Legion here, I can teach you lockpicking. Ah, and you may try to find my friend Nunia in Woodland, once you go there. She seems to be disappeared."),
//l("Call for Micksha and Jesusalva to implement all this, please.");
next;