summaryrefslogtreecommitdiff
path: root/npc/001-2-8
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-09 11:00:49 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-09 11:00:49 -0300
commit8a4bf716002a017de77fe7df301ef8e4aaf00a2e (patch)
tree4947d0b015baad639fa07133369e9a09c8a468bc /npc/001-2-8
downloadserverdata-8a4bf716002a017de77fe7df301ef8e4aaf00a2e.tar.gz
serverdata-8a4bf716002a017de77fe7df301ef8e4aaf00a2e.tar.bz2
serverdata-8a4bf716002a017de77fe7df301ef8e4aaf00a2e.tar.xz
serverdata-8a4bf716002a017de77fe7df301ef8e4aaf00a2e.zip
Initial commit
Diffstat (limited to 'npc/001-2-8')
-rw-r--r--npc/001-2-8/_import.txt5
-rw-r--r--npc/001-2-8/_warps.txt3
-rw-r--r--npc/001-2-8/doors.txt59
-rw-r--r--npc/001-2-8/mapflags.txt1
4 files changed, 68 insertions, 0 deletions
diff --git a/npc/001-2-8/_import.txt b/npc/001-2-8/_import.txt
new file mode 100644
index 00000000..17bbd2dc
--- /dev/null
+++ b/npc/001-2-8/_import.txt
@@ -0,0 +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/_warps.txt b/npc/001-2-8/_warps.txt
new file mode 100644
index 00000000..43412f72
--- /dev/null
+++ b/npc/001-2-8/_warps.txt
@@ -0,0 +1,3 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 001-2-8: Left Wing warps
+001-2-8,46,41,0 warp #001-2-8_46_41 0,0,001-2-7,27,31
diff --git a/npc/001-2-8/doors.txt b/npc/001-2-8/doors.txt
new file mode 100644
index 00000000..7b34c4da
--- /dev/null
+++ b/npc/001-2-8/doors.txt
@@ -0,0 +1,59 @@
+// 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)) {
+ // Delete previous timers.
+ deltimer("#ArtisThiefBook_0::OnBust1");
+ deltimer("#ArtisThiefBook_0::OnBust2");
+ deltimer("#ArtisThiefBook_0::OnBust3");
+ deltimer("#ArtisThiefBook_0::OnBust4");
+ // Begin the catch timer (addtimer)
+ addtimer 30000, "#ArtisThiefBook_0::OnBust1";
+ warp "001-2-43", 27, 34;
+ } else {
+ 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", 90, 55;
+ }
+
+ }
+ return;
+}
+
+OnTouch:
+ npctalkonce l("Dang! It is locked.");
+ end;
+
+OnInit:
+ .distance=1;
+ end;
+}
+
diff --git a/npc/001-2-8/mapflags.txt b/npc/001-2-8/mapflags.txt
new file mode 100644
index 00000000..3def9ed2
--- /dev/null
+++ b/npc/001-2-8/mapflags.txt
@@ -0,0 +1 @@
+001-2-8 mapflag town