Thread Tools Display Modes
10/28/22, 04:52 PM   #1
Uoid
Join Date: Aug 2022
Posts: 3
Random lottery picker for within guild, picking from members online in last week

Id really like an addon that lets me draw random members from the guild list to win prizes, but with the ability to set it for a time frame, say, only pick from people online within the last 10 days etc. Does anyone know if this is even possible? Ive looked at the addons that currently exist but they dont have these features. Thanks in advance
  Reply With Quote
10/28/22, 05:07 PM   #2
quickc
AddOn Author - Click to view addons
Join Date: Jun 2022
Posts: 4
LibCustomMenu uses this:

LibCustomMenu:RegisterGuildRosterContextMenu(rowData)

and u can access that from rowData.secsSinceLogoff

returns number
  Reply With Quote
10/28/22, 05:19 PM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,964
I had created an addon FCOGuildLottery for some guild history related sold items (using LibHistoire) already in the pasts
It provides random dice rolls, dice rolls based on the guild member list (all members), guild member list of sold items at the guild store during a selected time frame.

As LibHistoire should capture all guild data it hopefully would collect the guild members history too, if the guild API provides that (and not only the guild roster does).
Did you check LibHistoire already if it collects this data?

Attention:
Ther was a bug at rowData.secsSinceLogoff in the past where the results were wrong if ppl have removed the account or renamed or haven't been online within the last x days. The time shown was wrong and needed to use another timestamp as offset. I do not remember the details.. Mabye sirinsidiator still knows.

Last edited by Baertram : 11/07/22 at 07:19 PM.
  Reply With Quote
11/07/22, 06:30 PM   #4
Uoid
Join Date: Aug 2022
Posts: 3
Did anyone have any further ideas on how this could be done? Or even if you could add a number beside every name in the guild so you could use a random number generator to pick a person at random, instead of having to count down the list to find the 16th person online or something.
  Reply With Quote
11/07/22, 07:17 PM   #5
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,964
As I wrote above FCOGuldLottery already does that (I've changed the text so it's more obvious now, hopeully).
Either based on sold items in guild store, or normal guild members list 1 to n, or just a random dice roll without guild relation.

What's missing: The time period to pick for the guild members "online within that time".
  Reply With Quote
11/07/22, 09:53 PM   #6
Uoid
Join Date: Aug 2022
Posts: 3
Oh cheers, thanks for that, but it dosnt seem to either add a numbered list to guild online list or be able to pick from only online members etc, and I dont know enough about addons to try and make it do those things lol.
  Reply With Quote
11/08/22, 06:28 AM   #7
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,964
It does not add soemthing to the vanilla guild roster.
It got it's own UI! You need to choose the guild there (top left, see (1)) and you can start to roll dices on the guild members list that way, at the FCOGuildLOttery UI.
The results of the dice rolls are shown in a history at the right UI part where the @displayname of the member rolled will be shown together with the date and time (2).


-> See numbers at the screenshot explained at the addon description:
https://www.esoui.com/downloads/info...wshistory.html

If you choose no guild it will just roll a dice and show the history for it.
You can choose the dice's sides at the top left. Default is d500 for 500 guild members e.g.


The main feature is rlling dices on the sold items list of a guild so you can do a raffle or some lottery for guild members based on their sold items ranking of the month/time period choosen -> Depends on LibHistoire data so you need to install that and scan the guild history with it like described at the description of the addon or at the description of LibHistoire or at MasterMerchant and other addons using it. Basically it is: Press G, choose guild, at LibHistoire UI shown there choose e.g. sold items and press E every 2 seconds until the bars at LibHistoire UI are all filled to 100%.
And then jst enable that lib each day and let it scan each day again automatically to fill new sold items/member changes/guild bank changes.
If you login each day or every 2nd it will be fast and automatically. If you disable that lib and only do the scanning every week it will take loooonger if one automatically so you may need repeat the above explained G-> choose guild-> choose suff to update (bank, members, sold items, ava, ...) and manually press E until bars are filled for all your guilds interested in.

Last edited by Baertram : 11/08/22 at 06:34 AM.
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » Random lottery picker for within guild, picking from members online in last week


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