summaryrefslogtreecommitdiff
path: root/npc/015-5
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-10-23 21:44:22 -0300
committerJesusaves <cpntb1@ymail.com>2022-10-23 21:44:22 -0300
commita7c45a192268da2601cef47a4cdba987ae2327ca (patch)
treec5fb5b97db109fe7106496dd96498c475881046b /npc/015-5
downloadserverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.gz
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.bz2
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.xz
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.zip
Initial commit (Moubootaur Legends fork)
Diffstat (limited to 'npc/015-5')
-rw-r--r--npc/015-5/_import.txt6
-rw-r--r--npc/015-5/_mobs.txt28
-rw-r--r--npc/015-5/_warps.txt4
-rw-r--r--npc/015-5/sign.txt22
-rw-r--r--npc/015-5/treasure.txt64
5 files changed, 124 insertions, 0 deletions
diff --git a/npc/015-5/_import.txt b/npc/015-5/_import.txt
new file mode 100644
index 0000000..85922cc
--- /dev/null
+++ b/npc/015-5/_import.txt
@@ -0,0 +1,6 @@
+// Map 015-5: Abandoned Mines
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/015-5/_mobs.txt",
+"npc/015-5/_warps.txt",
+"npc/015-5/sign.txt",
+"npc/015-5/treasure.txt",
diff --git a/npc/015-5/_mobs.txt b/npc/015-5/_mobs.txt
new file mode 100644
index 0000000..939e5a1
--- /dev/null
+++ b/npc/015-5/_mobs.txt
@@ -0,0 +1,28 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 015-5: Abandoned Mines mobs
+015-5,353,65,9,3 monster Cave Maggot 1027,5,100000,30000
+015-5,347,45,9,3 monster Cave Maggot 1027,5,100000,30000
+015-5,317,31,9,3 monster Cave Maggot 1027,5,100000,30000
+015-5,252,39,4,8 monster Cave Maggot 1027,5,100000,30000
+015-5,268,101,8,9 monster Cave Maggot 1027,10,100000,30000
+015-5,351,81,9,3 monster Cave Maggot 1027,5,100000,30000
+015-5,293,138,8,3 monster Cave Maggot 1027,5,100000,30000
+015-5,314,78,4,8 monster Cave Maggot 1027,5,100000,30000
+015-5,287,152,8,3 monster Cave Maggot 1027,5,100000,30000
+015-5,335,117,4,8 monster Cave Maggot 1027,5,100000,30000
+015-5,235,100,4,8 monster Cave Maggot 1027,5,100000,30000
+015-5,174,138,8,9 monster Cave Maggot 1027,10,100000,30000
+015-5,93,52,8,9 monster Troll 1171,6,100000,30000
+015-5,70,106,8,9 monster Cave Maggot 1027,10,100000,30000
+015-5,297,95,39,38 monster Small Emerald Bif 1104,1,45000,45000
+015-5,237,143,95,39 monster Copper Slime 1088,14,45000,45000
+015-5,186,64,113,48 monster Earth Fairy 1182,8,35000,35000
+015-5,215,108,5,6 monster Small Emerald Bif 1104,1,45000,45000
+015-5,69,172,32,15 monster Mouboo Slime 1201,12,360000,180000
+015-5,215,108,8,9 monster Cave Maggot 1027,10,100000,30000
+015-5,127,154,35,41 monster Archant 1026,6,30000,30000
+015-5,370,67,35,41 monster Archant 1026,6,30000,30000
+015-5,78,109,48,98 monster Cave Snake 1035,8,30000,30000
+015-5,154,55,33,43 monster Dark Lizard 1051,4,100000,30000
+015-5,214,100,189,95 monster Cave Maggot 1027,160,70000,30000
+015-5,206,167,175,36 monster Mineral Bif 1058,6,100000,30000
diff --git a/npc/015-5/_warps.txt b/npc/015-5/_warps.txt
new file mode 100644
index 0000000..4ba354f
--- /dev/null
+++ b/npc/015-5/_warps.txt
@@ -0,0 +1,4 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 015-5: Abandoned Mines warps
+015-5,81,138,0 warp #015-5_81_138 0,0,014-5,86,32
+015-5,353,61,0 warp #015-5_353_61 0,0,015-6,193,57
diff --git a/npc/015-5/sign.txt b/npc/015-5/sign.txt
new file mode 100644
index 0000000..9d92af6
--- /dev/null
+++ b/npc/015-5/sign.txt
@@ -0,0 +1,22 @@
+// TMW2 Script.
+// Author:
+// Jesusalva
+// Description:
+// You're at a PVP Area
+
+015-5,356,61,0 script WARNING#015535661 NPC_SWORDS_SIGN2,{
+ mesn;
+ mesc l("You are entering on a PVP Area with lowered death penalty.");
+ next;
+ mesn;
+ mesc l("The mines beyond this point have been shut at 280 AT because Terranite. You've been warned!");
+ close;
+
+OnInit:
+ .sex = G_OTHER;
+ .distance = 3;
+ end;
+}
+
+015-5,350,61,0 duplicate(WARNING#015535661) WARNING#015535061 NPC_SWORDS_SIGN2
+
diff --git a/npc/015-5/treasure.txt b/npc/015-5/treasure.txt
new file mode 100644
index 0000000..0fb2a85
--- /dev/null
+++ b/npc/015-5/treasure.txt
@@ -0,0 +1,64 @@
+// TMW2 Script
+
+// (Random) Treasure Chest
+// Authored by Jesusalva
+// Regenerates every 6 hours
+
+015-5,0,0,0 script #chest_01550 NPC_CHEST,{
+
+ if (!.busy && !.empty) {
+ TreasureBox();
+
+ specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing
+ .dir = .dir == 0 ? 2 : 6; // closed ? opening : closing
+ .busy = true; // lock until available again
+ initnpctimer;
+ } else if (!.busy) {
+ mesc l("Someone looted this treasure box already...");
+ } else {
+ end;
+ }
+ close;
+
+OnTimer160:
+ .dir = .dir == 6 ? 0 : 4; // closing ? closed : open
+ end;
+
+OnTimer500:
+ .busy = false; // unlock
+ if (.dir == 0 || .dir == 4)
+ stopnpctimer; // stop here if the chest is closed
+ end;
+
+OnInit:
+ .busy = false;
+ .distance = 2;
+ .empty = false;
+
+OnClock0156:
+OnClock0756:
+OnClock1356:
+OnClock1956:
+ // Try to warp randomly to a walkable spot, up to 20 attempts
+ // Otherwise, it'll stay where it already is (but will close and refill).
+ .@e=0; .@x=0; .@y=0;
+ while (!checkcell(.map$, .@x, .@y, cell_chkpass))
+ {
+ if (.@e == 20) {
+ .@x=.x;
+ .@y=.y;
+ break;
+ }
+ // Remember the +20 -20 margin adjustment
+ .@x = rand(20, 405);
+ .@y = rand(20, 190);
+ ++.@e;
+ }
+ .busy=false;
+ .empty=false;
+ movenpc .name$, .@x, .@y, 0;
+ end;
+}
+
+015-5,0,0,0 duplicate(#chest_01550) #chest_01551 NPC_CHEST
+