View Full Version : Guild lottery
Playsatan
20-05-2008, 07:00 PM
hello gents and ladies !
im a little new to the coding buissness, how ever i am not a compleate noob.
now im trying to make a guild lottery addon, but its coming along at a bit of slow rate.
seeing as i dont ahve a great knowledge of lua, i thought i would find a few addons and splice the code from them. i have a quite a few good ones that do alot of the things i need.
one of the best ones i saw was loot roller. now i know that its a raid addon, but it has alot of what i want, in it.
stuff like : assigning each player to a number and then doing a /random of all those numbers, announcing it, being light weight, etc.
now although this is nice, i prefer an addon that was just for guild lotterys.
so my idea:
guildies send me, say 1g per ticket, and the addon logs the person who send the mail. the addon could (although it isnt necessary) understand that if someone sent 3g then that person gets 3 tickets, and if the person sent more than the maximum allowed tickets, then they would only get the maximum, and the rest sent back as change.
so they are added to the list, and the lottery begins. the winner is announced in the guild chat and if needed the numbers put into the GMOTD.
the extra stuff:
if the "addon recognises amount of gold and so gives out tickets accordingly" is added, then some kind of priceing variable sould be added, so the price of each ticket can be altered.
now i have already read the other threads about a lotto addon on the forums, and ahve taken them into consideration, but hope that i can get some positive feedback anyway.
EDIT: instead of doing that whole addon recognises that 3g is in the mail and gives out 3 tickets thing, just have each partisipant send 1 mail for each ticket they want.
mesonm
20-05-2008, 07:21 PM
Interesting concept....I know that at least one other game has a poker addon....heh
I can't say that I would have enough interest in a guild lottery to compel me to write an addon....But I salute you!
ChaosInc
20-05-2008, 08:47 PM
Gambling of any sort in WoW is against the ToS and any mods written to promote this will be reported. Sorry mate. :shocked:
elsegundo
20-05-2008, 08:58 PM
i know a bunch of guilds that have lotteries on a weekly basis.
there's a pot, and part of the money goes to the guild bank. the rest of the money goes to the guild member who won that week. its usually determined by a /roll (with the number of people in the pot as the high number on the roll.
say the entry is 5 gold. with an 80/20 split between winner/guildbank.
lets say 10 people enter, that's 50 gold.
each guildie gets a number based on order of entry. first person gets 1, second gets 2, third gets 3. etc.
/roll between 1 and 10 and whatever number pops up is the winner.
usually rolls are scheduled events with people watching so there's no cheating.
so in that example, one person gets 40g, and the guildbank gets 10 gold.
though it is gambling, i see this as more of a way to raise funds for the guild. plus gives people incentive to participate in the guild activities.
Playsatan
20-05-2008, 10:13 PM
well see, i checked out the whole "gambling" ordeal and it is illegal to do something like this, but only if you advertise it as an event outside your guild. so for example: holding a lottery in SW where anyone can join.
so this being a guild only event,there''s no problem.
now i could ofcourse just type /roll <number of tickets sold> and then have 4 other people witness it, but it would be easier and more relyable if an addon took care of it.
Xlorep DarkHelm
20-05-2008, 10:25 PM
"If you play with fire, don't complain when you get burned."
You can argue semantics all you want. But if Blizzard decides to nail you (or anyone else) who uses your mod... it won't be pretty.
Playsatan
20-05-2008, 10:34 PM
i will gladly take any thing that blizard throws at me for this. however, if someone uses this mod in a way that it was not intended (like guild lotterys) then its nothing to do with me.
its the same with any addon isnt it ?
anyway, so what would be my first step in creating this addon ?
elsegundo
20-05-2008, 10:59 PM
i dont know how to make this addon at all... but let me make a suggestion:
can you also add a feature that will mail everyone who participated the results? and have an option to mail the entire guild the results too? and the mail can be as detailed (list of participants, total gold donated, how much goes to winner, if there's a second place, how much goes to bank, etc) or with as little detail ("Grats <player name> wins <winning amount> gold this week!") as possible. that would rock.
Playsatan
20-05-2008, 11:46 PM
well i have come accross an addon that does mass mails to each member of the guild . . . . . . .
guild mailing list
not sure if linking outside sites is allowed here tho. . . . so just look for it on curse
Xlorep DarkHelm
20-05-2008, 11:54 PM
Finding a mod that plays around with money like you suggest though, would be far more complicated. I believe that Blizzard (rightly) protects operation with money in-game, to avoid things like a mod that somehow tries to siphon gold from people.
Playsatan
21-05-2008, 01:13 AM
this is not siphoning gold off people though.
i am in no way trying to steal money from anyone.
this is a friendly moral boosting addon.
i am not even trying to hide the transactions of the gold. i am using a mailing system that blizzard monitors.
the human factor could be left in.anyone could just organise something like this and in theory, the gold is more likly to be stolen, but that is why i want to make this addon, so that any negitive element in human nature is ruled out, and if something like that happens it is witnessed by any guildies online.so that if it is seen as unfair andstealing, they can report to a GM.
now i noticed the script that aspinkorgall used:
/script local a,msg={},"Weekly Lotto Numbers are:" for b = 1,4 do local c = math.random(10) while a[c] do c = math.random(10) end a[c]=1 msg=msg.." "..c end GuildSetMOTD(msg)
found here:
http://www.worldofwar.net/forums/showthread.php?t=384874
now that works brilliantly, but i feel could be tweaked just a little more.
instead of changing the GMOTD all the time, it would be announced in guild chat, announce the winner,etc.
now how do i put this into the addon, as im not sure how to code the command /script into it.
ChaosInc
21-05-2008, 03:07 AM
well i have come accross an addon that does mass mails to each member of the guild . . . . . . .
guild mailing list
not sure if linking outside sites is allowed here tho. . . . so just look for it on curse
Yes, you can link to other sites for a recommended mod if you cannot find it here. Although the "rules" state otherwise, I fail to see how it would cause an issue and an admin is more than happy to correct me if I'm wrong.
ChaosInc
21-05-2008, 03:09 AM
this is not siphoning gold off people though.
i am in no way trying to steal money from anyone.
this is a friendly moral boosting addon.
i am not even trying to hide the transactions of the gold. i am using a mailing system that blizzard monitors.
the human factor could be left in.anyone could just organise something like this and in theory, the gold is more likly to be stolen, but that is why i want to make this addon, so that any negitive element in human nature is ruled out, and if something like that happens it is witnessed by any guildies online.so that if it is seen as unfair andstealing, they can report to a GM.
now i noticed the script that aspinkorgall used:
/script local a,msg={},"Weekly Lotto Numbers are:" for b = 1,4 do local c = math.random(10) while a[c] do c = math.random(10) end a[c]=1 msg=msg.." "..c end GuildSetMOTD(msg)
found here:
http://www.worldofwar.net/forums/showthread.php?t=384874
now that works brilliantly, but i feel could be tweaked just a little more.
instead of changing the GMOTD all the time, it would be announced in guild chat, announce the winner,etc.
now how do i put this into the addon, as im not sure how to code the command /script into it.
As I'm "obligated" to not assist on this (personally), what I will tell you is that you'll have to turn that into a function().
Xlorep DarkHelm
21-05-2008, 05:23 AM
this is not siphoning gold off people though.
i am in no way trying to steal money from anyone.
this is a friendly moral boosting addon.
i am not even trying to hide the transactions of the gold. i am using a mailing system that blizzard monitors.
the human factor could be left in.anyone could just organise something like this and in theory, the gold is more likly to be stolen, but that is why i want to make this addon, so that any negitive element in human nature is ruled out, and if something like that happens it is witnessed by any guildies online.so that if it is seen as unfair andstealing, they can report to a GM.
I'm so glad you could actually read what I wrote, rather than skim and make assumptions. I never said that you were siphoning off money or trying to steal money from anyone. Why not try again. Here's a hint, rather than assuming I was saying that *you* were doing it, why not try reading that I gave an example of what *could* be done and because of that chance, Blizzard *might* have locked such functionality.
Tunga
21-05-2008, 10:19 AM
I'm not aware of any restrictions that would stop this working, but be aware that it's still going to be a mod running locally on one person's machine and only when they're online. There's nothing more reliable or secure or integral about doing this over the same person just doing a /roll.
Playsatan
21-05-2008, 05:32 PM
@ Xlorep DarkHelm:
i apolgise about that xlorep. i am a dyslexic so alot of the time i usaly only get the gyst of something as if i was translating it from anouther language.
of course any addon that handles money could be used with malichous intent, but usaly they work out fine. stuff like duckie bank hasnt had complaints regarding stealing money as far as i know.
i would gladly take on suggestions to how people can be stopped using this mod to steal money from people.
oh and TY ChaosInc about the function command to replace /script.
ChaosInc
22-05-2008, 12:47 AM
No prob. Like I said, I'll help with coding questions, what you do with it is your business. :grin:
Playsatan
22-05-2008, 04:24 PM
ok so what else do i need for this addon ?
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.