summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authortoni <toni@toni-EP45-UD3L.(none)>2011-04-03 14:51:56 -0300
committerJessica Tölke <jtoelke@mail.upb.de>2011-04-04 19:26:42 +0200
commit027ee71cb7cdfeb2834cb8c66b66bd4869b0a556 (patch)
tree44a8953463281350632d5f12366ee5b18950ad50 /npc/functions
parent3caccb6733bc522932c8abdd5eb8324827035b7d (diff)
downloadserverdata-027ee71cb7cdfeb2834cb8c66b66bd4869b0a556.tar.gz
serverdata-027ee71cb7cdfeb2834cb8c66b66bd4869b0a556.tar.bz2
serverdata-027ee71cb7cdfeb2834cb8c66b66bd4869b0a556.tar.xz
serverdata-027ee71cb7cdfeb2834cb8c66b66bd4869b0a556.zip
Fixing strange bug when using "npcName" as a name for a temporary variable
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/banker.txt16
-rw-r--r--npc/functions/inn.txt8
2 files changed, 12 insertions, 12 deletions
diff --git a/npc/functions/banker.txt b/npc/functions/banker.txt
index 2f738478..00f033c9 100644
--- a/npc/functions/banker.txt
+++ b/npc/functions/banker.txt
@@ -4,7 +4,7 @@ function script Banker {
if (BankAccount > 0) callsub S_MoveAccount;
L_Start:
- mes "[" + @npcName$ + "]";
+ mes "[" + @npcname$ + "]";
mes "\"Welcome to the bank!";
mes "How can I help you?\"";
next;
@@ -23,7 +23,7 @@ L_Storage:
goto L_Start;
L_Dep:
- mes "[" + @npcName$ + "]";
+ mes "[" + @npcname$ + "]";
mes "\"How much would you like to deposit?\"";
next;
menu
@@ -44,7 +44,7 @@ L_Dep:
L_Dep_Input:
input @Amount;
if (@Amount >= 0) goto L_Dep_Continue;
- mes "[" + @npcName$ + "]";
+ mes "[" + @npcname$ + "]";
mes "\"I need a positive amount. What would you like to do?\"";
menu
"Go back", L_Start,
@@ -104,7 +104,7 @@ L_Dep_Continue:
goto L_Balance;
L_With:
- mes "[" + @npcName$ + "]";
+ mes "[" + @npcname$ + "]";
mes "\"How much would you like to withdraw?\"";
menu
"Other", L_With_Input,
@@ -124,7 +124,7 @@ L_With:
L_With_Input:
input @Amount;
if (@Amount >= 0) goto L_With_Continue;
- mes "[" + @npcName$ + "]";
+ mes "[" + @npcname$ + "]";
mes "\"I need a positive amount. What would you like to do?\"";
menu
"Go back", L_Start,
@@ -184,18 +184,18 @@ L_With_Continue:
goto L_Balance;
L_Balance:
- mes "[" + @npcName$ + "]";
+ mes "[" + @npcname$ + "]";
mes "\"Your current bank balance is:";
mes #BankAccount + " GP\"";
goto L_Start;
L_Nev:
- mes "[" + @npcName$ + "]";
+ mes "[" + @npcname$ + "]";
mes "\"Goodbye then.\"";
return;
L_NoMoney:
- mes "[" + @npcName$ + "]";
+ mes "[" + @npcname$ + "]";
mes "\"Oh dear, it seems that you don't have enough money.\"";
goto L_Start;
diff --git a/npc/functions/inn.txt b/npc/functions/inn.txt
index 00366cb2..810dbd1d 100644
--- a/npc/functions/inn.txt
+++ b/npc/functions/inn.txt
@@ -1,7 +1,7 @@
// INN
function script Inn {
- mes "[" + @npcName$ + "]";
+ mes "[" + @npcname$ + "]";
mes "\"Would you like to rest? It's only " + @cost + " gp.\"";
next;
@@ -13,17 +13,17 @@ function script Inn {
set zeny, zeny - @cost;
heal 10000, 10000;
- mes "[" + @npcName$ + "]";
+ mes "[" + @npcname$ + "]";
mes "\"Sleep well!\"";
close;
L_No:
- mes "[" + @npcName$ + "]";
+ mes "[" + @npcname$ + "]";
mes "\"See you.\"";
close;
L_NoMoney:
- mes "[" + @npcName$ + "]";
+ mes "[" + @npcname$ + "]";
mes "\"You don't have enough money to stay here.\"";
close;
}