summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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