summaryrefslogtreecommitdiff
path: root/npc/functions/bank.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-02 11:41:58 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-02 11:41:58 -0300
commit015413a0a4f9138f89f7cb498fd5aad0befcad11 (patch)
tree75f09bd71573e7ea1f2551c90f8e7862e2021ddc /npc/functions/bank.txt
parent9b9deaa4d3f3926405e9c478e3db1acd644ba3d4 (diff)
downloadserverdata-015413a0a4f9138f89f7cb498fd5aad0befcad11.tar.gz
serverdata-015413a0a4f9138f89f7cb498fd5aad0befcad11.tar.bz2
serverdata-015413a0a4f9138f89f7cb498fd5aad0befcad11.tar.xz
serverdata-015413a0a4f9138f89f7cb498fd5aad0befcad11.zip
Polish bank
Diffstat (limited to 'npc/functions/bank.txt')
-rw-r--r--npc/functions/bank.txt34
1 files changed, 12 insertions, 22 deletions
diff --git a/npc/functions/bank.txt b/npc/functions/bank.txt
index 86db74b6d..dcf5002d0 100644
--- a/npc/functions/bank.txt
+++ b/npc/functions/bank.txt
@@ -8,15 +8,12 @@
function script Banking {
do
{
- if (BankVault > 0)
- {
+ if (BankVault > 0) {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
- l("You currently have @@ Gold Pieces on your bank account.",
+ l("You currently have @@ GP on your bank account.",
format_number(BankVault)),
l("What do you want to do with your money?");
- }
- else
- {
+ } else {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("What do you want to do with your money?");
}
@@ -24,7 +21,7 @@ function script Banking {
select
rif(Zeny > 0, l("Deposit.")),
rif(BankVault > 0, l("Withdraw.")),
- l("I'm donGP.");
+ l("I'm done.");
switch (@menu)
{
@@ -45,8 +42,7 @@ function script Banking {
l("All of my money."), -2,
l("I changed my mind."), -3;
- switch (@menuret)
- {
+ switch (@menuret) {
case -1:
input @menuret;
break;
@@ -54,12 +50,10 @@ function script Banking {
@menuret = Zeny;
}
- if (@menuret > 0)
- {
- if (@menuret > Zeny)
- {
+ if (@menuret > 0) {
+ if (@menuret > Zeny) {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
- l("You do not have enough Gold Pieces on yourself.");
+ l("You do not have enough Gold on yourself.");
break;
}
@@ -68,8 +62,7 @@ function script Banking {
.@max = MAX_BANK_ZENY - BankVault; // maximum possible deposit
.@deposit = min(.@max, @menuret); // actual deposit
- if (.@deposit > 0)
- {
+ if (.@deposit > 0) {
BankVault += .@deposit; // add to bank
Zeny -= .@deposit; // remove from inventory
@@ -105,10 +98,8 @@ function script Banking {
@menuret = BankVault;
}
- if (@menuret > 0)
- {
- if (@menuret > BankVault)
- {
+ if (@menuret > 0) {
+ if (@menuret > BankVault) {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("You do not have enough Gold Pieces on your bank account.");
break;
@@ -119,8 +110,7 @@ function script Banking {
.@max = MAX_ZENY - Zeny; // maximum possible withdrawal
.@withdrawal = min(.@max, @menuret); // actual withdrawal
- if (.@withdrawal > 0)
- {
+ if (.@withdrawal > 0) {
Zeny += .@withdrawal; // add to inventory
BankVault -= .@withdrawal; // remove from bank