ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Search/Requests (https://www.esoui.com/forums/forumdisplay.php?f=165)
-   -   Random lottery picker for within guild, picking from members online in last week (https://www.esoui.com/forums/showthread.php?t=10354)

Uoid 10/28/22 04:52 PM

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 :)

quickc 10/28/22 05:07 PM

LibCustomMenu uses this:

LibCustomMenu:RegisterGuildRosterContextMenu(rowData)

and u can access that from rowData.secsSinceLogoff

returns number

Baertram 10/28/22 05:19 PM

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.

Uoid 11/07/22 06:30 PM

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.

Baertram 11/07/22 07:17 PM

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".

Uoid 11/07/22 09:53 PM

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.

Baertram 11/08/22 06:28 AM

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.


All times are GMT -6. The time now is 09:45 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI