From 027ee71cb7cdfeb2834cb8c66b66bd4869b0a556 Mon Sep 17 00:00:00 2001 From: toni Date: Sun, 3 Apr 2011 14:51:56 -0300 Subject: Fixing strange bug when using "npcName" as a name for a temporary variable --- npc/functions/banker.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'npc/functions/banker.txt') 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; -- cgit v1.2.3-70-g09d2