From efc64bbde7c2ab53b210c1dcafaf25c1a9afe4f5 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 11 Jul 2010 23:56:05 +0200 Subject: Merged bankers There were two NPCs Achar (Tulishmar) and William (Hurnscald) that provided the storage. These NPCs are now removed. Instead the banker npc provides a menu item to open the storage. Signed-off-by: Jared Adams --- npc/001-1_Tulimshar/banker.txt | 7 ------- npc/009-2_Hurnscald/richard.txt | 7 ------- npc/functions/banker.txt | 7 +++++++ 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?\""; -- cgit v1.2.3-60-g2f50