summaryrefslogtreecommitdiff
path: root/npc/002-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/002-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/002-5')
-rw-r--r--npc/002-5/_import.txt5
-rw-r--r--npc/002-5/_mobs.txt3
-rw-r--r--npc/002-5/main.txt68
-rw-r--r--npc/002-5/mapflags.txt1
4 files changed, 77 insertions, 0 deletions
diff --git a/npc/002-5/_import.txt b/npc/002-5/_import.txt
new file mode 100644
index 0000000..757883b
--- /dev/null
+++ b/npc/002-5/_import.txt
@@ -0,0 +1,5 @@
+// Map 002-5: Ocean
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/002-5/_mobs.txt",
+"npc/002-5/main.txt",
+"npc/002-5/mapflags.txt",
diff --git a/npc/002-5/_mobs.txt b/npc/002-5/_mobs.txt
new file mode 100644
index 0000000..cdfc371
--- /dev/null
+++ b/npc/002-5/_mobs.txt
@@ -0,0 +1,3 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 002-5: Ocean mobs
+002-5,32,26,8,2 monster Ocean Croc 1133,2,36000,30000
diff --git a/npc/002-5/main.txt b/npc/002-5/main.txt
new file mode 100644
index 0000000..6e5094f
--- /dev/null
+++ b/npc/002-5/main.txt
@@ -0,0 +1,68 @@
+// TMW2 script
+// Originals from TMW-BR
+// Imported by Jesusalva
+
+002-5,28,27,0 script #NardShip NPC_HIDDEN,117,29,{
+ //if (PC_DEST$ != "" && @timer_navio_running == 0) goto L_Timer;
+ end;
+
+OnEvent:
+ if (@timer_navio_running == 0) end;
+ if (PC_DEST$ == "Candor") goto L_Candor;
+ else if (PC_DEST$ == "Tulim") goto L_Tulim;
+ else if (PC_DEST$ == "Artis") goto L_Artis;
+ else goto L_Error;
+ end;
+
+L_Candor:
+ PC_DEST$ = "";
+ LOCATION$ = "Candor";
+ @timer_navio_running = 0;
+ warp "005-1", 49, 117;
+ message strcharinfo(0), l("%s disembarks at %s.", strcharinfo(0), l("Candor Island"));
+ end;
+
+L_Tulim:
+ PC_DEST$ = "";
+ EnterTown("Tulim");
+ @timer_navio_running = 0;
+ warp "003-1", 81, 68;
+ message strcharinfo(0), l("%s disembarks at %s.", strcharinfo(0), l("Tulimshar"));
+ end;
+
+L_Artis:
+ PC_DEST$ = "";
+ EnterTown("Artis");
+ @timer_navio_running = 0;
+ warp "029-0", 203, 85;
+ message strcharinfo(0), l("%s disembarks at %s.", strcharinfo(0), l("Artis"));
+ end;
+
+L_Error:
+ PC_DEST$ = "";
+ @timer_navio_running = 0;
+ warp "000-1", 22, 22;
+ Exception("PLAYER INVALID PC_DEST ON #NardShip: " + PC_DEST$, RB_DEFAULT | RB_ISFATAL);
+ end;
+
+OnTouch:
+ if (PC_DEST$ != "" && @timer_navio_running == 0) {
+ addtimer nard_time(PC_DEST$), "#NardShip::OnEvent";
+ @timer_navio_running = 1;
+ }
+ end;
+}
+
+// Do not add .distance here.
+002-5,40,26,0 script Elmo#002-5 NPC_ELMO,{
+ npctalk3 l("It won't be long before we reach our destination...");
+ // If player logged out during travel, this Elmo can reset player travel time.
+ if (PC_DEST$ != "" && @timer_navio_running == 0) goto L_Timer;
+ end;
+
+L_Timer:
+ addtimer nard_time(PC_DEST$), "#NardShip::OnEvent";
+ @timer_navio_running = 1;
+ end;
+
+}
diff --git a/npc/002-5/mapflags.txt b/npc/002-5/mapflags.txt
new file mode 100644
index 0000000..889a0d2
--- /dev/null
+++ b/npc/002-5/mapflags.txt
@@ -0,0 +1 @@
+002-5 mapflag zone ship