Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IFMATCHES(%@&chatclean%,"%@®ex%\.bet (.+)",&bet,2)
- MATCH(%@&chatclean%,"%@®ex%(.+) (.+)",&better,1)
- IndexOf(@&player[],#pos,%&better%)
- IF(%@&inprogress[%#pos%]% != "true")
- IF(&bet != "random")
- Set(#bet,%&bet%)
- #bet = %#bet% / 1
- ELSE
- IndexOf(@&player[],#pos,%&better%)
- RANDOM(#bet,1,%@#money[%#pos%]%)
- Set(@#bet[%#pos%],%#bet%)
- ENDIF
- IF(#bet < 1)
- Echo(%&channel% &cInvalid bet of $%#bet%.)
- ELSE
- IndexOf(@&player[],#pos,%&better%)
- Set(@#bet[%#pos%],%#bet%)
- IF(#pos > -1)
- IF((#bet > %@#money[%#pos%]%) && (&better != %PLAYER%))
- Echo(%&channel% &cYou do not have enough money to cover that bet.)
- ELSE
- IndexOf(@&player[],#pos,%&better%)
- IF(#pos > -1)
- IF(%@&inprogress[%#pos%]% = "")
- Push(@&inprogress[],"true")
- ELSE
- IndexOf(@&player[],#pos,%&better%)
- Set(@&inprogress[%#pos%],"true")
- ENDIF
- ENDIF
- Echo(%&channel% &b%@&player[%#pos%]% &ebet &a$%#bet%&e. Spinning... &a[&kE&r&a-&kE&r&a-&kE&r&a])
- #fix = %@#money[%#pos%]% - %#bet%
- Set(@#money[%#pos%],%#fix%)
- Wait(3)
- RANDOM(#result1,1,10)
- IF(#result1 = 1)
- &reel1 = C
- ELSEIF(#result1 = 2)
- &reel1 = C
- ELSEIF(#result1 = 3)
- &reel1 = C
- ELSEIF(#result1 = 4)
- &reel1 = C
- ELSEIF(#result1 = 5)
- &reel1 = B
- ELSEIF(#result1 = 6)
- &reel1 = B
- ELSEIF(#result1 = 7)
- &reel1 = B
- ELSEIF(#result1 = 8)
- &reel1 = A
- ELSEIF(#result1 = 9)
- &reel1 = A
- ELSEIF(#result1 = 10)
- &reel1 = O
- ENDIF
- RANDOM(#result2,1,10)
- IF(#result2 = 1)
- &reel2 = C
- ELSEIF(#result2 = 2)
- &reel2 = C
- ELSEIF(#result2 = 3)
- &reel2 = C
- ELSEIF(#result2 = 4)
- &reel2 = C
- ELSEIF(#result2 = 5)
- &reel2 = B
- ELSEIF(#result2 = 6)
- &reel2 = B
- ELSEIF(#result2 = 7)
- &reel2 = B
- ELSEIF(#result2 = 8)
- &reel2 = A
- ELSEIF(#result2 = 9)
- &reel2 = A
- ELSEIF(#result2 = 10)
- &reel2 = O
- ENDIF
- RANDOM(#result3,1,10)
- IF(#result3 = 1)
- &reel3 = C
- ELSEIF(#result3 = 2)
- &reel3 = C
- ELSEIF(#result3 = 3)
- &reel3 = C
- ELSEIF(#result3 = 4)
- &reel3 = C
- ELSEIF(#result3 = 5)
- &reel3 = B
- ELSEIF(#result3 = 6)
- &reel3 = B
- ELSEIF(#result3 = 7)
- &reel3 = B
- ELSEIF(#result3 = 8)
- &reel3 = A
- ELSEIF(#result3 = 9)
- &reel3 = A
- ELSEIF(#result3 = 10)
- &reel3 = O
- ENDIF
- //Multipler for wins
- &result = %&reel1%%&reel2%%&reel3%
- IF(&result = "CCC")
- #multi = 3
- ELSEIF(&result = "BBB")
- #multi = 8
- ELSEIF(&result = "AAA")
- #multi = 25
- ELSEIF(&result = "OOO")
- #multi = 250
- ELSE
- #multi = 0
- ENDIF
- IF(&reel1 = "A");&reel1 = &dA;ENDIF;IF(&reel2 = "A");&reel2 = &dA;ENDIF;IF(&reel3 = "A");&reel3 = &dA;ENDIF
- IF(&reel1 = "B");&reel1 = &6B;ENDIF;IF(&reel2 = "B");&reel2 = &6B;ENDIF;IF(&reel3 = "B");&reel3 = &6B;ENDIF
- IF(&reel1 = "C");&reel1 = &3C;ENDIF;IF(&reel2 = "C");&reel2 = &3C;ENDIF;IF(&reel3 = "C");&reel3 = &3C;ENDIF
- IF(&reel1 = "O");&reel1 = &5O;ENDIF;IF(&reel2 = "O");&reel2 = &5O;ENDIF;IF(&reel3 = "O");&reel3 = &5O;ENDIF
- IF(#multi = 0)
- IndexOf(@&player[],#pos,%&better%)
- IF(%@#money[%#pos%]% > 0)
- Echo(%&channel% &a[%&reel1%&a-%&reel2%&a-%&reel3%&a] &c%@&player[%#pos%]% didn't win. &eBalance: &a$%@#money[%#pos%]%&e.)
- ELSE
- Echo(%&channel% &a[%&reel1%&a-%&reel2%&a-%&reel3%&a] &c%@&player[%#pos%]% didn't win. &eBalance: &c$%@#money[%#pos%]%&e.)
- ENDIF
- @#totalwon = %@#totalwon% - %#bet%
- Set(@&inprogress[%#pos%],"false")
- ELSE
- #win = %#bet% * %#multi%
- IndexOf(@&player[],#pos,%&better%)
- #fix = %@#money[%#pos%]% + %#win%
- Set(@#money[%#pos%],%#fix%)
- IF(%@#money[%#pos%]% > 0)
- Echo(%&channel% &a[%&reel1%&a-%&reel2%&a-%&reel3%&a] &b%@&player[%#pos%]% &ewon &a$%#win%&e! Balance: &a$%@#money[%#pos%]%&e.)
- ELSE
- Echo(%&channel% &a[%&reel1%&a-%&reel2%&a-%&reel3%&a] &b%@&player[%#pos%]% &ewon &a$%#win%&e! Balance: &c$%@#money[%#pos%]%&e.)
- ENDIF
- @#totalwon = %@#totalwon% + %#win%
- Set(@&inprogress[%#pos%],"false")
- ENDIF
- IF(#bet > 4)
- #total = %#bet% / 5
- IF(#total = 0);#total = 1;ENDIF
- Inc(@#jackpot,%#total%)
- ENDIF
- //Chance of winning the jackpot
- RANDOM(#winjackpot,1,1000)
- IF(#winjackpot = 1)
- IF(#bet > 4)
- IndexOf(@&player[],#pos,%&better%)
- Echo(%&channel% &e&k.&5%@&player[%#pos%]% won the jackpot of &a$%@#jackpot%&5!&e&k.)
- #fix = %@#money[%#pos%]% + %@#jackpot%
- Set(@#money[%#pos%],%#fix%)
- @#jackpot = 0
- ENDIF
- ENDIF
- //Chance of getting the bonus round
- RANDOM(#bchance,1,100)
- IF(#bchance = 1)
- Push(@&bonus[],%&better%)
- Echo(%&channel% &b%@&player[%#pos%]% got a bonus round! Select a box:)
- Echo(%&channel% &b[1] [2] [3])
- IndexOf(@&player[],#pos,%&better%)
- Set(@&inprogress[%#pos%],"true")
- ENDIF
- ENDIF
- ELSE
- Push(@&player[],%&better%)
- IndexOf(@&player[],#pos,%&better%)
- Set(@#money[%#pos%],%@#starting%)
- Echo(%&channel% &b%@&player[%#pos%]% &eis new and has been given &a$%@#money[%#pos%]%&e! Repeat your bet to play.)
- Set(@&inprogress[%#pos%],"false")
- ENDIF
- ENDIF
- ENDIF
- ENDIF
- IFMATCHES(%@&chatclean%,\.reset)
- MATCH(%@&chatclean%,"%@®ex%(.+)",&resetter,1)
- IF(&resetter = %PLAYER%)
- Echo(&aStatus reset.)
- UnSet(@&bonus[])
- UnSet(@&inprogress[])
- Stop
- ENDIF
- ENDIF
- IFMATCHES(%@&chatclean%,"%@®ex%([1-3]{1})",&pick,2)
- MATCH(%@&chatclean%,"%@®ex%([1-3]{1})",&picker,1)
- IndexOf(@&bonus[],#pos,%&picker%)
- IF(&picker = %@&bonus[%#pos%]%)
- Set(#pick,%&pick%)
- RANDOM(#bamount,0,25)
- Set(#bmulti,%#bamount%)
- IndexOf(@&player[],#pos,%&picker%)
- #bamount = %#bamount% * %@#bet[%#pos%]%
- Echo(%&channel% &bBox [%&pick%] opens up and contains...)
- IndexOf(@&bonus[],#pos,%&picker%)
- UnSet(@&bonus[%#pos%])
- Wait(3)
- Echo(%&channel% &b...&a%#bmulti%x &byour current bet! (&a$%#bamount%&b))
- IndexOf(@&player[],#pos,%&picker%)
- #fix = %@#money[%#pos%]% + %#bamount%
- Set(@#money[%#pos%],%#fix%)
- IndexOf(@&player[],#pos,%&picker%)
- Set(@&inprogress[%#pos%],"false")
- ENDIF
- ENDIF
- IFMATCHES(%@&chatclean%,"%@®ex%\.set (.+) ([0-9\-]{1,})",&setname,2)
- MATCH(%@&chatclean%,"%@®ex%\.set (.+) ([0-9\-]{1,})",&setter,1)
- MATCH(%@&chatclean%,"%@®ex%\.set (.+) ([0-9\-]{1,})",&setamount,3)
- IF(&setter = %PLAYER%)
- Set(#setamount,%&setamount%)
- IndexOf(@&player[],#pos,%&setname%)
- IF(#pos > -1)
- PROMPT(&ask,$$?,"Would you like to continue?")
- IFMATCHES(%&ask%,"yes")
- IndexOf(@&player[],#pos,%&setname%)
- Set(@#money[%#pos%],%#setamount%)
- Echo(%&channel% &eSet &b%@&player[%#pos%]%'s &ebalance to &a$%@#money[%#pos%]%&e.)
- ELSE
- Echo(%&channel% &cInvalid attempt.)
- ENDIF
- ELSE
- Echo(%&channel% &c\"%&setname%\" is not in the database.)
- ENDIF
- ENDIF
- ENDIF
- IFMATCHES(%@&chatclean%,"%@®ex%\.money ([a-z0-9\-_]{2,16})$",&player,2)
- IndexOf(@&player[],#pos,%&player%)
- IF(#pos > -1)
- IndexOf(@&player[],#pos,%&player%)
- IF(%@#money[%#pos%]% > 0)
- Echo(%&channel% &b%@&player[%#pos%]% &ehas &a$%@#money[%#pos%]%&e.)
- ELSE
- Echo(%&channel% &b%@&player[%#pos%]% &ehas &c$%@#money[%#pos%]%&e.)
- ENDIF
- ELSE
- Echo(%&channel% &c\"%&player%\" is not in the database.)
- ENDIF
- ENDIF
- IFMATCHES(%@&chatclean%,"%@®ex%\.money$",&player,1)
- IndexOf(@&player[],#pos,%&player%)
- IF(#pos > -1)
- IndexOf(@&player[],#pos,%&player%)
- IF(%@#money[%#pos%]% > 0)
- Echo(%&channel% &b%@&player[%#pos%]% &ehas &a$%@#money[%#pos%]%&e.)
- ELSE
- Echo(%&channel% &b%@&player[%#pos%]% &ehas &c$%@#money[%#pos%]%&e.)
- ENDIF
- ELSE
- Echo(%&channel% &c\"%&player%\" is not in the database.)
- ENDIF
- ENDIF
- IFMATCHES(%@&chatclean%,"%@®ex%\.add (.+) ([0-9\-]{1,})",&addname,2)
- MATCH(%@&chatclean%,"%@®ex%\.add (.+) ([0-9\-]{1,})",&adder,1)
- MATCH(%@&chatclean%,"%@®ex%\.add (.+) ([0-9\-]{1,})",&addamount,3)
- IF(&adder = %PLAYER%)
- Set(#addamount,%&addamount%)
- IndexOf(@&player[],#pos,%&addname%)
- IF(#pos > -1)
- PROMPT(&ask,$$?,"Would you like to continue?")
- IFMATCHES(%&ask%,"yes")
- #total = %@#money[%#pos%]% + %#addamount%
- IndexOf(@&player[],#pos,%&addname%)
- Set(@#money[%#pos%],%#total%)
- Echo(%&channel% &eAdded &a$%#addamount% &eto &b%@&player[%#pos%]%'s &ebalance.)
- ELSE
- Echo(%&channel% &cInvalid attempt.)
- ENDIF
- ELSE
- Echo(%&channel% &c\"%&addname%\" is not in the database.)
- ENDIF
- ENDIF
- ENDIF
- IFMATCHES(%@&chatclean%,"%@®ex%\.addall ([0-9\-]{1,})",&adder,1)
- MATCH(%@&chatclean%,"%@®ex%\.addall ([0-9\-]{1,})",&addamount,2)
- IF(&adder = %PLAYER%)
- Set(#addamount,%&addamount%)
- PROMPT(&ask,$$?,"Would you like to continue?")
- IFMATCHES(%&ask%,"yes")
- FOREACH(@#money[],&amount,#count)
- Set(#amount,%&amount%)
- #total = %#amount% + %#addamount%
- Set(@#money[%#count%],%#total%)
- NEXT
- Echo(%&channel% &eAdded &a$%#addamount% &eto everyone's balance.)
- ELSE
- Echo(%&channel% &cInvalid attempt.)
- ENDIF
- ENDIF
- ENDIF
- IFMATCHES(%@&chatclean%,"%@®ex%\.remall ([0-9\-]{1,})",&remover,1)
- MATCH(%@&chatclean%,"%@®ex%\.remall ([0-9\-]{1,})",&remamount,2)
- IF(&remover = %PLAYER%)
- Set(#remamount,%&remamount%)
- PROMPT(&ask,$$?,"Would you like to continue?")
- IFMATCHES(%&ask%,"yes")
- FOREACH(@#money[],&amount,#count)
- Set(#amount,%&amount%)
- #total = %#amount% - %#remamount%
- Set(@#money[%#count%],%#total%)
- NEXT
- Echo(%&channel% &eRemoved &c$%#remamount% &efrom everyone's balance.)
- ELSE
- Echo(%&channel% &cInvalid attempt.)
- ENDIF
- ENDIF
- ENDIF
- IFMATCHES(%@&chatclean%,"%@®ex%\.rem (.+) ([0-9\-]{1,})",&remname,2)
- MATCH(%@&chatclean%,"%@®ex%\.rem (.+) ([0-9\-]{1,})",&remover,1)
- MATCH(%@&chatclean%,"%@®ex%\.rem (.+) ([0-9\-]{1,})",&remamount,3)
- IF(&remover = %PLAYER%)
- Set(#remamount,%&remamount%)
- IndexOf(@&player[],#pos,%&remname%)
- IF(#pos > -1)
- PROMPT(&ask,$$?,"Would you like to continue?")
- IFMATCHES(%&ask%,"yes")
- #total = %@#money[%#pos%]% - %#remamount%
- IndexOf(@&player[],#pos,%&remname%)
- Set(@#money[%#pos%],%#total%)
- Echo(%&channel% &eRemoved &c$%#remamount% &efrom &b%@&player[%#pos%]%'s &ebalance.)
- ELSE
- Echo(%&channel% &cInvalid attempt.)
- ENDIF
- ELSE
- Echo(%&channel% &c\"%&remname%\" is not in the database.)
- ENDIF
- ENDIF
- ENDIF
- IFMATCHES(%@&chatclean%,\.list)
- MATCH(%@&chatclean%,"%@®ex%(.+)",&lister,1)
- IF(&lister = %PLAYER%)
- #num = -1
- #bcount = 0
- FOREACH(@&player[],&name,#count)
- Inc(#num)
- Inc(#bcount)
- #realnum = #num + 1
- IF(%@#money[%#num%]% > 0)
- Log(&e%#realnum%: &b%@&player[%#num%]% &e- &a$%@#money[%#num%]%)
- ELSE
- Log(&e%#realnum%: &b%@&player[%#num%]% &e- &c$%@#money[%#num%]%)
- ENDIF
- NEXT
- ENDIF
- ENDIF
- IFMATCHES(%@&chatclean%,\.won)
- //IFMATCHES(%@&chatclean%,%&blocked%)
- //ECHO("&cDisabled under certain conditions.")
- //Stop()
- //ENDIF
- IF(@#totalwon > 0)
- Echo(%&channel% &eTotal money won: &a$%@#totalwon%&e.)
- ELSE
- Echo(%&channel% &eTotal money won: &c$%@#totalwon%&e.)
- ENDIF
- ENDIF
- IFMATCHES(%@&chatclean%,"%@®ex%\.jackpot")
- Echo(%&channel% &eJackpot is currently: &a$%@#jackpot%&e.)
- ENDIF
- IFMATCHES(%@&chatclean%,"%@®ex%(\.collect|\.daily)")
- //IFMATCHES(%@&chatclean%,%&blocked%)
- //ECHO("&cDisabled under certain conditions.")
- //Stop()
- //ENDIF
- MATCH(%@&chatclean%,"%@®ex%(.+)",&collector,1)
- IF(%DATE% != %@&bdate%)
- UnSet(@&dailybonus[])
- Set(@&bdate,%DATE%)
- ENDIF
- IndexOf(@&dailybonus[],#pos,%&collector%)
- IF(#pos > -1)
- Echo(%&channel% &cYou have already collected your daily bonus\, %@&dailybonus[%#pos%]%.)
- ELSE
- IndexOf(@&player[],#pos,%&collector%)
- IF(#pos > -1)
- Echo(&a%&collector% has collected their daily bonus of $%@#dailybonus%!)
- Push(@&dailybonus[],%&collector%)
- #fix = %@#money[%#pos%]% + %@#dailybonus%
- Set(@#money[%#pos%],%#fix%)
- ELSE
- Push(@&player[],%&collector%)
- IndexOf(@&player[],#pos,%&collector%)
- Echo(%&channel% &b%@&player[%#pos%]% &eis new and has collected their daily bonus of &a$%@#dailybonus% &eas well-)
- Echo(%&channel% &eas &a$%@#starting% &efor being a new player!)
- Push(@&dailybonus[],%&collector%)
- #total = %@#dailybonus% + %@#starting%
- Set(@#money[%#pos%],%#total%)
- ENDIF
- ENDIF
- ENDIF
- ENDIF
- IFMATCHES(%@&chatclean%,%@®ex%\.help)
- //IFMATCHES(%@&chatclean%,%&blocked%)
- //ECHO("&cDisabled under certain conditions.")
- //Stop()
- // ENDIF
- MATCH(%@&chatclean%,"%@®ex%(.+)$",&helpname,1)
- IF(&helpname = %PLAYER%)
- Log(&f(bet/jackpot/money/collect/set/add/rem/reset/list/color/won))
- ELSE
- Echo(%&channel% &f(bet/jackpot/money/collect/won))
- ENDIF
- ENDIF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement