Download
(83 Kb)
Download
Updated: 07/13/15 01:48 PM
Compatibility:
Update 6 (1.6.5)
Updated:07/13/15 01:48 PM
Created:05/11/15 01:55 PM
Monthly downloads:23
Total downloads:5,691
Favorites:6
MD5:
RaffleHelper  Popular! (More than 5000 hits)
Version: 1.6.4
by: Jar-Ek [More]
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
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Uploader
Date
1.6.3
83kB
Jar-Ek
07/08/15 02:18 PM


Post A Reply Comment Options
Unread 01/29/16, 12:50 AM  
Tyilae

Forum posts: 0
File comments: 1
Uploads: 0
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
Report comment to moderator  
Reply With Quote
Unread 09/16/15, 04:37 PM  
LegendaryDepth

Forum posts: 0
File comments: 2
Uploads: 0
Originally Posted by Jar-Ek
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.

Tyvm for the response & update

~LD~
Report comment to moderator  
Reply With Quote
Unread 09/16/15, 12:28 PM  
Jar-Ek
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 25
Uploads: 4
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.
Report comment to moderator  
Reply With Quote
Unread 09/13/15, 02:20 PM  
LegendaryDepth

Forum posts: 0
File comments: 2
Uploads: 0
Question Out of Date, or am just I partially ignorant? :P

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.

I don't wanna be that guy xD

Please Advise

~LD~
Report comment to moderator  
Reply With Quote
Unread 09/06/15, 04:15 PM  
ArcaneChaos

Forum posts: 0
File comments: 2
Uploads: 0
Question Increase Pot

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.
Report comment to moderator  
Reply With Quote
Unread 07/19/15, 07:26 AM  
Jar-Ek
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 25
Uploads: 4
Apologies there seems to be a bug atm. If you run check multiple times and then draw it should work. I will fix when I have a few spare moments.
Report comment to moderator  
Reply With Quote
Unread 07/18/15, 11:20 AM  
nich261
 
nich261's Avatar

Forum posts: 0
File comments: 90
Uploads: 0
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.
Report comment to moderator  
Reply With Quote
Unread 07/15/15, 02:12 PM  
nich261
 
nich261's Avatar

Forum posts: 0
File comments: 90
Uploads: 0
Originally Posted by Jar-Ek
Originally Posted by nich261
Error listed below happens when using /rh check

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
Yes the error is gone.... thank you.
Report comment to moderator  
Reply With Quote
Unread 07/13/15, 01:30 PM  
Jar-Ek
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 25
Uploads: 4
Originally Posted by nich261
Error listed below happens when using /rh check

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
Last edited by Jar-Ek : 07/14/15 at 02:39 PM.
Report comment to moderator  
Reply With Quote
Unread 07/11/15, 01:26 PM  
nich261
 
nich261's Avatar

Forum posts: 0
File comments: 90
Uploads: 0
Error listed below happens when using /rh check

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): ?
Report comment to moderator  
Reply With Quote
Unread 07/08/15, 01:15 PM  
Jar-Ek
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 25
Uploads: 4
Originally Posted by Revery
Hi Jar-Ek,

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?
Last edited by Jar-Ek : 07/08/15 at 02:19 PM.
Report comment to moderator  
Reply With Quote
Unread 07/08/15, 08:33 AM  
Revery

Forum posts: 0
File comments: 3
Uploads: 0
Hi Jar-Ek,

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.
Report comment to moderator  
Reply With Quote
Unread 07/07/15, 01:34 PM  
Jar-Ek
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 25
Uploads: 4
OKay I think I have fixed it Diamond!
Try the latest version and let me know please.
Report comment to moderator  
Reply With Quote
Unread 07/05/15, 09:12 AM  
Jar-Ek
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 25
Uploads: 4
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
Report comment to moderator  
Reply With Quote
Unread 07/03/15, 08:55 AM  
diamond_10

Forum posts: 0
File comments: 13
Uploads: 0
So i disabled every addon BUT raffle helper, and this is what i get:



any ideas?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: