Thread Tools Display Modes
02/22/15, 06:40 AM   #1
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
notification from Guild Bank, possible?

like chat notification or floating message center of the screen if some1 deposit smthing to the guildbank

with setting
like show only rare items. etc

to track this things =)

PLS, can some1 looks at it? mby its not hard to made?


Last edited by QuadroTony : 02/22/15 at 07:03 AM.
  Reply With Quote
02/23/15, 03:47 AM   #2
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
any1 will show me the way pls?
  Reply With Quote
02/23/15, 05:15 AM   #3
JordyMoos
AddOn Author - Click to view addons
Join Date: Jan 2015
Posts: 12
I gues that you can just listen to this event: EVENT_GUILD_BANK_ITEM_ADDED
  Reply With Quote
02/23/15, 06:02 AM   #4
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
no, for EVENT_GUILD_BANK_ITEM_ADDED you need to interact with the banker.

For your ask, it's possible, just use GetNumGuildEvents() and GetGuildEventInfo() but wth all the guilds-related addons they're alreay exists, there are no addons already doing this ?

We can doing something, almost easily.. output to chat or a notification somewhere in the screen. with options show new members/leave, show deposit / withdraw, for withdraw, maybe more options. but take care, guild bank restack will interfere and it couldn't be in realtime. maybe a 30s / 1minute delay.

but this kind of addon will get a lot of exceptions because, what is most important : a nirm stone or a rekuta? are 100 hight end pots are more important than a single green recipe ?

(ps: i don't have time for this, sorry).

Last edited by Ayantir : 02/23/15 at 06:04 AM.
  Reply With Quote
02/23/15, 07:04 AM   #5
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by JordyMoos View Post
I gues that you can just listen to this event: EVENT_GUILD_BANK_ITEM_ADDED
I think that you should look into guild history events.

Lua Code:
  1. local history = {}
  2. local function HandleResponse(eventCode, guildId, category)
  3.     if (category == GUILD_HISTORY_BANK and DoesPlayerHaveGuildPermission(guildId, GUILD_PERMISSION_BANK_WITHDRAW)) then
  4.         local guildName = GetGuildName(guildId)
  5.         --d("Response received for guild: " .. guildName)
  6.         for i = 1, GetNumGuildEvents(guildId, GUILD_HISTORY_BANK) do
  7.             local eventType, secsSinceEvent, displayName, count, itemLink = GetGuildEventInfo(guildId, GUILD_HISTORY_BANK, i)
  8.             local eventTime = zo_abs(zo_round(GetFrameTimeSeconds() - secsSinceEvent))
  9.             local historyKey = zo_strjoin("_", eventTime, displayName, count, GetItemLinkName(itemLink))
  10.             if (ComputeGuildHistoryEventSubcategory(eventType, GUILD_HISTORY_BANK) == GUILD_HISTORY_BANK_DEPOSITS and not history[historyKey]) then
  11.                 d(zo_strformat("<<1>>: <<2>> deposited <<3>> x <<t:4>>", guildName, displayName, count, itemLink))
  12.                 history[historyKey] = true
  13.             end
  14.         end
  15.     end
  16. end
  17. EVENT_MANAGER:RegisterForEvent("GuildBankDeposits", EVENT_GUILD_HISTORY_RESPONSE_RECEIVED, HandleResponse)
  18.  
  19. local function UpdateHistory()
  20.     for guildIndex = 1, GetNumGuilds() do
  21.         local guildId = GetGuildId(guildIndex)
  22.         if (DoesPlayerHaveGuildPermission(guildId, GUILD_PERMISSION_BANK_WITHDRAW)) then
  23.             RequestGuildHistoryCategoryNewest(guildId, GUILD_HISTORY_BANK)
  24.         end
  25.     end
  26. end
  27. EVENT_MANAGER:RegisterForUpdate("GuildBankDeposits", 60000, UpdateHistory) --1 minute interval
  Reply With Quote
02/23/15, 07:29 AM   #6
DRThree
Join Date: Mar 2014
Posts: 4
Guild Bank logs

Seems the Guild Bank deposit and withdrawal history logs are very small.
So they are constantly being over written.
Is there a way to export the deposit and withdrawal history so that they could be kept a little longer?

Or is there an addon that already does this?
I have looked and have not found one yet.
  Reply With Quote
02/23/15, 07:44 AM   #7
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by DRThree View Post
Seems the Guild Bank deposit and withdrawal history logs are very small.
So they are constantly being over written.
Is there a way to export the deposit and withdrawal history so that they could be kept a little longer?

Or is there an addon that already does this?
I have looked and have not found one yet.
You can always request for older data from history - just open Guild -> History -> Bank -> All -> Press E to get more.


Last edited by Garkin : 02/23/15 at 07:47 AM.
  Reply With Quote
02/23/15, 12:04 PM   #8
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
Originally Posted by Ayantir View Post

but this kind of addon will get a lot of exceptions because, what is most important : a nirm stone or a rekuta? are 100 hight end pots are more important than a single green recipe ?
for start - just show notifications for all deposited items
  Reply With Quote
02/23/15, 12:26 PM   #9
DRThree
Join Date: Mar 2014
Posts: 4
Thanks

Garkin thanks for the advice, will give that a try.
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » notification about Guild Bank, is it possible?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off