summaryrefslogtreecommitdiff
path: root/npc/016-6/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-11 21:37:20 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-11 21:37:20 -0300
commita29dcaf5e42333c0162bc20e37e8d21fa8ca987c (patch)
tree1abc80d0b91888c9b9377ef830477b8283b72017 /npc/016-6/main.txt
parent2a481fa9faeb1b52318c79a17d1f3441bc28c4f7 (diff)
downloadserverdata-a29dcaf5e42333c0162bc20e37e8d21fa8ca987c.tar.gz
serverdata-a29dcaf5e42333c0162bc20e37e8d21fa8ca987c.tar.bz2
serverdata-a29dcaf5e42333c0162bc20e37e8d21fa8ca987c.tar.xz
serverdata-a29dcaf5e42333c0162bc20e37e8d21fa8ca987c.zip
BRACE YOURSELVES! PIRATE ATTACK!!
Diffstat (limited to 'npc/016-6/main.txt')
-rw-r--r--npc/016-6/main.txt15
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;