From 593a20bef1c5f01093afaee9ae0fd76e70e2c579 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 20 Dec 2022 15:20:29 -0300 Subject: This either breaks stuff, or allows guild storage to be used from banks. --- npc/functions/bank.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'npc/functions') diff --git a/npc/functions/bank.txt b/npc/functions/bank.txt index 40ff31dbd..00ca148a9 100644 --- a/npc/functions/bank.txt +++ b/npc/functions/bank.txt @@ -210,6 +210,7 @@ function script Banker { l("Did I received any mail?"), rif(REBIRTH || is_sponsor(), l("I would like to use the Premium Storage.")), rif(REBIRTH, l("I would like to use the Deluxe Storage.")), + rif(getcharid(2) > 0, l("I would like to use the Guild Storage.")), l("What is this guild for?"), l("Bye."); @@ -271,15 +272,21 @@ function script Banker { } break; case 6: + // FIXME: Raises a console warning of invalid map + closeclientdialog; + doevent "Guild Storage::OnStorage"; + close; + break; + case 7: mes ""; BKInfo(); break; } - if (@menu != 7) { + if (@menu != 8) { speech S_FIRST_BLANK_LINE | S_LAST_NEXT | S_NO_NPC_NAME, l("Something else?"); } - } while (@menu != 7); + } while (@menu != 8); } closedialog; goodbye; -- cgit v1.2.3-70-g09d2