Raffle Helper is an add-on for ESO intended to support the running of a guild raffle.
It enables whomever is running the raffle to set the period that the raffle runs for (i.e. period that you can buy tickets) and to run the prize draw.
The add-on reads the guild bank deposits within the time period to determine who has bought tickets and how many they have bought based on the ticket price.
The add-on performs the draw on a purely mathematical basis, based on a random number generator and guild member id (and number of tickets they have bought).
It does not track individual tickets (i.e. the tickets are not individually numbered and that number assigned to a specific player on purchase)
The prizes are set as a percentage of the total amount of money raised from the ticket purchases.
Raffle helper does not distribute the prizes or show any of the data to anyone other than the person running the add-on.
The add-on allows the following to be set:
guildname the name of the guild you are running the raffle for
multiple simultaneous guild raffles from a single account are not supported
this may not be changed whilst a raffle is running
raffleperiod How long the raffle should run for in days
rankcutoff This enables you to prevent the upper ranks from playing the raffle.
If set to 1, it prevents the GM from playing.
Subsequent values set the cutoff for various officer ranks
ticketprice This sets the price of a single ticket
guildcut Sets the guild cut as a percentage of the total
firstprize Sets the first prize as a percentage of the total
secondprize Sets the second prize as a percentage of the total
thirdprize Sets the third prize as a percentage of the total
And has the following commands:
draw Runs the raffle draw when the raffle time period has elapsed
check Checks the status of the raffle (including how many tickets sold, etc)
start Starts a raffle time period
stopnow End the current raffle now, regardless of time remaining in raffle period
drawnow End the current raffle now, regardless of time remaining in raffle period and performs the raffle draw
restart Abandons the current raffle time period and starts it again
This will lose an deposit information between the start and restart
results Gets the results of the last raffle
list Lists the current settings
set <setting> <value> Sets one of the above settings to the specified value
These commands are accessed using /rh or /rafflehelper.
Using /rhset will bring up the settings as an UI element.
If you have problems please try /rh clear
Change Log
----------
v1.0 Initial build
v1.1 Corrected raffle end times
v1.2 Added UI settings menu
v1.3 Corrected bug with UI settings menu and /commands
v1.4 Corrected bug with guildnames
v1.5 Added additional functionality (restart, results, stopnow, drawnow)
v1.6 Fixed some issues with random seeds and bank deposit history
v1.6.1 Bug fix for settings
v1.6.2 Bug fix for guild name setting
v1.6.3 Fix for large guilds and lots of deposits
v1.6.4 Bug fix
Latest. Corrects for Guildnames not entering correctly
user:/AddOns/RaffleHelper/RaffleHelper.lua:86: operator - is not supported for nil - number
stack traceback:
user:/AddOns/RaffleHelper/RaffleHelper.lua:86: in function 'RaffleH.DetermineNumberOfDeposits'
user:/AddOns/RaffleHelper/RaffleHelper.lua:474: in function 'RaffleH.Check'
user:/AddOns/RaffleHelper/RaffleHelper.lua:1107: in function 'RaffleH.CommandHandler'
EsoUI/Ingame/SlashCommands/SlashCommands.lua:124: in function 'DoCommand'
EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:1845: in function 'SharedChatSystem:SubmitTextEntry'
EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:2711: in function 'ZO_ChatTextEntry_Execute'
(tail call): ?
14406795741938050902:3: in function '(main chunk)'
(tail call): ?[/quote]
I am getting this error now, and it used to work fine and have used it many times up until just recently. Now there is going to be a lot of very upset people waiting for that prize money when a LOT of them put lots of coin in. Thanks for making my life hell
Apologies to all, I have been very busy and hence not able to update the add-on.
I will do so as soon as I have time.
However, it *should* work as an out-of-date add-on w/o issue.
ArcaneChaos - there is currently no way to increase the pot, but I can add that feature in.. subject to the above constraint of time.
No worries! lol I'll un/re-install and see if that works.
Apologies to all, I have been very busy and hence not able to update the add-on.
I will do so as soon as I have time.
However, it *should* work as an out-of-date add-on w/o issue.
ArcaneChaos - there is currently no way to increase the pot, but I can add that feature in.. subject to the above constraint of time.
To start, Hi! I'm new and this is my first post. lol
Now then to more pressing matter :P
I DO have my ESO add-on tab set to *not allow out of date add-on's to run* and I'm not seeing Raffle Helper/Can't access it/or...maybe idk where /how to to find/use it. lol
(full disclosure) I am in fact new to this whole thing, but I did get MM to work (omg GR8 prgm btw!<3).
Is Raffle helper V.1.6.4 actually up-to-date, and ESO doesn't realize it?
I am also using Minion, and the update all button doesn't seem to do anything (which I assume because there isn't anything that needs to be done/updated)
I only choose NOT to run out of date add-ons because I've read some scary permaban reviews/instances with people not knowing it had a bug/hack ability to an add on but they didn;t update.
Is there anyway to add money to the pot without purchasing tickets? I've got members in my guild that would just like to donate to make the pot bigger, but not actually be entered to win.
Maybe I am not understanding how this addon works, because at the end of the days set for the raffle I went to /rh draw and it produced no results for winners.
It was as if all the tickets purchased did not exist. I ended up having to take all the names and use an online random generator to do my raffle drawings.
user:/AddOns/RaffleHelper/RaffleHelper.lua:86: operator - is not supported for nil - number
stack traceback:
user:/AddOns/RaffleHelper/RaffleHelper.lua:86: in function 'RaffleH.DetermineNumberOfDeposits'
user:/AddOns/RaffleHelper/RaffleHelper.lua:474: in function 'RaffleH.Check'
user:/AddOns/RaffleHelper/RaffleHelper.lua:1107: in function 'RaffleH.CommandHandler'
EsoUI/Ingame/SlashCommands/SlashCommands.lua:124: in function 'DoCommand'
EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:1845: in function 'SharedChatSystem:SubmitTextEntry'
EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:2711: in function 'ZO_ChatTextEntry_Execute'
(tail call): ?
14406795741938050902:3: in function '(main chunk)'
(tail call): ?
It should be fixed with the latest version.
There are still some issues related to the guild history.
Please use /rh check until you get a valid set of results before running a draw.
I am looking into it and will fix ASAP
user:/AddOns/RaffleHelper/RaffleHelper.lua:86: operator - is not supported for nil - number
stack traceback:
user:/AddOns/RaffleHelper/RaffleHelper.lua:86: in function 'RaffleH.DetermineNumberOfDeposits'
user:/AddOns/RaffleHelper/RaffleHelper.lua:474: in function 'RaffleH.Check'
user:/AddOns/RaffleHelper/RaffleHelper.lua:1107: in function 'RaffleH.CommandHandler'
EsoUI/Ingame/SlashCommands/SlashCommands.lua:124: in function 'DoCommand'
EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:1845: in function 'SharedChatSystem:SubmitTextEntry'
EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:2711: in function 'ZO_ChatTextEntry_Execute'
(tail call): ?
14406795741938050902:3: in function '(main chunk)'
(tail call): ?
It should be fixed with the latest version.
There are still some issues related to the guild history.
Please use /rh check until you get a valid set of results before running a draw.
I am looking into it and will fix ASAP
user:/AddOns/RaffleHelper/RaffleHelper.lua:86: operator - is not supported for nil - number
stack traceback:
user:/AddOns/RaffleHelper/RaffleHelper.lua:86: in function 'RaffleH.DetermineNumberOfDeposits'
user:/AddOns/RaffleHelper/RaffleHelper.lua:474: in function 'RaffleH.Check'
user:/AddOns/RaffleHelper/RaffleHelper.lua:1107: in function 'RaffleH.CommandHandler'
EsoUI/Ingame/SlashCommands/SlashCommands.lua:124: in function 'DoCommand'
EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:1845: in function 'SharedChatSystem:SubmitTextEntry'
EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:2711: in function 'ZO_ChatTextEntry_Execute'
(tail call): ?
14406795741938050902:3: in function '(main chunk)'
(tail call): ?
I'm helping out diamond_10 with getting RaffleHelper going. Latest updates look good, we've got the addon loading up and running commands, thanks!
But the ticket info is inconsistent. We do a few deposits and they show up as valid entries, but then when we rerun the /rh check later it shows no entries.
I was taking a look at the code and wondering if RaffleHelper just isn't going through all the history it needs to. In RaffleHelper I see the call to RequestGuildHistoryCategoryNewest() to pull in GUILD_HISTORY_BANK. And if I sprinkle some debugging around it looks like that pulls in 100 events. But the guild is really active currently, and that 100 events only takes us back 45 minutes in history.
If I take a look at other addons that work with history it seems the pattern is to first call RequestGuildHistoryCategoryNewest(), and then to call RequestGuildHistoryCategoryOlder() until DoesGuildHistoryCategoryHaveMoreEvents() returns false (or some other condition like time is hit).
Any idea if that could be a problem? I'm happy to dig into it and try to work up a fix to contribute. Just wanted to check with you to see if I was misunderstanding the way it should work.
Thanks Revery - as you know I am new to this add-on making lark and hence missed this!
I have modified and updated the addon but cannot test the effectiveness for large guilds.
Do you think that you and Diamond could help out please?
I'm helping out diamond_10 with getting RaffleHelper going. Latest updates look good, we've got the addon loading up and running commands, thanks!
But the ticket info is inconsistent. We do a few deposits and they show up as valid entries, but then when we rerun the /rh check later it shows no entries.
I was taking a look at the code and wondering if RaffleHelper just isn't going through all the history it needs to. In RaffleHelper I see the call to RequestGuildHistoryCategoryNewest() to pull in GUILD_HISTORY_BANK. And if I sprinkle some debugging around it looks like that pulls in 100 events. But the guild is really active currently, and that 100 events only takes us back 45 minutes in history.
If I take a look at other addons that work with history it seems the pattern is to first call RequestGuildHistoryCategoryNewest(), and then to call RequestGuildHistoryCategoryOlder() until DoesGuildHistoryCategoryHaveMoreEvents() returns false (or some other condition like time is hit).
Any idea if that could be a problem? I'm happy to dig into it and try to work up a fix to contribute. Just wanted to check with you to see if I was misunderstanding the way it should work.
Hmmm
Okay Diamond_10 will try to work it out...
Unfortunately that error message is a generic "It's not working" message
But will check code and update as soon as I can