summaryrefslogtreecommitdiff
path: root/npc/016-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/016-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/016-6')
-rw-r--r--npc/016-6/_import.txt5
-rw-r--r--npc/016-6/_mobs.txt3
-rw-r--r--npc/016-6/main.txt63
-rw-r--r--npc/016-6/mapflags.txt1
4 files changed, 72 insertions, 0 deletions
diff --git a/npc/016-6/_import.txt b/npc/016-6/_import.txt
new file mode 100644
index 0000000..62a745b
--- /dev/null
+++ b/npc/016-6/_import.txt
@@ -0,0 +1,5 @@
+// Map 016-6: Ocean
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/016-6/_mobs.txt",
+"npc/016-6/main.txt",
+"npc/016-6/mapflags.txt",
diff --git a/npc/016-6/_mobs.txt b/npc/016-6/_mobs.txt
new file mode 100644
index 0000000..06d4415
--- /dev/null
+++ b/npc/016-6/_mobs.txt
@@ -0,0 +1,3 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 016-6: Ocean mobs
+016-6,33,32,9,2 monster Ocean Croc 1133,4,16000,10000
diff --git a/npc/016-6/main.txt b/npc/016-6/main.txt
new file mode 100644
index 0000000..6f62007
--- /dev/null
+++ b/npc/016-6/main.txt
@@ -0,0 +1,63 @@
+// TMW2 script
+// Originals from TMW-BR
+// Imported by Jesusalva
+
+016-6,0,0,0 script #MarineShip NPC_HIDDEN,117,29,{
+ end;
+
+OnEvent:
+ // Handle travel
+ if (@timer_navio_running == 0) end;
+ if (PC_DEST$ == "Tulim") goto L_Tulim;
+ else if (PC_DEST$ == "Hurns") goto L_Hurns;
+ else if (PC_DEST$ == "Nival") goto L_Nival;
+ else goto L_Error;
+ end;
+
+L_Tulim:
+ PC_DEST$ = "";
+ EnterTown("Tulim");
+ @timer_navio_running = 0;
+ warp "003-1", 119, 25;
+ message strcharinfo(0), l("@@ disembarks at Tulimshar.", strcharinfo(0));
+ goto L_CleanUp;
+
+L_Hurns:
+ PC_DEST$ = "";
+ EnterTown("Hurns");
+ @timer_navio_running = 0;
+ warp "012-1", 156, 65;
+ message strcharinfo(0), l("@@ disembarks at Hurnscald.", strcharinfo(0));
+ goto L_CleanUp;
+
+L_Nival:
+ PC_DEST$ = "";
+ EnterTown("Nival");
+ @timer_navio_running = 0;
+ warp "019-2", 119, 113;
+ message strcharinfo(0), l("@@ disembarks at Nivalis.", strcharinfo(0));
+ goto L_CleanUp;
+
+L_Error:
+ consolebug "ERROR: PLAYER INVALID PC_DEST ON #MarineShip: " + PC_DEST$;
+ PC_DEST$ = "";
+ @timer_navio_running = 0;
+ warp "000-1", 22, 22;
+ dispbottom l("An error on your travel happened. Please report.");
+ goto L_CleanUp;
+
+L_CleanUp:
+ // Clean up pirate ship, if needed.
+ if (mobcount("016-7", "#MarineShipAttack::OnPirateDie") && !getmapusers("016-7")) {
+ killmonster("016-7", "all");
+ }
+ if (mobcount("016-7", "#MarineShipAttack::OnVictory") && !getmapusers("016-7")) {
+ killmonster("016-7", "all");
+ }
+ if (mobcount("016-7", "#MarineShipAttack::OnVictory") > 1) {
+ killmonster("016-7", "#MarineShipAttack::OnVictory");
+ monster "016-7", 38, 27, "Pirate Captain", OceanPirate, "#MarineShipAttack::OnVictory";
+ }
+ end;
+}
+
diff --git a/npc/016-6/mapflags.txt b/npc/016-6/mapflags.txt
new file mode 100644
index 0000000..27a1ef2
--- /dev/null
+++ b/npc/016-6/mapflags.txt
@@ -0,0 +1 @@
+016-6 mapflag zone ship