From f59ea1556d4c90882ca161cd67f60cb2b82a5d63 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 10 Jun 2018 22:16:51 -0300 Subject: Rewrite how La Marine charges for travels --- npc/016-1/marine.txt | 72 +++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 57 insertions(+), 15 deletions(-) (limited to 'npc/016-1') diff --git a/npc/016-1/marine.txt b/npc/016-1/marine.txt index b1dbe24df..c5cd3ef26 100644 --- a/npc/016-1/marine.txt +++ b/npc/016-1/marine.txt @@ -5,38 +5,46 @@ // Temporary, placeholder. 016-1,19,29,0 script Captain NPC_NARD,{ - .@price=1500; - if (BaseLevel < 20) goto L_TooWeak; - if (nard_reputation() >= 11) - .@price-=1000; - else if (nard_reputation() >= 9) - .@price-=750; - else if (nard_reputation() >= 7) - .@price-=500; - else if (nard_reputation() >= 5) - .@price-=250; mesn; mesq l("Hi @@.", strcharinfo(0)); next; mesq l("You are currently at @@.", LOCATION$); mes ""; - mes l("A ship travel will cost you @@ GP.", .@price); - if (Zeny >= .@price) { menu rif(LOCATION$ != "Tulim", l("To Tulimshar.")), L_TTulim, rif(LOCATION$ != "Hurns", l("To Hurnscald.")), L_THurns, l("No, I'll save my money."), -; - } else { - mes l("You still need @@ GP to afford it.", (.@price-Zeny)); - } close; L_THurns: + .@price=2000; + .@x=marine_reputation("Hurns"); + + if (.@x >= 3) + .@price-=1500; + else if (.@x >= 2) + .@price-=1000; + else if (.@x >= 1) + .@price-=500; + + mes ""; + mesn; + mesq l("It'll cost you @@ GP.", .@price); + mes ""; + + if (Zeny < .@price) { + mes l("You still need @@ GP to afford it.", (.@price-Zeny)); + close; + } + + if (askyesno() != ASK_YES) + close; + Zeny=Zeny-.@price; PC_DEST$="Hurns"; @@ -51,7 +59,41 @@ L_THurns: warp "016-6", 40, 32; end; + + + + + + + L_TTulim: + .@price=2000; + .@x=marine_reputation("Tulim"); + + if (.@x >= 10) + .@price-=1500; + else if (.@x >= 8) + .@price-=1000; + else if (.@x >= 6) + .@price-=750; + else if (.@x >= 4) + .@price-=500; + else if (.@x >= 2) + .@price-=250; + + mes ""; + mesn; + mesq l("It'll cost you @@ GP.", .@price); + mes ""; + + if (Zeny < .@price) { + mes l("You still need @@ GP to afford it.", (.@price-Zeny)); + close; + } + + if (askyesno() != ASK_YES) + close; + Zeny=Zeny-.@price; PC_DEST$="Tulim"; addtimer nard_time(PC_DEST$), "#MarineShip::OnEvent"; -- cgit v1.2.3-70-g09d2