summaryrefslogtreecommitdiff
path: root/npc/marine-2
diff options
context:
space:
mode:
Diffstat (limited to 'npc/marine-2')
-rw-r--r--npc/marine-2/_import.txt4
-rw-r--r--npc/marine-2/_mobs.txt4
-rw-r--r--npc/marine-2/main.txt60
3 files changed, 68 insertions, 0 deletions
diff --git a/npc/marine-2/_import.txt b/npc/marine-2/_import.txt
new file mode 100644
index 00000000..006ce407
--- /dev/null
+++ b/npc/marine-2/_import.txt
@@ -0,0 +1,4 @@
+// Map marine-2: Ocean
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/marine-2/_mobs.txt",
+"npc/marine-2/main.txt",
diff --git a/npc/marine-2/_mobs.txt b/npc/marine-2/_mobs.txt
new file mode 100644
index 00000000..a41d1a2c
--- /dev/null
+++ b/npc/marine-2/_mobs.txt
@@ -0,0 +1,4 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map marine-2: Ocean mobs
+marine-2,32,32,9,3 monster Croc 1006,2,13000,12000
+marine-2,31,33,9,3 monster Tipiou 1016,1,14000,14000
diff --git a/npc/marine-2/main.txt b/npc/marine-2/main.txt
new file mode 100644
index 00000000..9ab0dfc0
--- /dev/null
+++ b/npc/marine-2/main.txt
@@ -0,0 +1,60 @@
+// Moubootaur Legends script
+// Originals from TMW-BR
+// Imported by Jesusalva
+
+marine-2,0,0,0 script #MarineShip NPC_HIDDEN,{
+ 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$ == "Candor") goto L_Candor;
+ else if (PC_DEST$ == "Artis") goto L_Artis;
+ else if (PC_DEST$ == "Argaes") goto L_Argaes;
+ else goto L_Error;
+ end;
+
+L_Tulim:
+ EnterTown("Tulim", true);
+ dispbottom l("%s disembarks at Tulimshar.", strcharinfo(0));
+ end;
+
+L_Hurns:
+ EnterTown("Hurns", true);
+ dispbottom l("%s disembarks at Hurnscald.", strcharinfo(0));
+ end;
+
+L_Candor:
+ EnterTown("Candor", true);
+ dispbottom l("%s disembarks at Candor.", strcharinfo(0));
+ end;
+
+L_Artis:
+ EnterTown("Artis", true);
+ dispbottom l("%s disembarks at Artis.", strcharinfo(0));
+ end;
+
+L_Argaes:
+ if (getq(General_Narrator) == 1) {
+ warp "000-0-1", 26, 28;
+ } else {
+ EnterTown("Argaes", true);
+ dispbottom l("%s disembarks at Argaes.", strcharinfo(0));
+ }
+ end;
+
+L_Error:
+ consolemes(CONSOLEMES_ERROR, "PLAYER INVALID PC_DEST ON #MarineShip: " + PC_DEST$);
+ ReturnLastTown();
+ dispbottom l("An error on your travel happened. Please report.");
+ end;
+}
+
+function script TravelFix {
+ if (getmap() == "marine-2")
+ ReturnLastTown();
+ return;
+}
+