From 1910a899cb2a6906a06fe534ab34cfe811895a53 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 9 Jun 2018 16:12:39 -0300 Subject: Fix a typo. Add several scripts to aid with La Marine. Pirate attack still isn't being taken in account, I am waiting @Saulc to finish it %%G --- npc/016-6/_import.txt | 1 + npc/016-6/main.txt | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 npc/016-6/main.txt (limited to 'npc/016-6') diff --git a/npc/016-6/_import.txt b/npc/016-6/_import.txt index 8161f0b9a..62a745b54 100644 --- a/npc/016-6/_import.txt +++ b/npc/016-6/_import.txt @@ -1,4 +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/main.txt b/npc/016-6/main.txt new file mode 100644 index 000000000..8c67a59a5 --- /dev/null +++ b/npc/016-6/main.txt @@ -0,0 +1,39 @@ +// TMW2 script +// Originals from TMW-BR +// Imported by Jesusalva + +016-6,0,0,0 script #MarineShip NPC_HIDDEN,117,29,{ + end; + +OnEvent: + if (@timer_navio_running == 0) end; + if (PC_DEST$ == "Hurns") goto L_Hurns; + else if (PC_DEST$ == "Tulim") goto L_Tulim; + else goto L_Error; + end; + +L_Hurns: + PC_DEST$ = ""; + LOCATION$ = "Hurns"; + @timer_navio_running = 0; + warp "014-1", 141, 65; + message strcharinfo(0), l("@@ disembarks at Hurnscald.", strcharinfo(0)); + end; + +L_Tulim: + PC_DEST$ = ""; + LOCATION$ = "Tulim"; + @timer_navio_running = 0; + warp "003-1", 81, 68; + message strcharinfo(0), l("@@ disembarks at Tulimshar.", strcharinfo(0)); + end; + +L_Error: + debugmes "ERROR: PLAYER INVALID PC_DEST ON #NardShip: " + PC_DEST$; + PC_DEST$ = ""; + @timer_navio_running = 0; + warp "000-1", 22, 22; + dispbottom l("An error on your travel happened. Please report."); + end; +} + -- cgit v1.2.3-60-g2f50