diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-11 21:37:20 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-11 21:37:20 -0300 |
commit | a29dcaf5e42333c0162bc20e37e8d21fa8ca987c (patch) | |
tree | 1abc80d0b91888c9b9377ef830477b8283b72017 /npc/016-6 | |
parent | 2a481fa9faeb1b52318c79a17d1f3441bc28c4f7 (diff) | |
download | serverdata-a29dcaf5e42333c0162bc20e37e8d21fa8ca987c.tar.gz serverdata-a29dcaf5e42333c0162bc20e37e8d21fa8ca987c.tar.bz2 serverdata-a29dcaf5e42333c0162bc20e37e8d21fa8ca987c.tar.xz serverdata-a29dcaf5e42333c0162bc20e37e8d21fa8ca987c.zip |
BRACE YOURSELVES! PIRATE ATTACK!!
Diffstat (limited to 'npc/016-6')
-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; |