summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/001-1_Tulimshar/banker.txt7
-rw-r--r--npc/009-2_Hurnscald/richard.txt7
-rw-r--r--npc/functions/banker.txt7
3 files changed, 7 insertions, 14 deletions
diff --git a/npc/001-1_Tulimshar/banker.txt b/npc/001-1_Tulimshar/banker.txt
index 75ea18d5..965825ea 100644
--- a/npc/001-1_Tulimshar/banker.txt
+++ b/npc/001-1_Tulimshar/banker.txt
@@ -6,10 +6,3 @@
callfunc "Banker";
close;
}
-
-001-1.gat,51,29,0 script Achar 49,{
- callfunc "ClearVariables";
- openstorage;
- mes "Come again!";
- close;
-}
diff --git a/npc/009-2_Hurnscald/richard.txt b/npc/009-2_Hurnscald/richard.txt
index 0dcd4d02..e14b823a 100644
--- a/npc/009-2_Hurnscald/richard.txt
+++ b/npc/009-2_Hurnscald/richard.txt
@@ -6,10 +6,3 @@
callfunc "Banker";
close;
}
-
-009-2.gat,19,99,0 script William 48,{
- callfunc "ClearVariables";
- openstorage;
- mes "Come again!";
- close;
-}
diff --git a/npc/functions/banker.txt b/npc/functions/banker.txt
index 025647d2..be784dba 100644
--- a/npc/functions/banker.txt
+++ b/npc/functions/banker.txt
@@ -12,8 +12,15 @@ L_Start:
"Deposit", L_Dep,
"Withdraw", L_With,
"Check my balance", L_Balance,
+ "Open my storage", L_Storage,
"Nevermind", L_Nev;
+// need to close window before opening storage.
+L_Storage:
+ close;
+ openstorage;
+ goto L_Start;
+
L_Dep:
mes "[" + @npcName$ + "]";
mes "\"How much would you like to deposit?\"";