diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-10 22:16:51 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-10 22:16:51 -0300 |
commit | f59ea1556d4c90882ca161cd67f60cb2b82a5d63 (patch) | |
tree | 97b05106ee8cf382ed3444d23cae9a115ad222db /npc/016-1 | |
parent | 24830b94e4b91d9d357b43f463cdd1d53842964e (diff) | |
download | serverdata-f59ea1556d4c90882ca161cd67f60cb2b82a5d63.tar.gz serverdata-f59ea1556d4c90882ca161cd67f60cb2b82a5d63.tar.bz2 serverdata-f59ea1556d4c90882ca161cd67f60cb2b82a5d63.tar.xz serverdata-f59ea1556d4c90882ca161cd67f60cb2b82a5d63.zip |
Rewrite how La Marine charges for travels
Diffstat (limited to 'npc/016-1')
-rw-r--r-- | npc/016-1/marine.txt | 72 |
1 files changed, 57 insertions, 15 deletions
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"; |