Author Topic: Custom Mini-Game Lottery (Commands)  (Read 5400 times)

0 Members and 1 Guest are viewing this topic.

jwhite8559

  • Youngling
  • *
  • Posts: 27
  • Karma: +1/-0
    • View Profile
  • Twitch Name: jwhite8559
Custom Mini-Game Lottery (Commands)
« on: February 24, 2016, 04:04:12 PM »
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
Code: [Select]
@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
Code: [Select]
@if@[@readfile@[Lottery/@user@.txt]||||!lotterypass||!lotterymath]Notes: Untick Whispers and Set with User Elevated and mod only and hide from command list

!lotterymath
Code: [Select]
@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
Code: [Select]
@savefile@[Lottery/@user@.txt,@unixtime@]!lotterydoneNotes: Untick Whispers and Set with User Elevated and mod only and hide from command list

!lotteryfail
Code: [Select]
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
Code: [Select]
@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
Code: [Select]
@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
Code: [Select]
@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
Code: [Select]
@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
Code: [Select]
@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
Code: [Select]
@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
Code: [Select]
@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
Code: [Select]
@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
Code: [Select]
@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
Code: [Select]
@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
Code: [Select]
@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
Code: [Select]
@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
Code: [Select]
@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
Code: [Select]
@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
Code: [Select]
@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
Code: [Select]
@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>
« Last Edit: March 05, 2016, 09:52:12 PM by LawlyPopzz »
***Deepbot Support***

TheRealAlixe

  • Knight
  • ***
  • Posts: 106
  • Karma: +5/-2
    • View Profile
    • Ninetales.us
  • Twitch Name: TheRealAlixe
Re: Custom mini-game Lottery
« Reply #1 on: February 24, 2016, 04:06:02 PM »
Good Command and thanks for releasing for everyone to use
Twitter: @TheRealAlixe | Web: Ninetales.us | Twitch: @TheRealAlixe | Discord: join

chikarkas36

  • Youngling
  • *
  • Posts: 22
  • Karma: +0/-0
    • View Profile
  • Twitch Name: xcibermaniacosx
Re: Custom Mini-Game Lottery (Commands)
« Reply #2 on: March 11, 2016, 10:23:35 AM »
can some one can make a tutorial how to add all this commands please ? need to add command chain ?

Nazo

  • Padawan
  • **
  • Posts: 70
  • Karma: +2/-0
  • Expert on Twitch Bots
    • View Profile
  • Twitch Name: OverlordNazo
Re: Custom Mini-Game Lottery (Commands)
« Reply #3 on: March 12, 2016, 12:06:53 AM »
can some one can make a tutorial how to add all this commands please ? need to add command chain ?
If you have the program, you can go to the Channel Commands tab, click Add New, then copy and paste the commands from the guide into the Message box. Make sure to set it to Run as User (Elevated Access) or it won't work. Do this for each of the commands listed in the guide.
« Last Edit: March 12, 2016, 02:11:59 AM by Nazo »
★ Twitch Bot Expert ★


YouTube: Lord Nazo
Twitch: OverlordNazo
Twitter: @Lord_Nazo

firefist235

  • Youngling
  • *
  • Posts: 28
  • Karma: +1/-0
    • View Profile
  • Twitch Name: firefist235
Re: Custom Mini-Game Lottery (Commands)
« Reply #4 on: March 13, 2016, 09:04:10 AM »
can you explain how this game works? What does it do exactly?

RockGuitarist1

  • Youngling
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
  • Twitch Name: RockGuitarist1
Re: Custom Mini-Game Lottery (Commands)
« Reply #5 on: May 03, 2016, 01:44:29 AM »
How would I go about using this in terms of it generating 5 numbers, 1-100, with different reward totals based on the number of matches? I wrote a program that does this, but I would love to integrate this into my chat.