diff options
Diffstat (limited to 'npc/016-6/main.txt')
-rw-r--r-- | npc/016-6/main.txt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/npc/016-6/main.txt b/npc/016-6/main.txt index 8573283c6..83571fd8c 100644 --- a/npc/016-6/main.txt +++ b/npc/016-6/main.txt @@ -6,6 +6,19 @@ end; OnEvent: + // 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"; + } + + // Handle travel if (@timer_navio_running == 0) end; if (PC_DEST$ == "Hurns") goto L_Hurns; else if (PC_DEST$ == "Tulim") goto L_Tulim; @@ -29,7 +42,7 @@ L_Tulim: end; L_Error: - debugmes "ERROR: PLAYER INVALID PC_DEST ON #NardShip: " + PC_DEST$; + debugmes "ERROR: PLAYER INVALID PC_DEST ON #MarineShip: " + PC_DEST$; PC_DEST$ = ""; @timer_navio_running = 0; warp "000-1", 22, 22; |