• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Guild Bank Call Function

Visa

Sexy Member
Hi again, is there a way to show guild bank through a gossip NPC?

For example;
to show a players bank: SendShowMailBox();
to show a players mailbox: SendShowBank();

Is there a way to show guild bank?? I've looked at GAMEOBJECT_TYPE_GUILD_BANK (in Guild.cpp) to maybe find a reference for how its viewed from clicking on the Guild Vault game object and thus showed to the player but I can't find anything.
 

slp13at420

Mad Scientist
Hi again, is there a way to show guild bank through a gossip NPC?

For example;
to show a players bank: SendShowMailBox();
to show a players mailbox: SendShowBank();

Is there a way to show guild bank?? I've looked at GAMEOBJECT_TYPE_GUILD_BANK (in Guild.cpp) to maybe find a reference for how its viewed from clicking on the Guild Vault game object and thus showed to the player but I can't find anything.

it can be handled via sql :
Code:
[COLOR="#808080"]
REPLACE INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `faction`, `flags`, `size`, `AIName`, `ScriptName`) VALUES 
(500006,34,7613, 'Alliance Guild Vault', '', '', '',84,0,1, '', ''),
(500007,34,7613, 'Horde Guild Vault', '', '', '',83,0,1, '', '');
[/COLOR]

above are 2 examples of custom guild vaults . 1 for Ally 1 for Horde.

as far as gossip, I have not seen any method's like :SendGuildBankWindow() for lua/c++. doesn't mean they don't exist , just that I havnt seen any yet.
 
Last edited:

Visa

Sexy Member
Yeah haha I was trying to make a ADD_GOSSIP_ITEM(blah blah, "View my Guild Bank", blah blah) so instead of adding the bulky guild vault somewhere in the mall I could just make it viewable from an NPC. Thanks for the quick reply btw
 

slp13at420

Mad Scientist
could do like summon guild bank for x seconds.
just do a temp spawn of the go that despawns after xx seconds.
 
Last edited:

Visa

Sexy Member
I might use it as an alternative, but if anyone knows a way to display guild bank through a gossip option please let me know thanks
 

slp13at420

Mad Scientist
I also found:
Code:
[COLOR="#808080"]
guild->SendBankTabData(Session session, uint8 tabID);
[/COLOR]

Code:
[COLOR="#808080"]
Guild* guild = player->GetGuild();

if (guild->GetId() > 0) { guild->SendBankTabData(player->GetSession(), 1); };
[/COLOR]

I think its gonna need to work inside a GameObject event tho.
and ofc "#include "Guild.h""
 
Last edited:
Top