From 0854bec5c8f143ff3858ba0b2b3dd3245abe89a9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 29 May 2021 22:16:07 +0000 Subject: Add Guild Storage. --- npc/functions/banker.txt | 14 ++++++++++++-- 1 file 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; -- cgit v1.2.3-60-g2f50