From a29dcaf5e42333c0162bc20e37e8d21fa8ca987c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 11 Jun 2018 21:37:20 -0300 Subject: BRACE YOURSELVES! PIRATE ATTACK!! --- npc/016-1/marine.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'npc/016-1/marine.txt') 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: -- cgit v1.2.3-70-g09d2