summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-29 22:16:07 +0000
committerJesusaves <cpntb1@ymail.com>2021-05-29 22:16:07 +0000
commit0854bec5c8f143ff3858ba0b2b3dd3245abe89a9 (patch)
tree212e0004da97e1758159cb9d9373693b4b1b9613
parent7e858dffeb5287e46aeb8806f57f12a98032e298 (diff)
downloadserverdata-0854bec5c8f143ff3858ba0b2b3dd3245abe89a9.tar.gz
serverdata-0854bec5c8f143ff3858ba0b2b3dd3245abe89a9.tar.bz2
serverdata-0854bec5c8f143ff3858ba0b2b3dd3245abe89a9.tar.xz
serverdata-0854bec5c8f143ff3858ba0b2b3dd3245abe89a9.zip
Add Guild Storage.
-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;