Holy Crap, EDITED!
Just realised why it wouldn't work... Gosh I feel stupid...
Code:
#IF
RANDOM 35000
#ACT
TAKE LotteryTicket 1
SENDMSG 6 "Congrats <$USERNAME>, you won a ClearRing from Lottery!"
GIVE ClearRing 1
#ELSEACT
SENDMSG 6 "Sorry <$USERNAME>, you didn't win Lottery today!"
This would ONLY take the lottery ticket when you win...
Just add a TAKE to ELSEACT;
Code:
#IF
RANDOM 35000
#ACT
TAKE LotteryTicket 1
SENDMSG 6 "Congrats <$USERNAME>, you won a ClearRing from Lottery!"
GIVE ClearRing 1
#ELSEACT
TAKE LotteryTicket 1
SENDMSG 6 "Sorry <$USERNAME>, you didn't win Lottery today!"
-----------------------------------------------------------MERGE-------------------------------------------------------------
You could use Qfunction, change the STDMODE of your lottery ticket to 31, then in your QFunction, add this;
Code:
[@StdModeFunc20]
#IF
RANDOM [COLOR=Red]<<<Chance>>>[/COLOR]
#ACT
TAKE LotteryTicket 1
SENDMSG 6 "Congrats <$USERNAME>, you won a [COLOR=Blue]<<<Item>>>[/COLOR] from Lottery!"
GIVE [COLOR=Blue]<<<Item>>>[/COLOR] 1
#ELSEACT
TAKE LotteryTicket 1
SENDMSG 6 "Sorry <$USERNAME>, you didn't win Lottery today!"
Change
<<<Item>>> to whatever item you want them to win.
Change
<<<Chance>> to the chance you want it to be for them to win.
Then just do more for different items to win, like this;
Code:
[@StdModeFunc20]
#IF
RANDOM [COLOR="Red"]<<<Chance1>>>[/COLOR]
#ACT
TAKE LotteryTicket 1
SENDMSG 6 "Congrats <$USERNAME>, you won a [COLOR="Blue"]<<<Item1>>>[/COLOR] from Lottery!"
GIVE [COLOR="Blue"]<<<Item1>>>[/COLOR] 1
#ELSEACT
TAKE LotteryTicket 1
SENDMSG 6 "Sorry <$USERNAME>, you didn't win Lottery today!"
#IF
RANDOM [COLOR="Red"]<<<Chance2>>>[/COLOR]
#ACT
TAKE LotteryTicket 1
SENDMSG 6 "Congrats <$USERNAME>, you won a [COLOR="Blue"]<<<Item2>>>[/COLOR] from Lottery!"
GIVE [COLOR="Blue"]<<<Item2>>>[/COLOR] 1
#ELSEACT
TAKE LotteryTicket 1
SENDMSG 6 "Sorry <$USERNAME>, you didn't win Lottery today!"
#IF
RANDOM [COLOR="Red"]<<<Chance3>>>[/COLOR]
#ACT
TAKE LotteryTicket 1
SENDMSG 6 "Congrats <$USERNAME>, you won a [COLOR="Blue"]<<<Item3>>>[/COLOR] from Lottery!"
GIVE [COLOR="Blue"]<<<Item3>>>[/COLOR] 1
#ELSEACT
TAKE LotteryTicket 1
SENDMSG 6 "Sorry <$USERNAME>, you didn't win Lottery today!"