summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/banker.txt14
1 files changed, 12 insertions, 2 deletions
diff --git a/npc/functions/banker.txt b/npc/functions/banker.txt
index 4222619e..a0081278 100644
--- a/npc/functions/banker.txt
+++ b/npc/functions/banker.txt
@@ -127,6 +127,7 @@ function script Banker {
l("I would like to store some items."),
l("I would like to perform money transactions."),
l("Did I received any mail?"),
+ rif(getcharid(2), l("I would like to open Guild Storage.")),
l("Bye.");
switch (@menu) {
@@ -160,12 +161,21 @@ function script Banker {
openmail();
close;
break;
+ case 4:
+ if (getcharid(3) != getguildinfo(GUILDINFO_MASTER_CID, getcharid(2))) {
+ mesn;
+ mesq l("Only %s is authorized to use the Guild Storage.", getguildinfo(GUILDINFO_MASTER_NAME, getcharid(2)));
+ break;
+ } else {
+ if (guildopenstorage())
+ mesc l("Storage temporarily unavailable, someone else might be using it.");
+ }
}
- if (@menu != 4) {
+ if (@menu != 5) {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT | S_NO_NPC_NAME,
l("Something else?");
}
- } while (@menu != 4);
+ } while (@menu != 5);
closeclientdialog;
goodbye;
close;