diff options
author | Fedja Beader <fedja@protonmail.ch> | 2023-07-01 19:53:22 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2023-07-01 19:53:22 +0000 |
commit | afee57fdfc8a50571756fd339dece1e7b384ad08 (patch) | |
tree | be7df2d1da9ce967ff3b9796e33e878978aea786 | |
parent | fef1065106944e3af81e6929cd52be6a138bb95c (diff) | |
parent | 0d34c70ea3e792d922369e7f69dbca7ae9ac81e3 (diff) | |
download | serverdata-afee57fdfc8a50571756fd339dece1e7b384ad08.tar.gz serverdata-afee57fdfc8a50571756fd339dece1e7b384ad08.tar.bz2 serverdata-afee57fdfc8a50571756fd339dece1e7b384ad08.tar.xz serverdata-afee57fdfc8a50571756fd339dece1e7b384ad08.zip |
Merge branch 'QoL_1_year_mount_rent' into 'master'
Allow renting riding mouboo/tortuga for a full year (QoL)
See merge request ml/serverdata!112
-rw-r--r-- | npc/functions/mounts.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/npc/functions/mounts.txt b/npc/functions/mounts.txt index af797cbf2..c5ff0f108 100644 --- a/npc/functions/mounts.txt +++ b/npc/functions/mounts.txt @@ -19,6 +19,7 @@ function script MoubooRent { next; mesn .@n$; mesq l("Do you want to rent a Mouboo? It allows quick traveling!"); + mesc l("WARNING: you can only rent one mount per character. Either tortuga or a mouboo."), 1; next; menuint rif(Zeny > 100, l("Rent 1 day for 100 GP")), 100, @@ -26,6 +27,7 @@ function script MoubooRent { rif(Zeny > 600, l("Rent 7 days for 600 GP")), 600, rif(Zeny > 1200, l("Rent 15 days for 1200 GP")), 1200, rif(Zeny > 2000, l("Rent 30 days for 2000 GP")), 2000, + rif(Zeny > 20000, l("Rent 365 days for 20000 GP")), 20000, l("Don't rent a mouboo."), 0; mes ""; switch (@menuret) { @@ -41,6 +43,8 @@ function script MoubooRent { .@time=1296000; break; case 2000: .@time=2592000; break; + case 20000: + .@time=365*24*60*60; break; default: Exception("Invalid price: "+@menuret, RB_DEFAULT|RB_SPEECH|RB_ISFATAL); break; @@ -67,6 +71,7 @@ function script TortugaRent { next; mesn .@n$; mesq l("Do you want to rent a Tortuga? It allows quick traveling!"); + mesc l("WARNING: you can only rent one mount per character. Either tortuga or a mouboo."), 1; next; menuint rif(Zeny > 50, l("Rent 1 day for 50 GP")), 50, @@ -74,6 +79,7 @@ function script TortugaRent { rif(Zeny > 300, l("Rent 7 days for 300 GP")), 300, rif(Zeny > 600, l("Rent 15 days for 600 GP")), 600, rif(Zeny > 1000, l("Rent 30 days for 1000 GP")), 1000, + rif(Zeny > 10000, l("Rent 365 days for 10000 GP")), 10000, l("Don't rent a tortuga."), 0; mes ""; switch (@menuret) { @@ -89,6 +95,8 @@ function script TortugaRent { .@time=1296000; break; case 1000: .@time=2592000; break; + case 10000: + .@time=365*24*60*60; break; default: Exception("Invalid price: "+@menuret, RB_DEFAULT|RB_SPEECH|RB_ISFATAL); break; |