summaryrefslogtreecommitdiff
path: root/npc/016-1
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-1
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-1')
-rw-r--r--npc/016-1/marine.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/npc/016-1/marine.txt b/npc/016-1/marine.txt
index c5cd3ef26..3aadf003b 100644
--- a/npc/016-1/marine.txt
+++ b/npc/016-1/marine.txt
@@ -57,6 +57,12 @@ L_THurns:
addtimer nard_time(PC_DEST$), "#MarineShip::OnEvent";
@timer_navio_running = 1;
warp "016-6", 40, 32;
+
+ // 10% base chance of Pirate Attack!
+ // Each level INCREASES this in 0.1%.
+ // So for a level 40 player, chances are 14%.
+ if (rand(1, 10000) < 1000+(BaseLevel*10))
+ addtimer rand(3000,6000), "#MarineShip::OnEvent";
end;
@@ -96,7 +102,6 @@ L_TTulim:
Zeny=Zeny-.@price;
PC_DEST$="Tulim";
- addtimer nard_time(PC_DEST$), "#MarineShip::OnEvent";
@timer_navio_running = 1;
mes "";
@@ -108,6 +113,12 @@ L_TTulim:
addtimer nard_time(PC_DEST$), "#MarineShip::OnEvent";
@timer_navio_running = 1;
warp "016-6", 40, 32;
+
+ // 10% base chance of Pirate Attack!
+ // Each level INCREASES this in 0.1%.
+ // So for a level 40 player, chances are 14%.
+ if (rand(1, 10000) < 1000+(BaseLevel*10))
+ addtimer rand(3000,6000), "#MarineShip::OnEvent";
end;
L_TooWeak: