summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-30 22:12:23 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-30 22:12:23 -0300
commit9e699ad9b7c0a233d8aaff1edbd0ce675dc7da89 (patch)
treef6473332ec3a0c61967cf514705b6bdf76672043 /npc/functions
parent4daef039d705f7e7a9a58561e429ef9f255ea90a (diff)
downloadserverdata-9e699ad9b7c0a233d8aaff1edbd0ce675dc7da89.tar.gz
serverdata-9e699ad9b7c0a233d8aaff1edbd0ce675dc7da89.tar.bz2
serverdata-9e699ad9b7c0a233d8aaff1edbd0ce675dc7da89.tar.xz
serverdata-9e699ad9b7c0a233d8aaff1edbd0ce675dc7da89.zip
Lower bank prices, fix bugs, yadda yadda
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/bank.txt32
1 files changed, 16 insertions, 16 deletions
diff --git a/npc/functions/bank.txt b/npc/functions/bank.txt
index c56048d2b..68f6f1b85 100644
--- a/npc/functions/bank.txt
+++ b/npc/functions/bank.txt
@@ -125,9 +125,22 @@ function script Banking {
} while (true);
}
+function script BKInfo {
+ speech S_LAST_NEXT,
+ l("We organize some auction and we help local merchants to launch their businesses."),
+ l("We also feature some services like a storage and a bank for members."),
+ l("Registration is open to everybody, but newcomers need to pay a fee for all of the paperwork.");
+
+ narrator S_FIRST_BLANK_LINE,
+ l("The bank and item storage is shared between all characters within a same account."),
+ l("With it, you can safely move items and funds between your characters."),
+ l("To move between characters that are on different accounts, you have to use the Trade function.");
+ return;
+}
+
+// name, city, price
function script BKReg {
- .@price = getarg(2, 10000);
- .@price=min(2000, .@price-#BankP);
+ .@price=max(2000, getarg(2)-#BankP);
@menu=3;
do
{
@@ -152,19 +165,6 @@ function script BKReg {
return;
}
-function script BKInfo {
- speech S_LAST_NEXT,
- l("We organize some auction and we help local merchants to launch their businesses."),
- l("We also feature some services like a storage and a bank for members."),
- l("Registration is open to everybody, but newcomers need to pay a fee for all of the paperwork.");
-
- narrator S_FIRST_BLANK_LINE,
- l("The bank and item storage is shared between all characters within a same account."),
- l("With it, you can safely move items and funds between your characters."),
- l("To move between characters that are on different accounts, you have to use the Trade function.");
- return;
-}
-
// name, city, price (defaults to 10k)
function script Banker {
mesn getarg(0);
@@ -172,7 +172,7 @@ function script Banker {
next;
if (getq(General_Banker) == 0) {
- BKReg();
+ BKReg(getarg(0), getarg(1), getarg(2,10000));
} else {
do
{