summaryrefslogtreecommitdiff
path: root/npc/001-3-1
diff options
context:
space:
mode:
Diffstat (limited to 'npc/001-3-1')
-rw-r--r--npc/001-3-1/_import.txt5
-rw-r--r--npc/001-3-1/_mobs.txt8
-rw-r--r--npc/001-3-1/_warps.txt4
-rw-r--r--npc/001-3-1/gates.txt66
4 files changed, 83 insertions, 0 deletions
diff --git a/npc/001-3-1/_import.txt b/npc/001-3-1/_import.txt
new file mode 100644
index 00000000..3462861c
--- /dev/null
+++ b/npc/001-3-1/_import.txt
@@ -0,0 +1,5 @@
+// Map 001-3-1: Rivercave
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/001-3-1/_mobs.txt",
+"npc/001-3-1/_warps.txt",
+"npc/001-3-1/gates.txt",
diff --git a/npc/001-3-1/_mobs.txt b/npc/001-3-1/_mobs.txt
new file mode 100644
index 00000000..3bc6a97a
--- /dev/null
+++ b/npc/001-3-1/_mobs.txt
@@ -0,0 +1,8 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 001-3-1: Rivercave mobs
+001-3-1,32,21,3,0 monster Green Slime 1024,3,15000,80000
+001-3-1,27,33,0,1 monster Little Green Slime 1025,3,10000,50000
+001-3-1,23,24,0,1 monster Little Green Slime 1025,3,10000,50000
+001-3-1,26,21,0,1 monster Poison Skull 1100,1,10000,30000
+001-3-1,28,44,3,1 monster Cave Maggot 1027,4,5000,15000
+001-3-1,29,27,6,4 monster Cave Maggot 1027,5,2000,10000
diff --git a/npc/001-3-1/_warps.txt b/npc/001-3-1/_warps.txt
new file mode 100644
index 00000000..f0c3d747
--- /dev/null
+++ b/npc/001-3-1/_warps.txt
@@ -0,0 +1,4 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 001-3-1: Rivercave warps
+001-3-1,24,58,0 warp #001-3-1_24_58 1,0,001-3-0,162,41
+001-3-1,35,59,0 warp #001-3-1_35_59 1,0,001-3-0,172,42
diff --git a/npc/001-3-1/gates.txt b/npc/001-3-1/gates.txt
new file mode 100644
index 00000000..f3c1a038
--- /dev/null
+++ b/npc/001-3-1/gates.txt
@@ -0,0 +1,66 @@
+// Evol scripts.
+// Author:
+// Micksha, Jesusalva
+// Description:
+// The Sewer Gates, and Wheels.
+
+// Brotherhood hideout, the door opens by itself if player
+// can now talk to Sopiahalla.
+001-3-1,30,19,0 script #001-3-1_30_19 NPC_HIDDEN,0,0,{
+ end;
+
+OnTouch:
+ .@q=getq(General_Brotherhood);
+ updateSpotlight(true);
+ if (.@q)
+ warp "001-3-2", 30, 116;
+ end;
+}
+
+// The gate itself
+001-3-1,30,20,0 script #Gate3 NPC_SEWER_GATE,2,2,{
+ .@q=getq(General_Brotherhood);
+ if (.@q)
+ mes l("This gate opens on its own for you... Should we go inside?");
+ else
+ mes l("This gate is closed.");
+ close;
+
+OnTouch:
+ .@q=getq(General_Brotherhood);
+ updateSpotlight(true);
+ // Opening
+ if (!.busy && .@q) {
+ .dir=2;
+ .busy=true;
+ initnpctimer;
+ }
+ end;
+
+// Open
+OnTimer2200:
+ .dir=4;
+ end;
+
+// Closing
+OnTimer8000:
+ .dir=6;
+ end;
+
+// Closed
+OnTimer10400:
+ .dir=0;
+ end;
+
+// Don't reopen immediately, wait a tiny bit
+OnTimer11000:
+ .busy=false;
+ stopnpctimer;
+
+// Initial configuration
+OnInit:
+ .busy=false;
+ .distance = 2;
+ end;
+}
+