Originally Posted by jace888
Yes, yes...that is what I'm looking for! I figured everyone would have to have the add on.
|
That is a lot more possible.
It should be doable by just hooking into the two functions:
TransferToGuildBank(integer sourceBag, integer sourceSlot)
TransferFromGuildBank(integer slotId)
I am just not sure how to figure out if the transfer was succesfull or not. Maybe catching and releasing the exception?
Also there are these events, but I have no idea if they are fired for every change or only the ones you yourself made:
EVENT_GUILD_BANK_ITEM_ADDED (integer eventCode, integer slotId)
EVENT_GUILD_BANK_ITEM_REMOVED (integer eventCode, integer slotId)
EVENT_GUILD_BANK_TRANSFER_ERROR (integer eventCode, integer reason)
EVENT_GUILD_BANK_UPDATED_QUANTITY (integer eventCode, integer slotId)
EVENT_GUILD_BANKED_MONEY_UPDATE (integer eventCode, integer newBankedMoney, integer oldBankedMoney)
I would have to do some test before I know more.