This is a new minigame that me and Lawlypopzz has come up with and we think this is kinda cool. I think you will have a lot of fun using this command and so will your viewers. I hope you enjoy this as much as I do. So eat your heart out!!!
Note: You need to make a Lottery folder inside your custom logs folder and within the Lottery folder you need to make three other folders naming them multi, user, and rand these folders are needed in order for the @savefile@ and @readfile@ to work correctly.
If you have any trouble in setting up this command just message me or Lawlypopzz on streamer chat please remember to put our name so it notifies us.
!lottery
@if@[>=||@points@||@readfile@[Lottery/cost.txt]||!lotterycooldown||Sorry @user@ you do not have enough @pointsname@ to enter the lottery!]
Notes: Untick Whispers and Set with user elevated
!lotterycooldown
@if@[@readfile@[Lottery/@user@.txt]||||!lotterypass||!lotterymath]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!lotterymath
@if@[>=||@calc@[-|@unixtime@|@readfile@[Lottery/@user@.txt]]||@readfile@[Lottery/limit.txt]||!lotterypass||!lotteryfail @calc@[-|@unixtime@|@readfile@[Lottery/@user@.txt]]]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!lotterypass
@savefile@[Lottery/@user@.txt,@unixtime@]!lotterydone
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!lotteryfail
I'm sorry @user@ but you can only enter the lottery every @readfile@[Lottery/limit.txt] seconds. You have @calc@[-|@readfile@[Lottery/limit.txt]|@target@] seconds left.
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!lotterydone
@savefile@[Lottery/user/@user@.txt,@rand@[1|50]] @exec@[1,!rand1] @exec@[1,!rand2] @exec@[1,!rand3] @exec@[1,!rand4] @exec@[1,!rand5] @exec@[1,!multiplier]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!rand1
@savefile@[Lottery/rand/rand1.txt,@rand@[1|50]]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!rand2
@savefile@[Lottery/rand/rand2.txt,@rand@[1|50]]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!rand3
@savefile@[Lottery/rand/rand3.txt,@rand@[1|50]]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!rand4
@savefile@[Lottery/rand/rand4.txt,@rand@[1|50]]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!rand5
@savefile@[Lottery/rand/rand5.txt,@rand@[1|50]]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!multiplier
@savefile@[Lottery/multi/multi.txt,@rand@[1|5]] @exec@[1,!lottery2]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!lottery2
@user@ has been entered into the lottery Your number is @readfile@[Lottery/user/@user@.txt] if your numbers match one of the following @readfile@[Lottery/rand/rand1.txt] @readfile@[Lottery/rand/rand2.txt] @readfile@[Lottery/rand/rand3.txt] @readfile@[Lottery/rand/rand4.txt] @readfile@[Lottery/rand/rand5.txt] then you have won 400 @pointsname@ times your multiplier of @readfile@[Lottery/multi/multi.txt] @exec@[1,!lotterycheck1 @calc@[*|@readfile@[Lottery/multi/multi.txt]|400]]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!lotterycheck1
@if@[@readfile@[Lottery/user/@user@.txt]||@readfile@[Lottery/rand/rand1.txt]||!lotteryadd @target@||!lotterycheck2 @target@]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!lotterycheck2
@if@[@readfile@[Lottery/user/@user@.txt]||@readfile@[Lottery/rand/rand2.txt]||!lotteryadd @target@||!lotterycheck3 @target@]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!lotterycheck3
@if@[@readfile@[Lottery/user/@user@.txt]||@readfile@[Lottery/rand/rand3.txt]||!lotteryadd @target@||!lotterycheck4 @target@]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!lotterycheck4
@if@[@readfile@[Lottery/user/@user@.txt]||@readfile@[Lottery/rand/rand4.txt]||!lotteryadd @target@||!lotterycheck5 @target@]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!lotterycheck5
@if@[@readfile@[Lottery/user/@user@.txt]||@readfile@[Lottery/rand/rand5.txt]||!lotteryadd @target@||!lotterylose @target@]
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!lotteryadd
@editpoints@[@user@|@target@] @editpoints@[@user@|-@readfile@[Lottery/cost.txt]] @user@ looks like you were lucky this time and have won @target@ @pointsname@!
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!lotterylose
@editpoints@[@user@|-@readfile@[Lottery/cost.txt]] @user@ you did not win the lottery sorry better luck next time!
Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list
!set
@savefile@[@target@[1]/limit.txt,@target@[2]] @savefile@[@target@[1]/cost.txt,@target@[3]] The setting for @target@[1] have been set to: Cooldown: @target@[2] seconds | Cost: @target@[3] @pointsname@
Notes: Untick Whispers and Set with User Elevated and Streamer/Bot only and hide from command list this sets up the limit and cost files which are needed ie: !set Lottery <cooldown> <cost>