summaryrefslogtreecommitdiff
path: root/npc/015-6
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-6
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-6')
-rw-r--r--npc/015-6/_import.txt7
-rw-r--r--npc/015-6/_mobs.txt72
-rw-r--r--npc/015-6/_warps.txt5
-rw-r--r--npc/015-6/boss.txt31
-rw-r--r--npc/015-6/mapflags.txt1
-rw-r--r--npc/015-6/treasure.txt64
6 files changed, 180 insertions, 0 deletions
diff --git a/npc/015-6/_import.txt b/npc/015-6/_import.txt
new file mode 100644
index 0000000..f75a7dd
--- /dev/null
+++ b/npc/015-6/_import.txt
@@ -0,0 +1,7 @@
+// Map 015-6: Terranite Cave
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/015-6/_mobs.txt",
+"npc/015-6/_warps.txt",
+"npc/015-6/boss.txt",
+"npc/015-6/mapflags.txt",
+"npc/015-6/treasure.txt",
diff --git a/npc/015-6/_mobs.txt b/npc/015-6/_mobs.txt
new file mode 100644
index 0000000..16a975d
--- /dev/null
+++ b/npc/015-6/_mobs.txt
@@ -0,0 +1,72 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 015-6: Terranite Cave mobs
+015-6,217,45,6,1 monster Moggun 1070,3,100000,30000
+015-6,223,30,6,1 monster Moggun 1070,3,100000,30000
+015-6,239,48,6,1 monster Moggun 1070,3,100000,30000
+015-6,197,39,3,4 monster Moggun 1070,3,100000,30000
+015-6,210,35,3,4 monster Angry Bat 1194,5,100000,30000
+015-6,241,38,3,4 monster Angry Bat 1194,5,100000,30000
+015-6,237,59,3,4 monster Angry Bat 1194,5,100000,30000
+015-6,226,73,3,4 monster Angry Bat 1194,5,100000,30000
+015-6,209,94,4,2 monster Angry Bat 1194,5,100000,30000
+015-6,263,29,3,4 monster Angry Bat 1194,5,100000,30000
+015-6,274,48,3,4 monster Angry Bat 1194,5,100000,30000
+015-6,267,70,3,4 monster Angry Bat 1194,5,100000,30000
+015-6,259,79,3,4 monster Angry Bat 1194,15,100000,30000
+015-6,274,79,3,4 monster Angry Bat 1194,5,100000,30000
+015-6,268,91,12,7 monster Moggun 1070,10,100000,30000
+015-6,209,146,34,27 monster Wicked Mushroom 1176,5,100000,30000
+015-6,254,163,9,23 monster Angry Yellow Slime 1198,10,100000,30000
+015-6,167,175,8,11 monster Angry Yellow Slime 1198,10,100000,30000
+015-6,148,176,8,11 monster Red Slime 1092,15,100000,30000
+015-6,131,88,8,11 monster Red Slime 1092,10,100000,30000
+015-6,140,131,8,11 monster Angry Yellow Slime 1198,10,100000,30000
+015-6,42,128,8,4 monster Angry Yellow Slime 1198,10,100000,30000
+015-6,64,62,12,15 monster Wicked Mushroom 1176,6,100000,30000
+015-6,69,89,8,10 monster Angry Yellow Slime 1198,10,100000,30000
+015-6,34,45,8,16 monster Terranite 1167,3,100000,30000
+015-6,64,36,12,8 monster Cave Maggot 1027,3,100000,30000
+015-6,100,115,12,8 monster Cave Maggot 1027,3,100000,30000
+015-6,90,137,8,11 monster Angry Yellow Slime 1198,10,100000,30000
+015-6,59,113,7,8 monster Cave Maggot 1027,28,100000,30000
+015-6,42,176,7,6 monster Terranite 1167,3,100000,30000
+015-6,120,177,12,8 monster Cave Maggot 1027,3,100000,30000
+015-6,287,180,12,8 monster Cave Maggot 1027,3,100000,30000
+015-6,340,175,12,8 monster Cave Maggot 1027,3,100000,30000
+015-6,390,156,34,27 monster Wicked Mushroom 1176,7,100000,30000
+015-6,358,37,10,11 monster Terranite 1167,3,100000,30000
+015-6,481,110,9,12 monster Terranite 1167,3,100000,30000
+015-6,435,114,12,8 monster Cave Maggot 1027,3,100000,30000
+015-6,477,82,12,8 monster Cave Maggot 1027,3,100000,30000
+015-6,354,106,9,23 monster Angry Yellow Slime 1198,15,100000,30000
+015-6,342,139,8,11 monster Red Slime 1092,10,100000,30000
+015-6,389,81,16,7 monster Red Slime 1092,16,100000,30000
+015-6,409,35,3,4 monster Angry Bat 1194,11,100000,30000
+015-6,413,73,3,4 monster Angry Bat 1194,11,100000,30000
+015-6,395,63,3,4 monster Angry Bat 1194,11,100000,30000
+015-6,314,182,3,4 monster Angry Bat 1194,5,100000,30000
+015-6,409,121,3,4 monster Angry Bat 1194,18,100000,30000
+015-6,456,99,3,4 monster Angry Bat 1194,11,100000,30000
+015-6,133,153,4,2 monster Angry Bat 1194,11,100000,30000
+015-6,153,98,4,2 monster Angry Bat 1194,5,100000,30000
+015-6,126,65,4,2 monster Angry Bat 1194,5,100000,30000
+015-6,81,180,4,2 monster Angry Bat 1194,5,100000,30000
+015-6,61,159,4,2 monster Angry Bat 1194,5,100000,30000
+015-6,271,157,3,4 monster Angry Bat 1194,5,100000,30000
+015-6,270,182,3,4 monster Angry Bat 1194,5,100000,30000
+015-6,322,141,8,11 monster Red Slime 1092,10,100000,30000
+015-6,451,111,3,4 monster Angry Bat 1194,5,100000,30000
+015-6,422,50,5,16 monster Wicked Mushroom 1176,5,100000,30000
+015-6,380,40,7,11 monster Wicked Mushroom 1176,5,100000,30000
+015-6,124,49,4,12 monster Terranite 1167,1,100000,30000
+015-6,80,110,4,2 monster Angry Bat 1194,5,100000,30000
+015-6,42,142,10,5 monster Cave Maggot 1027,3,100000,30000
+015-6,41,159,5,10 monster Wicked Mushroom 1176,4,100000,30000
+015-6,95,180,4,2 monster Angry Bat 1194,5,100000,30000
+015-6,91,180,11,5 monster Wicked Mushroom 1176,8,100000,30000
+015-6,263,167,21,22 monster Big Sapphire Bif 1115,3,150000,30000
+015-6,483,173,21,22 monster Big Sapphire Bif 1115,3,150000,30000
+015-6,233,41,49,22 monster Big Amethyst Bif 1112,3,150000,30000
+015-6,230,43,49,22 monster Amethyst Bif 1111,3,120000,30000
+015-6,201,134,22,35 monster Amethyst Bif 1111,5,135000,30000
+015-6,394,81,55,59 monster Sapphire Bif 1114,6,135000,30000
diff --git a/npc/015-6/_warps.txt b/npc/015-6/_warps.txt
new file mode 100644
index 0000000..6aba506
--- /dev/null
+++ b/npc/015-6/_warps.txt
@@ -0,0 +1,5 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 015-6: Terranite Cave warps
+015-6,193,58,0 warp #015-6_193_58 0,0,015-5,353,62
+015-6,363,26,0 warp #015-6_363_26 0,0,015-6,474,187
+015-6,474,188,0 warp #015-6_474_188 0,0,015-6,363,27
diff --git a/npc/015-6/boss.txt b/npc/015-6/boss.txt
new file mode 100644
index 0000000..d843496
--- /dev/null
+++ b/npc/015-6/boss.txt
@@ -0,0 +1,31 @@
+// TMW2 Script
+// Author:
+// Jesusalva
+// Description:
+// Terranite King Boss
+
+015-6,0,0,0 script #BossCtrl_015-6 NPC_HIDDEN,{
+ end;
+
+// Respawn every hour
+OnTimer3600000:
+ stopnpctimer;
+OnInit:
+ setarray .xp, 268, 55, 371, 482, 212;
+ setarray .yp, 90, 45, 38, 114, 148;
+ .@tg=rand(getarraysize(.xp)-1);
+ monster "015-6", .xp[.@tg], .yp[.@tg], strmobinfo(1, TerraniteKing), TerraniteKing, 1, "#BossCtrl_015-6::OnBossDeath";
+ end;
+
+OnBossDeath:
+ initnpctimer;
+ .@party=getcharid(1);
+ if (.@party > 0) {
+ mapannounce "015-6", "Boss deafeated by Party: " + getpartyname(.@party), bc_all;
+ } else {
+ mapannounce "015-6", "Boss deafeated by: " + strcharinfo(0), bc_all;
+ }
+ fix_mobkill(TerraniteKing);
+ end;
+
+}
diff --git a/npc/015-6/mapflags.txt b/npc/015-6/mapflags.txt
new file mode 100644
index 0000000..4ec943d
--- /dev/null
+++ b/npc/015-6/mapflags.txt
@@ -0,0 +1 @@
+015-6 mapflag pvp
diff --git a/npc/015-6/treasure.txt b/npc/015-6/treasure.txt
new file mode 100644
index 0000000..8b7723c
--- /dev/null
+++ b/npc/015-6/treasure.txt
@@ -0,0 +1,64 @@
+// TMW2 Script
+
+// (Random) Treasure Chest
+// Authored by Jesusalva
+// Regenerates every 6 hours
+
+015-6,0,0,0 script #chest_01560 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, 500);
+ .@y = rand(20, 190);
+ ++.@e;
+ }
+ .busy=false;
+ .empty=false;
+ movenpc .name$, .@x, .@y, 0;
+ end;
+}
+
+015-6,0,0,0 duplicate(#chest_01560) #chest_01561 NPC_CHEST
+