Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:JOIN:#bradmasta: {
- if ($nick == $me) {
- /raw CAP REQ :twitch.tv/membership
- /raw CAP REQ :twitch.tv/commands
- }
- }
- on *:TEXT:!songlist:#: { msg $chan You can find the song list here: http://pastebin.com/hiRqf87J or below the stream (In my bio info if on mobile) :) }
- on *:TEXT:!songrequest:#: { msg $chan To request a song, simply find the list of songs either down below, by typing in !songlist, or swipe from the right to the left if on mobile, and type in !as [x] replacing [x] with the number you'd like me to play! DO NOT INCLUDE THE PARENTHESIS CONTAINING THE NUMBERS! Also, you may only make one song request every 5 minutes, so be wise about your choice! }
- on *:text:!Allysonlove:#: { msg $chan <3 Brad loves Allyson very much :) <3 }
- on *:text:!bc:#: { msg $chan To get all the information on the currency system, please go here!: http://pastebin.com/0HtSFzjw }
- on *:text:!dd:#: { msg $chan Want to bet your bcoins against another person in the channel? simply type in !D [your opponents name] [the amount you want to bet] Example: !d bradmasta_bot 2000. For full rules, go here! http://pastebin.com/XWcASfh6 }
- on *:TEXT:!Commands:#: { msg $chan Link to an explanation of the commands: http://pastebin.com/V8K8G6fJ My current commands are !commands, !songsrequest, !bc, !bcoins, !bn, !bug, !hoa, !qs, !songlist, and !top5. Slots/dice duel: !dd, !slots, !items, !jackpot, !mega, and !stats. Random fun ones: !allysonlove, !matt, !exo, !brandon, !cmon, !rigged and !solo. Hype commands: !1k, !2k, !3k, and !fc. If you're a mod: !cl, !ctq, and !r [x] (Mods: ask me or wait for permission to use these, thanks!) }
- on *:text:!Matt:#: { msg $chan EXCUUUUUUSE ME! }
- on *:text:!noice:#: { msg $chan NOICE! Kreygasm PogChamp }
- on *:text:THANK YOU:#: { msg $chan NO THANK YOU! }
- on *:text:!Exo:#: { msg $chan That's just utrageous! }
- on *:text:!Syd:#: { msg $chan BabyRage NEVER LUCKY BabyRage }
- on *:text:Thx:#: { msg $chan NO THANK YOU! }
- on *:text:Thanx:#: { msg $chan NO THANK YOU! }
- on *:text:thanks!:#: { msg $chan NO THANK YOU! }
- on *:text:ty:#: { msg $chan NO THANK YOU! }
- on *:text:THANKs:#: { msg $chan NO THANK YOU! }
- on *:text:!Kristen:#: { msg $chan KRISTEN IS A HAX0R }
- on *:text:!question:#: { msg $chan YES SIR?? }
- on *:text:Can you play rev death?:#: {
- var %regex_text = Queued Songs:
- var %songID = $readini(%songfile, 122, name)
- var %Ident = $readini(%songfile, 122, Identifier)
- var %artistID = $readini(%songfile, 122, artist)
- var %songstring = %ident %songID %artistID
- var %file_search = C:\Users\Brad\Desktop\Songlist\Songqueue.txt
- var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songs.txt
- var %read_text = $read(%file_search,r,%regex_text)
- var %read_text3 $read(%file_search2,r,%songstring)
- var %songnick $+(16, $nick)
- if (%read_text3) {
- msg $chan I WOULD LOVE TO ADD THIS SONG BUT IT'S ALREADY ON THE QUEUE! YOU HAVE A GOOD STREAM THE TWITCH WAY!
- }
- elseif (%read_text) && ($timer(%songnick) == $null) {
- TIMER [ $+ [ %songnick ] ] 1 10000 msg $chan $nick you may now add rev death if you ask "can you play rev death?" (no quotes)! :)
- write C:\Users\Brad\Desktop\Songlist\Songs.txt %text %ident %songID %artistID
- write $+(-l,$readn) %file_search $+(%read_text, $chr(32), %text %ident %songID , $chr(44))
- msg $chan ABSOLUTELY SIR! REV DEATH HAS BEEN ADDED TO THE LIST! HAVE A GOOD STREAM THE TWITCH WAY!
- }
- else {
- msg $chan you must wait $timer(%songnick).secs seconds before you add Matt's favorite song to the list!
- }
- }
- on *:text:!brandon:#: {
- var %regex_text = Queued Songs:
- var %songID = $readini(%songfile, 39, name)
- var %Ident = $readini(%songfile, 39, Identifier)
- var %artistID = $readini(%songfile, 39, artist)
- var %songstring = %Ident %songID %artistID
- var %file_search = C:\Users\Brad\Desktop\Songlist\Songqueue.txt
- var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songs.txt
- var %read_text = $read(%file_search,r,%regex_text)
- var %read_text3 $read(%file_search2,r,%songstring)
- var %songnick $+(25, $nick)
- if (%read_text3) {
- msg $chan B_rocks favorite song is already on the queue!
- }
- elseif (%read_text) && ($timer(%songnick) == $null) {
- TIMER [ $+ [ %songnick ] ] 1 10000 msg $chan $nick you may now add B_rocks favorite song if you type in !brock :)
- write C:\Users\Brad\Desktop\Songlist\Songs.txt %text %ident %songID %artistID
- write $+(-l,$readn) %file_search $+(%read_text, $chr(32), %text %ident %songID , $chr(44))
- msg $chan B_rocks favorite song has been added to the list!
- }
- else {
- msg $chan you must wait $timer(%songnick).secs seconds before you add B_rocks favorite song to the list!
- }
- }
- on *:text:!solo:#: { msg $chan Solo Insanity Incoming! PogChamp }
- on *:text:!cmon:#: { msg $chan Really Brad? FailFish }
- on *:text:!fc:#: { msg $chan FC HYPE! PogChamp }
- on *:text:!1k:#: { msg $chan 1k Notestreak HYPE! PogChamp }
- on *:text:!2k:#: { msg $chan 2k Notestreak HYPE!! Kreygasm }
- on *:text:!3k:#: { msg $chan 3k Notestreak HYPE!!! PogChamp Kreygasm }
- on *:text:Kappa:#: { msg $chan Kappa Kappa Doopian is the king of Kappa counting! }
- on 2:TEXT:!starttimers:#: {
- starthelpsong
- startfollow
- startcommands
- startdiceduel
- startwelcome
- msg $chan All timers have been started.
- }
- alias -l starthelpsong {
- .timer.timerhelp7 0 1000 msg $chan To request a song, simply find the list of songs either down below, or swipe from the right to the left if on mobile, and type in !as [x] replacing [x] with the number you'd like me to play! DO NOT INCLUDE THE PARENTHESIS CONTAINING THE NUMBERS!
- }
- alias -l startfollow {
- .timer.timerhelp1 0 1300 msg $chan If you're enjoying the stream, please be sure to follow! :)
- }
- alias -l startcommands {
- .timer.timerhelp4 0 1600 msg $chan To see my list of commands, simply type "!commands" :)
- }
- alias -l startdiceduel {
- .timer.timerhelp20 0 1900 msg $chan Want to bet your bcoins against another person in the channel? simply type in !D [your opponents name] [the amount you want to bet] Example: !d bradmasta_bot 2000. For full rules, go here! http://pastebin.com/XWcASfh6
- }
- alias -l startwelcome {
- .timer.timerhelp50 0 1000 msg $chan Hello guys! Welcome to the channel, home of the Guitar Hero Casino! Here, we've got music, fun gambling games, and a great community of people. So, kick back, relax, and have some fun! :D
- }
- on *:text:!as*:#: {
- var %regex_text = Queued Songs:
- var %file_search = C:\Users\Brad\Desktop\Songlist\Songqueue.txt
- var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songs.txt
- var %read_text2 = $read(%file_search,r,%regex_text)
- var %songID = $readini(%songfile, $2, name)
- var %Ident = $readini(%songfile, $2, Identifier)
- var %artistID = $readini(%songfile, $2, artist)
- var %command = !as
- var %songstring = %ident %songID %artistID
- var %read_text $readini(%songfile, $2, name)
- var %read_text3 $read(%file_search2,r,%songstring)
- var %songnick $+(20, $nick)
- if ($1 == %command) && (%read_text3) {
- msg $chan This song already exists on the queue!
- }
- elseif ($1 == %command) && (%read_text) && (read_text2) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) < 15) && ($timer(%songnick) == $null) {
- write C:\Users\Brad\Desktop\Songlist\Songs.txt %songstring
- write $+(-l,$readn) %file_search $+(%read_text2, $chr(32), %text %ident %songID $chr(44))
- msg $chan $nick %songID has been added to the list! Thank you! :)
- TIMER [ $+ [ %songnick ] ] 1 300 msg $chan $nick you may now add another song! :)
- }
- elseif ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 15) {
- msg $chan Only 15 songs can be added to the list at one time! Please wait until songs have been played, and the list is reduced, Thanks!
- }
- elseif ($1 == %command) && (%read_text == $null) {
- msg $chan That doesn't exist on my list!
- }
- elseif ($1 != %command) {
- msg $chan That isn't the correct format! Make sure to type in the command in the correct format of !as [x] where [x] is the number.
- }
- else {
- msg $chan You must wait $timer(%songnick).secs seconds before you can add another song!
- }
- }
- on 2:text:!r*:#: {
- var %song $2
- %song = $readini(%songfile, $2, name)
- var %songID = $readini(%songfile, $2, name)
- var %Ident = $readini(%songfile, $2, Identifier)
- var %file_search = C:\Users\Brad\Desktop\Songlist\Songs.txt
- var %points = $readini(%pointsfile, $findIDID($1), name)
- var %command = !r
- var %artistID = $readini(%songfile, $2, artist)
- var %songstring = %ident %songID %artistID
- %symbols = ,
- var %read_text $read(C:\Users\Brad\Desktop\Songlist\Songqueue.txt)
- var %read_text2 $read(C:\Users\Brad\Desktop\Songlist\Songs.txt,n,1)
- var %read_text5 $read(C:\Users\Brad\Desktop\Songlist\Songs.txt,n,2)
- var %read_text3 $read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1)
- var %read_text4 $read(%file_Search,r,%songstring)
- var %delete $remove(%read_text, %song, %ident, %symbols )
- if ($1 == %command) && (%read_text4 == $null) {
- msg $chan That song is either not on the queue or isn't in the first spot! Also make sure to type in the command in the correct format of !r [x] where [x] is the number.
- }
- elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) = 0) && ($lines(%instantqueue) = 0) && ($lines(C:\Users\Brad\Desktop\Songlist\Songqueue.txt) = 0) {
- msg $chan There are no songs on the queue.
- }
- elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) > 1) && (%read_text3 = %songstring) {
- write -c C:\Users\Brad\Desktop\Songlist\Songqueue.txt
- write -dl1 C:\Users\Brad\Desktop\Songlist\instantqueue.txt
- write -dl1 C:\Users\Brad\Desktop\Songlist\Songs.txt
- write C:\Users\Brad\Desktop\Songlist\Songqueue.txt %delete
- msg $chan removing the top song off the queue.
- }
- elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) = 1) && (%read_text3 = %songstring) {
- write -c C:\Users\Brad\Desktop\Songlist\Songqueue.txt
- write -dl1 C:\Users\Brad\Desktop\Songlist\instantqueue.txt
- write -dl1 C:\Users\Brad\Desktop\Songlist\Songs.txt
- write C:\Users\Brad\Desktop\Songlist\Songqueue.txt %delete
- msg $chan removing the top song off the queue. The current song now is $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1)
- }
- elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) > 1) && (%read_text2 == %songstring) {
- write -c C:\Users\Brad\Desktop\Songlist\Songqueue.txt
- write -dl1 C:\Users\Brad\Desktop\Songlist\Songs.txt
- write C:\Users\Brad\Desktop\Songlist\Songqueue.txt %delete
- msg $chan removing the top song off the queue. The current song now is $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1)
- }
- elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) == 1) && (%read_text2 == %songstring) {
- write -dl1 C:\Users\Brad\Desktop\Songlist\Songs.txt
- write -c C:\Users\Brad\Desktop\Songlist\Songqueue.txt
- write C:\Users\Brad\Desktop\Songlist\Songqueue.txt %delete
- msg $chan removing the top song off the queue. There are no more songs on the queue!
- }
- elseif ($1 != %command) {
- msg $chan That isn't formatted correctly! Make sure to type in the command in the correct format of !r [x] where [x] is the number.
- }
- else {
- msg $chan Song isn't in first spot!
- }
- }
- on *:text:!qs:#: {
- if ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) >= 2) && ($read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1) != $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1)) {
- msg $chan The current song is $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1) and the next song is $read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1)
- }
- elseif ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) >= 2) && ($read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1) == $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1)) {
- msg $chan The current song is $read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1) and the next song is $read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,2)
- }
- elseif ($lines(%instantqueue) == 1) && ($read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1) != $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1)) {
- msg $chan The current song is $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1) and the next song is $read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1)
- }
- elseif ($lines(%instantqueue) == 1) && ($read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1) == $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1)) {
- msg $chan The current song is $read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1) and the next song is $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,2)
- }
- elseif ($lines(%instantqueue) == 0) && ($read(C:\Users\Brad\Desktop\Songlist\Songqueue.txt,n,1) == Queued Songs:) {
- msg $chan There are no songs on the queue.
- }
- else (!$play(#)) {
- .play # C:\Users\Brad\Desktop\Songlist\Songqueue.txt
- }
- }
- on 2:text:!cl:#: {
- msg $chan Clearing list..
- write -c C:\Users\Brad\Desktop\Songlist\Songs.txt
- }
- on 2:text:!ctq:#: {
- msg $chan Clearing the queue..
- write -c C:\Users\Brad\Desktop\Songlist\Songqueue.txt
- write C:\Users\Brad\Desktop\Songlist\Songqueue.txt %text Queued Songs:
- }
- on 2:text:!cis:#: {
- msg $chan Clearing instant song queue..
- write -c C:\Users\Brad\Desktop\Songlist\instantqueue.txt
- }
- on *:text:!cs:#: {
- if ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) == 0) {
- msg $chan There are no songs currently on the queue.
- }
- if ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) >= 2) && ($read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1) != $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1)) {
- msg $chan The current song is $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1) and the next song is $read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1)
- }
- elseif ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) >= 2) && ($read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1) == $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1)) {
- msg $chan The current song is $read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1) and the next song is $read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,2)
- }
- elseif ($lines(%instantqueue) == 1) && ($read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1) != $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1)) {
- msg $chan The current song is $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1) and the next song is $read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1)
- }
- elseif ($lines(%instantqueue) == 1) && ($read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1) == $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,1)) {
- msg $chan The current song is $read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,n,1) and the next song is $read(C:\Users\Brad\Desktop\Songlist\songs.txt,n,2)
- }
- elseif ($lines(%instantqueue) = 0) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) >= 2) {
- msg $chan The current song is $read(C:\Users\Brad\Desktop\Songlist\Songs.txt,n,1) and the next song will be $read(C:\Users\Brad\Desktop\Songlist\Songs.txt,n,2)
- }
- elseif ($lines(%instantqueue) = 0) && ($lines(C:\Users\Brad\Desktop\Songlist\Songs.txt) = 1) {
- msg $chan The current song is $read(C:\Users\Brad\Desktop\Songlist\Songs.txt,n,1)
- }
- }
- alias -l findIDID {
- var %searchName = $1
- var %i = 1
- while (%i <= %pointsID) {
- var %name = $readini(%pointsfile, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findrequestor {
- var %searchName = $readini(%pointsfile, %pointsID, name)
- var %i = 1
- while (%i <= %pointsID2) {
- var %name = $readini(%pointsfile2, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- on *:text:!testing*:#bradmasta: {
- msg $chan test
- PRIVMSG #jtv :.w bradmasta Hi
- }
- ----------------------------------------------------------------------------------------------------------
- on *:text:!join:#: {
- var %songnick $+(4, $nick)
- IF ($timer(%songnick) == $null) {
- addTimerPoints $nick
- addTimerPoints2 $nick
- $+(timer4, $nick) 1 3600 msg $chan $nick you may now type in !join again to earn 1800 bcoins!
- msg $chan Thank you typing in !join! You can type this in once per hour to earn 1800 bcoins! :) If you're new, you can now earn bcoins through the in channel games!
- }
- else {
- msg $chan $nick you must wait $timer(%songnick).secs seconds before you can type in !join D:
- }
- }
- // This alias adds timer points to a user every so often. It looks for them in the %rosterFile. If they are not there,
- // it adds them to the list then starts adding their points.
- alias -l addTimerPoints {
- var %ID = $findID(%pointsfile, %pointsID, $1)
- if (%ID == 0) {
- $addUser($1)
- %ID = $findID(%pointsfile, %pointsID, $1)
- }
- var %currentPoints = $readini(%pointsfile, %ID, points)
- writeini -n %pointsfile %ID points $calc(%currentPoints + 1800)
- }
- alias -l addTimerPoints2 {
- var %ID2 = $findIDIDIDID(%pointsfile2, %pointsID2, $1)
- if (%ID2 == 0) {
- $addUser2($1)
- %ID2 = $findIDIDIDID(%pointsfile2, %pointsID2, $1)
- }
- var %currentPoints2 = $readini(%pointsfile2, %ID2, points)
- writeini -n %pointsfile2 %ID2 points $calc(%currentPoints2 + 1800)
- }
- // This alias adds someone new to the points system. Note that it only adds [name] and [points] so if you have any
- // other items, then you should include those in additional writeini statements as well.
- alias -l addUser {
- writeini -n %pointsFile $calc(%pointsID + 1) name $1
- writeini -n %pointsFile $calc(%pointsID + 1) points 1800
- inc %pointsID
- }
- alias -l addUser2 {
- writeini -n %pointsFile2 $calc(%pointsID2 + 1) name $1
- writeini -n %pointsFile2 $calc(%pointsID2 + 1) points 1800
- inc %pointsID2
- }
- alias -l addUser3 {
- writeini -n %megacoins $findcoins name $1
- writeini -n %megacoins $findcoins coin1
- inc %megaID
- }
- alias -l addUser4 {
- writeini -n %megacoins2 $findcoins name $1
- writeini -n %megacoins2 $findcoins coin2
- inc %megaID
- }
- alias -l addUser5 {
- writeini -n %megacoins3 $findcoins name $1
- writeini -n %megacoins3 $findcoins coin3
- inc %megaID
- }
- alias -l addUser6 {
- writeini -n %megacoins4 $findcoins name $1
- writeini -n %megacoins4 $findcoins coin4
- inc %megaID
- }
- alias -l addUser7 {
- writeini -n %megacoins5 $findcoins name $1
- writeini -n %megacoins5 $findcoins coin5
- inc %megaID
- }
- alias -l addUser8 {
- writeini -n %megacoins6 $findcoins name $1
- writeini -n %megacoins6 $findcoins coin6
- inc %megaID
- }
- on *:text:!bcoins:#: {
- var %points = $readini(%pointsfile, $findIDID($nick), points)
- var %findme = $readini(%pointsfile, $findIDID($nick), name)
- var %points2 = $readini(%pointsfile2, $findIDIDIDIDID($nick), points)
- var %currentPoints = $readini(%pointsfile, $findIDID(%name), points)
- var %ID = $findIDIDID(%Hallofawesome, %HallofawesomeID, $1)
- if (%findme == $null) {
- msg $chan $nick you haven't started earning bcoins in this channel! Type in !join to do so :D
- }
- elseIF (%points2 >= 2000000) && (%ID == 0) {
- $addHall($nick)
- msg $chan $nick has %points bcoins and has earned %points2 all time! $nick has done it! $nick has been added to the Hall Of Awesome for achieving over 2,000,000 bcoins all time! :D
- }
- elseif (%points2 >= 2000000) {
- msg $chan $nick has %points bcoins and has earned %points2 all time! $nick is a member of the Hall of Awesome, a list only reserved for the most dedicated viewers and supporters of bradmasta! :)
- }
- elseif (%points2 isnum 1-99999) {
- msg $chan $nick has %points bcoins and has earned %points2 bcoins all time!
- }
- elseif (%points2 isnum 100000-249999) {
- msg $chan $nick has %points bcoins and has earned %points2 bcoins all time! $nick enjoys Bradmasta's stream!
- }
- elseif (%points2 isnum 250000-499999) {
- msg $chan $nick has %points bcoins and has earned %points2 bcoins all time! $nick has been with the channel for some time now!
- }
- elseif (%points2 isnum 500000-999999) {
- msg $chan $nick has %points bcoins and has earned %points2 bcoins all time! $nick is a high roller! PogChamp
- }
- elseif (%points2 isnum 1000000-1999999) {
- msg $chan $nick has %points bcoins and has earned %points2 bcoins all time! $nick has an impressive amount of bcoins!
- }
- elseif (%points <= 0) {
- msg $chan $nick You have no bcoins! But has earned %points2 bcoins all time!
- }
- else {
- msg $chan $nick hasn't started earning bcoins yet! Check again in a minute :)
- }
- }
- alias -l addHall {
- writeini -n %Hallofawesome $calc(%HallofawesomeID + 1) name $1
- inc %HallofawesomeID
- }
- on *:text:!bn:#: {
- var %currentPoints = $readini(%pointsfile2, $findIDIDIDIDID($nick), points)
- var %pointsneeded = $calc(2000000 - %currentPoints)
- if (%currentPoints isnum 1-1999999) {
- msg $chan $nick You need %pointsneeded Bcoins to reach the Hall of Awesome!
- }
- elseif (%currentPoints >= 2000000) {
- msg $chan $nick You have %currentpoints bcoins, which is enough to enter the Hall of Awesome! Simply type into chat !bcoins and you'll be added! :D
- }
- }
- on *:text:!mega:#: {
- var %coins1 = $readini(%megacoins, $findcoins($nick), coin1)
- var %coins2 = $readini(%megacoins2, $findcoins2($nick), coin2)
- var %coins3 = $readini(%megacoins3, $findcoins3($nick), coin3)
- var %coins4 = $readini(%megacoins4, $findcoins4($nick), coin4)
- var %coins5 = $readini(%megacoins5, $findcoins5($nick), coin5)
- var %coins6 = $readini(%megacoins6, $findcoins6($nick), coin6)
- var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID($nick), points)
- var %newPoints2 = $calc(%currentPoints2 + 1000000)
- var %currentPoints = $readini(%pointsfile, $findIDID($nick), points)
- var %newPoints = $calc(%currentPoints + 1000000)
- var %ID = $findallmega(%allmega, %allmegaID, $nick)
- if (%coins1 != $null) && (%coins2 != $null) && (%coins3 != $null) && (%coins4 != $null) && (%coins5 != $null) && (%coins6 != $null) && (%ID == 0) {
- addmeganame
- writeini -n %pointsfile $findIDID($nick) points %newpoints
- writeini -n %pointsfile2 $findIDIDIDIDID($nick) points %newpoints2
- msg $chan $nick has the megacoins %coins1 , %coins2 , %coins3 , %coins4 , %coins5 , and %coins6 ! By obtaining all 6 megacoins $nick has just won 1,000,000 bcoins!! Kreygasm PogChamp
- } // 123456 missing none
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins3 != $null) && (%coins4 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has the megacoins %coins1 , %coins2 , %coins3 , %coins4 , %coins5 , and %coins6 ! $nick has managed to collect all 6 megacoins!
- } // 123456 missing none
- elseif (%coins1 != $null) && (%coins3 != $null) && (%coins4 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 , %coins3 , %coins4 , %coins5 , and %coins6 megacoins! $nick needs 1 more to win 1,000,000 bcoins!
- } // 13456 missing 2
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins4 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 , %coins2 , %coins4 , %coins5 , and %coins6 megacoins! $nick needs 1 more to win 1,000,000 bcoins!
- } // 12456 missing 3
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins3 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 , %coins2 , %coins3 , %coins5 , and %coins6 megacoins! $nick needs 1 more to win 1,000,000 bcoins!
- } // 12356 missing 4
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins3 != $null) && (%coins4 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 , %coins2 , %coins3 , %coins4 , and %coins6 megacoins! $nick needs 1 more to win 1,000,000 bcoins!
- } // 12346 missing 5
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins3 != $null) && (%coins4 != $null) && (%coins5 != $null) {
- msg $chan $nick has %coins1 , %coins2 , %coins3 , %coins4 , and %coins5 megacoins! $nick needs 1 more to win 1,000,000 bcoins!
- } // 12345 missing 6
- elseif (%coins1 != $null) && (%coins4 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 , %coins4 , %coins5 , and %coins6 megacoins! $nick needs 2 more to win 1,000,000 bcoins!
- } // 1456 missing 2 and 3
- elseif (%coins1 != $null) && (%coins3 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 , %coins3 , %coins5 , and %coins6 megacoins! $nick needs 2 more to win 1,000,000 bcoins!
- } // 1356 missing 2 and 4
- elseif (%coins1 != $null) && (%coins3 != $null) && (%coins4 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 , %coins3 , %coins4 , and %coins6 megacoins! $nick needs 2 more to win 1,000,000 bcoins!
- } // 1346 missing 2 and 5
- elseif (%coins1 != $null) && (%coins3 != $null) && (%coins4 != $null) && (%coins5 != $null) {
- msg $chan $nick has %coins1 , %coins3 , %coins4 , and %coins5 megacoins! $nick needs 2 more to win 1,000,000 bcoins!
- } // 1345 missing 2 and 6
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 , %coins2 , %coins5 , and %coins6 megacoins! $nick needs 2 more to win 1,000,000 bcoins!
- } // 1256 missing 3 and 4
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins4 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 , %coins2 , %coins4 , and %coins6 megacoins! $nick needs 2 more to win 1,000,000 bcoins!
- } // 1246 missing 3 and 5
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins4 != $null) && (%coins5 != $null) {
- msg $chan $nick has %coins1 , %coins2 , %coins4 , and %coins5 megacoins! $nick needs 2 more to win 1,000,000 bcoins!
- } // 1245 missing 3 and 6
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins3 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 , %coins2 , %coins3 , and %coins6 megacoins! $nick needs 2 more to win 1,000,000 bcoins!
- } // 1236 missing 4 and 5
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins3 != $null) && (%coins5 != $null) {
- msg $chan $nick has %coins1 , %coins2 , %coins3 , and %coins5 megacoins! $nick needs 2 more to win 1,000,000 bcoins!
- } // 1235 missing 4 and 6
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins3 != $null) && (%coins4 != $null) {
- msg $chan $nick has %coins1 , %coins2 , %coins3 , and %coins4 megacoins! $nick needs 2 more to win 1,000,000 bcoins!
- } // 1234 missing 5 and 6
- elseif (%coins1 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 , %coins5 , and %coins6 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 156 missing 2, 3, and 4
- elseif (%coins1 != $null) && (%coins4 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 , %coins4 , and %coins6 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 146 missing 2, 3, and 5
- elseif (%coins1 != $null) && (%coins4 != $null) && (%coins5 != $null) {
- msg $chan $nick has %coins1 , %coins4 , and %coins5 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 145 missing 2, 3, and 6
- elseif (%coins1 != $null) && (%coins3 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 , %coins3 , and %coins6 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 136 missing 2, 4, and 5
- elseif (%coins1 != $null) && (%coins3 != $null) && (%coins5 != $null) {
- msg $chan $nick has %coins1 , %coins3 , and %coins5 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 135 missing 2, 4, and 6
- elseif (%coins1 != $null) && (%coins3 != $null) && (%coins4 != $null) {
- msg $chan $nick has %coins1 , %coins3 , and %coins4 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 134 missing 2, 5, and 6
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 , %coins2 , and %coins6 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 126 missing 3, 4, and 5
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins5 != $null) {
- msg $chan $nick has %coins1 , %coins2 , and %coins5 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 125 missing 3, 4, and 6
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins4 != $null) {
- msg $chan $nick has %coins1 , %coins2 , and %coins4 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 124 missing 3, 5, and 6
- elseif (%coins1 != $null) && (%coins2 != $null) && (%coins3 != $null) {
- msg $chan $nick has %coins1 , %coins2 , and %coins3 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 123 missing 4, 5, and 6
- elseif (%coins1 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins1 and %coins6 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 16 missing 2, 3, 4, and 5
- elseif (%coins1 != $null) && (%coins5 != $null) {
- msg $chan $nick has %coins1 and %coins5 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 15 missing 2, 3, 4, and 6
- elseif (%coins1 != $null) && (%coins4 != $null) {
- msg $chan $nick has %coins1 and %coins4 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 14 missing 2, 3, 5, and 6
- elseif (%coins1 != $null) && (%coins3 != $null) {
- msg $chan $nick has %coins1 and %coins3 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 13 missing 2, 4, 5, and 6
- elseif (%coins1 != $null) && (%coins2 != $null) {
- msg $chan $nick has %coins1 and %coins2 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 12 missing 3, 4, 5, and 6
- elseif (%coins1 != $null) {
- msg $chan $nick has the megacoin %coins1 ! $nick needs 5 more to win 1,000,000 bcoins!
- } // 1 missing 2, 3, 4, 5, and 6
- elseif (%coins2 != $null) && (%coins3 != $null) && (%coins4 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins2 , %coins3, %coins4 , %coins5 , and %coins6 megacoins! $nick needs 1 more to win 1,000,000 bcoins!
- } // 23456 missing none
- elseif (%coins2 != $null) && (%coins4 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins2 , %coins4 , %coins5 , and %coins6 megacoins! $nick needs 2 more to win 1,000,000 bcoins!
- } // 2456 missing 3
- elseif (%coins2 != $null) && (%coins3 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins2 , %coins3, %coins5 , and %coins6 megacoins! $nick needs 2 more to win 1,000,000 bcoins!
- } // 2356 missing 4
- elseif (%coins2 != $null) && (%coins3 != $null) && (%coins4 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins2 , %coins3, %coins4 , and %coins6 megacoins! $nick needs 2 more to win 1,000,000 bcoins!
- } // 2346 missing 5
- elseif (%coins2 != $null) && (%coins3 != $null) && (%coins4 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins2 , %coins3, %coins4 , and %coins5 megacoins! $nick needs 2 more to win 1,000,000 bcoins!
- } // 2345 missing 6
- elseif (%coins2 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins2 , %coins5 , and %coins6 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 256 missing 3 and 4
- elseif (%coins2 != $null) && (%coins4 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins2 , %coins4 , and %coins6 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 246 missing 3 and 5
- elseif (%coins2 != $null) && (%coins4 != $null) && (%coins5 != $null) {
- msg $chan $nick has %coins2 , %coins4 , and %coins5 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 245 missing 3 and 6
- elseif (%coins2 != $null) && (%coins3 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins2 , %coins3, and %coins6 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 236 missing 4 and 5
- elseif (%coins2 != $null) && (%coins3 != $null) && (%coins5 != $null) {
- msg $chan $nick has %coins2 , %coins3, and %coins5 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 235 missing 4 and 6
- elseif (%coins2 != $null) && (%coins3 != $null) && (%coins4 != $null) {
- msg $chan $nick has %coins2 , %coins3, and %coins4 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 234 missing 5 and 6
- elseif (%coins2 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins2 and %coins6 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 26 missing 3, 4, and 5
- elseif (%coins2 != $null) && (%coins5 != $null) {
- msg $chan $nick has %coins2 and %coins 5megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 25 missing 3, 4, and 6
- elseif (%coins2 != $null) && (%coins4 != $null) {
- msg $chan $nick has %coins2 and %coins4 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 24 missing 3, 5, and 6
- elseif (%coins2 != $null) && (%coins3 != $null) {
- msg $chan $nick has %coins2 and %coins3 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 23 missing 4, 5, and 6
- elseif (%coins2 != $null) {
- msg $chan $nick has the megacoin %coins2 ! $nick needs 5 more to win 1,000,000 bcoins!
- } // 2 missing 3, 4, 5, and 6
- elseif (%coins3 != $null) && (%coins4 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins3 , %coins5 , and %coins6 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 3456 missing none
- elseif (%coins3 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins3 , %coins5 , and %coins6 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 356 missing 4
- elseif (%coins3 != $null) && (%coins4 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins3 , %coins4 , and %coins6 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 346 missing 5
- elseif (%coins3 != $null) && (%coins4 != $null) && (%coins5 != $null) {
- msg $chan $nick has %coins3 , %coins4 , and %coins5 megacoins! $nick needs 3 more to win 1,000,000 bcoins!
- } // 345 missing 6
- elseif (%coins3 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins3 and %coins6 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 36 missing 4 and 5
- elseif (%coins3 != $null) && (%coins5 != $null) {
- msg $chan $nick has %coins3 and %coins5 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 35 missing 4 and 6
- elseif (%coins3 != $null) && (%coins4 != $null) {
- msg $chan $nick has %coins3 and %coins4 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 34 missing 5 and 6
- elseif (%coins3 != $null) {
- msg $chan $nick has the megacoin %coins3 ! $nick needs 5 more to win 1,000,000 bcoins!
- } // 3 missing 4, 5, and 6
- elseif (%coins4 != $null) && (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins4 and %coins6 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 456 missing none
- elseif (%coins4 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins4 and %coins6 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 46 missing 5
- elseif (%coins4 != $null) && (%coins5 != $null) {
- msg $chan $nick has %coins4 and %coins5 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 45 missing 6
- elseif (%coins4 != $null) {
- msg $chan $nick has the megacoin %coins4 ! $nick needs 5 more to win 1,000,000 bcoins!
- } // 4 missing 5 and 6
- elseif (%coins5 != $null) && (%coins6 != $null) {
- msg $chan $nick has %coins5 and %coins6 megacoins! $nick needs 4 more to win 1,000,000 bcoins!
- } // 56 missing none
- elseif (%coins5 != $null) {
- msg $chan $nick has the megacoin %coins5 ! $nick needs 5 more to win 1,000,000 bcoins!
- } // 5 missing 6
- elseif (%coins6 != $null) {
- msg $chan $nick has the megacoin %coins6 ! $nick needs 5 more to win 1,000,000 bcoins!
- } // 6 missing none
- else {
- msg $chan $nick doesn't have any mega coins! Keep playing the slots to win 1! If you obtain all 6, you win 1,000,000 bcoins!
- }
- }
- alias -l addmeganame {
- var %ID = $findallmega(%allmega, %allmegaID, $nick)
- if (%ID == 0) {
- $addallmega($nick)
- %ID = $findallmega(%allmega, %allmegaID, $nick)
- }
- }
- alias -l addallmega {
- writeini -n %allmega $calc(%allmegaID + 1) name $nick
- inc %allmegaID
- }
- on *:text:!Hoa:#: {
- msg $chan No one is in the Hall Of Awesome (yet!). To get in, type in !bcoins once you've reached 2,000,000 bcoins!
- }
- // Format: !addPoints [name] [points]
- on 2:text:!ab*:#: {
- var %name = $2
- var %points = $3
- var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%name), points)
- var %newPoints2 = $calc(%currentPoints2 + %points)
- var %currentPoints = $readini(%pointsfile, $findIDID(%name), points)
- var %newPoints = $calc(%currentPoints + %points)
- writeini -n %pointsfile $findIDID(%name) points %newPoints
- writeini -n %pointsfile2 $findIDIDIDIDID(%name) points %newPoints2
- msg $chan %points bcoins were added to %name
- }
- on 2:text:!au*:#: {
- writeini -n %pointsFile $calc(%pointsID + 1) name $2
- writeini -n %pointsFile $calc(%pointsID + 1) points 2000
- writeini -n %pointsFile2 $calc(%pointsID2 + 1) name $2
- writeini -n %pointsFile2 $calc(%pointsID2 + 1) points 2000
- inc %pointsID
- inc %pointsID2
- msg $chan $2 has been added to the bcoins list! :)
- }
- alias -l adduserspoints {
- var %ID = $findID(%pointsfile, %pointsID, $2)
- if (%ID == 0) {
- $addUser($2)
- %ID = $findID(%pointsfile, %pointsID, $2)
- }
- var %currentPoints = $readini(%pointsfile, %ID, points)
- writeini -n %pointsfile %ID points $calc(%currentPoints + 5)
- }
- alias -l adduserspoints2 {
- var %ID2 = $findIDIDIDID(%pointsfile2, %pointsID2, $1)
- if (%ID2 == 0) {
- $addUser2($2)
- %ID2 = $findIDIDIDID(%pointsfile2, %pointsID2, $1)
- }
- var %currentPoints2 = $readini(%pointsfile2, %ID2, points)
- writeini -n %pointsfile2 %ID2 points $calc(%currentPoints2 + 5)
- }
- on 2:text:!tb*:#: {
- var %name = $2
- var %points = $3
- var %currentPoints = $readini(%pointsfile, $findIDID(%name), points)
- var %newPoints = $calc(%currentPoints - %points)
- writeini -n %pointsfile $findIDID(%name) points %newPoints
- msg $chan %points bcoins were taken from %name
- }
- on *:text:!is*:#: {
- var %currentPoints = $readini(%pointsfile, $findIDID($nick), points)
- var %newPoints = $calc(%currentPoints - 15000)
- var %file_search2 = C:\Users\Brad\Desktop\Songlist\Songs.txt
- var %songID $readini(%songfile, $2, name)
- var %command = !is
- var %ident $readini(%songfile, $2, Identifier)
- var %artistID $readini(%songfile, $2, artist)
- var %songstring = %ident %songID %artistID
- var %read_text $read(%file_search2,r,%songstring)
- var %read_text3 $read(C:\Users\Brad\Desktop\Songlist\Songs.txt,w,%songstring)
- var %read_text4 $read(C:\Users\Brad\Desktop\Songlist\instantqueue.txt,w,%songstring)
- var %pointsneeded $calc(15000 - %currentPoints)
- var %songnick $+(6, $nick)
- var %read_text2 $readini(%songfile, $2, name)
- if ($1 == %command) && (%read_text2 == $null) {
- msg $chan That song doesn't exist! | halt
- }
- elseif ($1 == %command) && (%read_text4 != $null) {
- msg $chan %songID is already on the instant song queue!
- }
- elseif ($1 == %command) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) >= 5) {
- msg $chan There can only be 5 songs added to the instant queue at one time! Please wait for this list to lower! Thank you :) | halt
- }
- elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) == 0) && (%read_text3 != $null) {
- var %i 1
- while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
- if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
- inc %i
- }
- writeini -n %pointsfile $findIDID($nick) points %newPoints
- write -il2 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
- write C:\Users\Brad\Desktop\Songlist\instantqueue.txt %text %ident %songID %artistID
- msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
- TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
- }
- elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) == 0) && (%read_text3 == $null) {
- writeini -n %pointsfile $findIDID($nick) points %newPoints
- write -il2 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
- write C:\Users\Brad\Desktop\Songlist\instantqueue.txt %text %ident %songID %artistID
- msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
- TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
- }
- elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) == 1) && (%read_text3 != $null) {
- var %i 1
- while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
- if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
- inc %i
- }
- writeini -n %pointsfile $findIDID($nick) points %newPoints
- write -il3 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
- write C:\Users\Brad\Desktop\Songlist\instantqueue.txt %text %ident %songID %artistID
- msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
- TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
- }
- elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) == 1) && (%read_text3 == $null) {
- writeini -n %pointsfile $findIDID($nick) points %newPoints
- write -il3 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
- write C:\Users\Brad\Desktop\Songlist\instantqueue.txt %text %ident %songID %artistID
- msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
- TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
- }
- elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) == 2) && (%read_text3 != $null) {
- var %i 1
- while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
- if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
- inc %i
- }
- writeini -n %pointsfile $findIDID($nick) points %newPoints
- write -il4 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
- write C:\Users\Brad\Desktop\Songlist\instantqueue.txt %text %ident %songID %artistID
- msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
- TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
- }
- elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) == 2) && (%read_text3 == $null) {
- writeini -n %pointsfile $findIDID($nick) points %newPoints
- write -il4 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
- write C:\Users\Brad\Desktop\Songlist\instantqueue.txt %text %ident %songID %artistID
- msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
- TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
- }
- elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) == 3) && (%read_text3 != $null) {
- var %i 1
- while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
- if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
- inc %i
- }
- writeini -n %pointsfile $findIDID($nick) points %newPoints
- write -il5 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
- write C:\Users\Brad\Desktop\Songlist\instantqueue.txt %text %ident %songID %artistID
- msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
- TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
- }
- elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) == 3) && (%read_text3 == $null) {
- writeini -n %pointsfile $findIDID($nick) points %newPoints
- write -il5 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
- write C:\Users\Brad\Desktop\Songlist\instantqueue.txt %text %ident %songID %artistID
- msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
- TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
- }
- elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) == 4) && (%read_text3 != $null) {
- var %i 1
- while (%i <= $lines(C:\Users\Brad\Desktop\Songlist\Songs.txt)) {
- if ($read(C:\Users\Brad\Desktop\Songlist\Songs.txt,%i) == %songstring) { /write -dl $+ %i C:\Users\Brad\Desktop\Songlist\Songs.txt }
- inc %i
- }
- writeini -n %pointsfile $findIDID($nick) points %newPoints
- write -il6 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
- write C:\Users\Brad\Desktop\Songlist\instantqueue.txt %text %ident %songID %artistID
- msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
- TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
- }
- elseif ($1 == %command) && ($timer(%songnick) == $null) && (%currentpoints >= 15000) && ($lines(C:\Users\Brad\Desktop\Songlist\instantqueue.txt) == 4) && (%read_text3 == $null) {
- writeini -n %pointsfile $findIDID($nick) points %newPoints
- write -il6 C:\Users\Brad\Desktop\Songlist\songs.txt %text %ident %songID %artistID
- write C:\Users\Brad\Desktop\Songlist\instantqueue.txt %text %ident %songID %artistID
- msg $chan $nick %songID has been added to the top of the list and will be played next! 15,000 bcoins have been deducted. Keep earning more!
- TIMER [ $+ [ %songnick ] ] 1 3600 msg $chan $nick you may now add a song to the top of the list if you have 15,000 bcoins! :)
- }
- elseif ($1 == %command) && (%currentpoints < 15000) {
- msg $chan You don't have enough bcoins to add a song to the instant songlist! You currently need %pointsneeded bcoins.
- }
- elseif ($1 != %command) {
- msg $chan That isn't formatted correctly! Make sure to format the command as !is [x] where [x] is the number of the song you want played.
- }
- else {
- msg $chan you must wait $timer(%songnick).secs seconds before adding another song to the top of the list!
- }
- }
- // ------------------------------------------------------------------------------------------------------------------------
- alias -l findID {
- var %file = $1
- var %ID = $2
- var %user = $3
- var %i = 1
- while (%i <= %ID) {
- if ($readini(%file, %i, name) == %user) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findIDID {
- var %searchName = $1
- var %i = 1
- while (%i <= %pointsID) {
- var %name = $readini(%pointsfile, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findIDIDID {
- var %searchName = $nick
- var %i = 1
- while (%i <= %HallofawesomeID) {
- var %name = $readini(%Hallofawesome, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findIDIDIDID {
- var %file = $1
- var %ID = $2
- var %user = $3
- var %i = 1
- while (%i <= %ID) {
- if ($readini(%file, %i, name) == %user) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findIDIDIDIDID {
- var %searchName = $1
- var %i = 1
- while (%i <= %pointsID2) {
- var %name = $readini(%pointsfile2, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findcoins {
- var %searchName = $nick
- var %i = 1
- while (%i <= %megaID) {
- var %name = $readini(%megacoins, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findcoins {
- var %searchName = $nick
- var %i = 1
- while (%i <= %megaID) {
- var %name = $readini(%megacoins, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findcoins2 {
- var %searchName = $nick
- var %i = 1
- while (%i <= %megaID2) {
- var %name = $readini(%megacoins2, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findcoins3 {
- var %searchName = $nick
- var %i = 1
- while (%i <= %megaID3) {
- var %name = $readini(%megacoins3, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findcoins4 {
- var %searchName = $nick
- var %i = 1
- while (%i <= %megaID4) {
- var %name = $readini(%megacoins4, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findcoins5 {
- var %searchName = $nick
- var %i = 1
- while (%i <= %megaID5) {
- var %name = $readini(%megacoins5, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findcoins6 {
- var %searchName = $nick
- var %i = 1
- while (%i <= %megaID6) {
- var %name = $readini(%megacoins6, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findallmega {
- var %searchName = $nick
- var %i = 1
- while (%i <= %allmegaID) {
- var %name = $readini(%allmega, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- ------------------------------------------------------------------
- on *:LOAD:{
- SET %Winners 0
- SET %Sjackpot 200
- SET %Mjackpot 400
- SET %Ljackpot 600
- SET %MjAckpot 800
- SET %Ujackpot 1000
- SET %jackpot 10000
- SET %symbol.0 4Head
- SET %symbol.1 Shazam
- SET %symbol.2 PogChamp
- SET %symbol.3 GasJoker
- SET %symbol.4 deIlluminati
- SET %symbol.5 Kappa
- SET %symbol.8 Apple
- }
- ON *:UNLOAD:{
- UNSET %jackpot
- UNSET %symbol.*
- }
- on *:TEXT:!slots:#: {
- var %slotsnick $nick
- var %points = $readini(%pointsfile, $findIDID(%slotsnick), points)
- var %ID = $readini(%pointsfile2, $findIDID(%slotsnick), name)
- IF (%ID == $null) {
- msg $chan $nick You haven't started earning bcoins in this channel yet! Type in !join to start earning them! :)
- }
- ELSEIF (%points >= 20) {
- slotsetup
- }
- ELSE {
- msg $chan You don't have enough bcoins to play!
- }
- }
- alias slotsetup {
- SET %chanslot $chan
- SET %nickslot $nick
- IF ($timer(%nickslot) == $null) {
- TIMER [ $+ [ %nickslot ] ] 1 120 msg $chan %nickslot you may play the slots again!
- var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
- INC %Sjackpot 50
- INC %Mjackpot 50
- INC %Ljackpot 50
- INC %Xjackpot 50
- INC %Ujackpot 50
- INC %Tjackpot 50
- INC %jackpot 100
- var %pointstoplay = 20
- var %bcoinsused = $calc(%currentPoints - %pointstoplay)
- writeini -n %pointsfile $findIDID(%nickslot) points %bcoinsused
- playslot
- }
- ELSE {
- msg $chan %nickslot You have to wait $timer(%nickslot).secs seconds before playing again.
- }
- }
- alias playslot {
- IF ( %slot.lose. [ $+ [ %nickslot ] ] == $null ) SET %slot.lose. [ $+ [ %nickslot ] ] 0
- INC %slot.lose. [ $+ [ %nickslot ] ]
- SET %col.0 %symbol. [ $+ [ $rand(0,5) ] ]
- SET %col.1 %symbol. [ $+ [ $rand(0,5) ] ]
- SET %col.2 %symbol. [ $+ [ $rand(0,5) ] ]
- SET %col.3 %symbol. [ $+ [ $rand(0,10) ] ]
- var %ID = $findcoins(%megacoins, %megaID, $1)
- var %ID2 = $findcoins2(%megacoins2, %megaID2, $1)
- var %ID3 = $findcoins3(%megacoins3, %megaID3, $1)
- var %ID4 = $findcoins4(%megacoins4, %megaID4, $1)
- var %ID5 = $findcoins5(%megacoins5, %megaID5, $1)
- var %ID6 = $findcoins6(%megacoins6, %megaID6, $1)
- var %coins1 = $readini(%megacoins, $findcoins($nick), coin1)
- var %coins2 = $readini(%megacoins2, $findcoins2($nick), coin2)
- var %coins3 = $readini(%megacoins3, $findcoins3($nick), coin3)
- var %coins4 = $readini(%megacoins4, $findcoins4($nick), coin4)
- var %coins5 = $readini(%megacoins5, $findcoins5($nick), coin5)
- var %coins6 = $readini(%megacoins6, $findcoins6($nick), coin6)
- var %megacoinsfile = $read(C:\Users\Brad\Desktop\Songlist\megacoinsfile.txt,1)
- var %megacoinsfile2 = $read(C:\Users\Brad\Desktop\Songlist\megacoinsfile.txt,2)
- var %megacoinsfile3 = $read(C:\Users\Brad\Desktop\Songlist\megacoinsfile.txt,3)
- var %megacoinsfile4 = $read(C:\Users\Brad\Desktop\Songlist\megacoinsfile.txt,4)
- var %megacoinsfile5 = $read(C:\Users\Brad\Desktop\Songlist\megacoinsfile.txt,5)
- var %megacoinsfile6 = $read(C:\Users\Brad\Desktop\Songlist\megacoinsfile.txt,6)
- IF (%col.0 == %symbol.0) && (%col.1 == %symbol.0) && (%col.2 == %symbol.0) && (%col.3 == %symbol.8) && (%ID == 0) {
- SET %winlineslot %nickslot just won %Sjackpot bcoins and the mega coin %megacoinsfile ! Check your mega coins by typing in !mega :D
- var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
- var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
- var %jackpotwon = $calc(%currentPoints + %Sjackpot)
- var %jackpotwon2 = $calc(%currentPoints2 + %Sjackpot)
- $addmega($nick)
- writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
- writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
- writeini -n %megacoins $findcoins(%nickslot) coin1 $chr(40) 4Head $chr(41)
- INC %Winners
- SET %Last.Winner %nickslot
- SET %Last.Amount %Sjackpot
- SET %slot.win. [ $+ [ %nickslot ] ] $calc( %slot.lose. [ $+ [ %nickslot ] ] + %jackpot )
- SET %Sjackpot 200
- }
- else if (%col.0 == %symbol.0) && (%col.1 == %symbol.0) && (%col.2 == %symbol.0) {
- SET %winlineslot %nickslot just won %Sjackpot bcoins!
- var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
- var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
- var %jackpotwon = $calc(%currentPoints + %Sjackpot)
- var %jackpotwon2 = $calc(%currentPoints2 + %Sjackpot)
- writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
- writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
- INC %Winners
- SET %Last.Winner %nickslot
- SET %Last.Amount %Sjackpot
- SET %slot.win. [ $+ [ %nickslot ] ] $calc( %slot.lose. [ $+ [ %nickslot ] ] + %jackpot )
- SET %Sjackpot 200
- }
- elseIF (%col.0 == %symbol.1) && (%col.1 == %symbol.1) && (%col.2 == %symbol.1) && (%col.3 == %symbol.8) && (%ID2 == 0) {
- SET %winlineslot %nickslot just won %Mjackpot bcoins and the mega coin %megacoinsfile2 ! Check your mega coins by typing in !mega :D
- var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
- var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
- var %jackpotwon = $calc(%currentPoints + %Mjackpot)
- var %jackpotwon2 = $calc(%currentPoints2 + %Mjackpot)
- $addmega2($nick)
- writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
- writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
- writeini -n %megacoins2 $findcoins2(%nickslot) coin2 $chr(40) Shazam $chr(41)
- INC %Winners
- SET %Last.Winner %nickslot
- SET %Last.Amount %Mjackpot
- SET %slot.win. [ $+ [ %nickslot ] ] $calc( %slot.lose. [ $+ [ %nickslot ] ] + %Mjackpot )
- SET %Mjackpot 400
- }
- elseIF (%col.0 == %symbol.1) && (%col.1 == %symbol.1) && (%col.2 == %symbol.1) {
- SET %winlineslot %nickslot just won %Mjackpot bcoins!
- var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
- var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
- var %jackpotwon = $calc(%currentPoints + %Mjackpot)
- var %jackpotwon2 = $calc(%currentPoints2 + %Mjackpot)
- writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
- writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
- INC %Winners
- SET %Last.Winner %nickslot
- SET %Last.Amount %Mjackpot
- SET %slot.win. [ $+ [ %nickslot ] ] $calc( %slot.lose. [ $+ [ %nickslot ] ] + %Mjackpot )
- SET %Mjackpot 400
- }
- elseIF (%col.0 == %symbol.2) && (%col.1 == %symbol.2) && (%col.2 == %symbol.2) && (%col.3 == %symbol.8) && (%ID3 == 0) {
- SET %winlineslot %nickslot just won %Ljackpot bcoins and the mega coin %megacoinsfile3 ! Check your mega coins by typing in !mega :D
- var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
- var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
- var %jackpotwon = $calc(%currentPoints + %Ljackpot)
- var %jackpotwon2 = $calc(%currentPoints2 + %Ljackpot)
- $addmega3($nick)
- writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
- writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
- writeini -n %megacoins3 $findcoins3(%nickslot) coin3 $chr(40) PogChamp $chr(41)
- INC %Winners
- SET %Last.Winner %nickslot
- SET %Last.Amount %Ljackpot
- SET %slot.win. [ $+ [ %nickslot ] ] $calc( %slot.lose. [ $+ [ %nickslot ] ] + %Ljackpot)
- SET %Ljackpot 600
- }
- elseIF (%col.0 == %symbol.2) && (%col.1 == %symbol.2) && (%col.2 == %symbol.2) {
- SET %winlineslot %nickslot just won %Ljackpot bcoins!
- var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
- var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
- var %jackpotwon = $calc(%currentPoints + %Ljackpot)
- var %jackpotwon2 = $calc(%currentPoints2 + %Ljackpot)
- writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
- writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
- INC %Winners
- SET %Last.Winner %nickslot
- SET %Last.Amount %Ljackpot
- SET %slot.win. [ $+ [ %nickslot ] ] $calc( %slot.lose. [ $+ [ %nickslot ] ] + %Ljackpot)
- SET %Ljackpot 600
- }
- elseIF (%col.0 == %symbol.3) && (%col.1 == %symbol.3) && (%col.2 == %symbol.3) && (%col.3 == %symbol.8) && (%ID4 == 0) {
- SET %winlineslot %nickslot just won %Xjackpot bcoins and the mega coin %megacoinsfile4 ! Check your mega coins by typing in !mega :D
- var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
- var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
- var %jackpotwon = $calc(%currentPoints + %Xjackpot)
- var %jackpotwon2 = $calc(%currentPoints2 + %Xjackpot)
- $addmega4($nick)
- writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
- writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
- writeini -n %megacoins4 $findcoins4(%nickslot) coin4 $chr(40) GasJoker $chr(41)
- INC %Winners
- SET %Last.Winner %nickslot
- SET %Last.Amount %Xjackpot
- SET %slot.win. [ $+ [ %nickslot ] ] $calc( %slot.lose. [ $+ [ %nickslot ] ] + %Xjackpot )
- SET %Xjackpot 800
- }
- elseIF (%col.0 == %symbol.3) && (%col.1 == %symbol.3) && (%col.2 == %symbol.3) {
- SET %winlineslot %nickslot just won %Xjackpot bcoins!
- var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
- var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
- var %jackpotwon = $calc(%currentPoints + %Xjackpot)
- var %jackpotwon2 = $calc(%currentPoints2 + %Xjackpot)
- writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
- writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
- INC %Winners
- SET %Last.Winner %nickslot
- SET %Last.Amount %Xjackpot
- SET %slot.win. [ $+ [ %nickslot ] ] $calc( %slot.lose. [ $+ [ %nickslot ] ] + %Xjackpot )
- SET %Xjackpot 800
- }
- elseIF (%col.0 == %symbol.4) && (%col.1 == %symbol.4) && (%col.2 == %symbol.4) && (%col.3 == %symbol.8) && (%ID5 == 0) {
- SET %winlineslot HOLY! %nickslot just won %jackpot bcoins!! PogChamp %nickslot has also earned the %megacoinsfile5 mega coin! Check your mega coins by typing in !mega :D!
- var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
- var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
- var %jackpotwon = $calc(%currentPoints + %jackpot)
- var %jackpotwon2 = $calc(%currentPoints2 + %jackpot)
- $addmega5($nick)
- writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
- writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
- writeini -n %megacoins5 $findcoins5(%nickslot) coin5 $chr(40) deIlluminati $chr(41)
- INC %Winners
- SET %Last.Winner %nickslot
- SET %Last.Amount %jackpot
- SET %slot.win. [ $+ [ %nickslot ] ] $calc( %slot.lose. [ $+ [ %nickslot ] ] + %jackpot)
- SET %jackpot 15000
- }
- elseIF (%col.0 == %symbol.4) && (%col.1 == %symbol.4) && (%col.2 == %symbol.4) {
- SET %winlineslot %nickslot just won %Tjackpot bcoins!
- var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
- var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
- var %jackpotwon = $calc(%currentPoints + %Tjackpot)
- var %jackpotwon2 = $calc(%currentPoints2 + %Tjackpot)
- writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
- writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
- INC %Winners
- SET %Last.Winner %nickslot
- SET %Last.Amount %jackpot
- SET %slot.win. [ $+ [ %nickslot ] ] $calc( %slot.lose. [ $+ [ %nickslot ] ] + %Tjackpot)
- SET %Tjackpot 1200
- }
- elseIF (%col.0 == %symbol.5) && (%col.1 == %symbol.5) && (%col.2 == %symbol.5) && (%col.3 == %symbol.8) && (%ID6 == 0) {
- SET %winlineslot %nickslot just won %Ujackpot bcoins and the mega coin %megacoinsfile6 ! Check your mega coins by typing in !mega :D
- var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
- var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
- var %jackpotwon = $calc(%currentPoints + %Ujackpot)
- var %jackpotwon2 = $calc(%currentPoints2 + %Ujackpot)
- $addmega6($nick)
- writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
- writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
- writeini -n %megacoins6 $findcoins6(%nickslot) coin6 $chr(40) Kappa $chr(41)
- INC %Winners
- SET %Last.Winner %nickslot
- SET %Last.Amount %Ujackpot
- SET %slot.win. [ $+ [ %nickslot ] ] $calc( %slot.lose. [ $+ [ %nickslot ] ] + %Ujackpot )
- SET %Ujackpot 1000
- }
- elseIF (%col.0 == %symbol.5) && (%col.1 == %symbol.5) && (%col.2 == %symbol.5) {
- SET %winlineslot %nickslot just won %Ujackpot bcoins!
- var %currentPoints2 = $readini(%pointsfile2, $findIDIDIDIDID(%nickslot), points)
- var %currentPoints = $readini(%pointsfile, $findIDID(%nickslot), points)
- var %jackpotwon = $calc(%currentPoints + %Ujackpot)
- var %jackpotwon2 = $calc(%currentPoints2 + %Ujackpot)
- writeini -n %pointsfile $findIDID(%nickslot) points %jackpotwon
- writeini -n %pointsfile2 $findIDIDIDIDID(%nickslot) points %jackpotwon2
- INC %Winners
- SET %Last.Winner %nickslot
- SET %Last.Amount %Ujackpot
- SET %slot.win. [ $+ [ %nickslot ] ] $calc( %slot.lose. [ $+ [ %nickslot ] ] + %Ujackpot )
- SET %Ujackpot 1000
- }
- MSG %chanslot 20 bcoins placed in the machine! Good luck! ::: %col.0 %col.1 %col.2 ::: $iif(%winlineslot == $null, Unlucky BibleThump ,%nickslot won!! Kreygasm)
- IF (%winlineslot != $null) AMSG %winlineslot
- UNSET %winlineslot
- }
- alias -l addmega {
- writeini -n %megacoins $calc(%megaID + 1) name $1
- inc %megaID
- }
- alias -l addmega2 {
- writeini -n %megacoins2 $calc(%megaID2 + 1) name $1
- inc %megaID2
- }
- alias -l addmega3 {
- writeini -n %megacoins3 $calc(%megaID3 + 1) name $1
- inc %megaID3
- }
- alias -l addmega4 {
- writeini -n %megacoins4 $calc(%megaID4 + 1) name $1
- inc %megaID4
- }
- alias -l addmega5 {
- writeini -n %megacoins5 $calc(%megaID5 + 1) name $1
- inc %megaID5
- }
- alias -l addmega6 {
- writeini -n %megacoins6 $calc(%megaID6 + 1) name $1
- inc %megaID6
- }
- on *:text:!items:#: {
- msg $chan The items and their values: 4Head = 200, Shazam = 400, PogChamp = 600, GasJoker = 800, Kappa = 1000, deIlluminati = 1200, and SEVEN + Secret = jackpot (NOTE: jackpots for each will increase if no one wins!)
- }
- on *:TEXT:!stats*:#:{
- SET %tmpnick $iif($2 == $null,$nick,$2)
- SET %tmpwon $iif( %slot.win. [ $+ [ %tmpnick ] ] == $null,0, %slot.win. [ $+ [ %tmpnick ] ] )
- SET %tmplose $iif( %slot.lose. [ $+ [ %tmpnick ] ] == $null,0, %slot.lose. [ $+ [ %tmpnick ] ] )
- MSG $chan %tmpnick $+ 's Slot Machine stats: Won Amount: %tmpwon Lost games: %tmplose Net: $calc(%tmpwon - %tmplose)
- msg $chan $nick Last winner was: %Last.Winner and they won %Last.Amount bcoins
- msg $chan Number of Winners: %Winners
- }
- on *:text:!jackpot:#: {
- msg $chan Current jackpot for 3 deIlluminati (with secret item match) is %jackpot
- msg $chan Current jackpot for 3 4Head is %Sjackpot
- msg $chan Current jackpot for 3 Shazam is %Mjackpot
- msg $chan Current jackpot for 3 PogChamp is %Ljackpot
- msg $chan Current jackpot for 3 GasJoker is %Xjackpot
- msg $chan Current jackpot for 3 Kappa is %Ujackpot
- msg $chan Current Jackpot for 3 deIlluminati is %Tjackpot
- }
- alias -l findID {
- var %file = $1
- var %ID = $2
- var %user = $3
- var %i = 1
- while (%i <= %ID) {
- if ($readini(%file, %i, name) == %user) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findIDID {
- var %searchName = $1
- var %i = 1
- while (%i <= %pointsID) {
- var %name = $readini(%pointsfile, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- ; {}
- alias -l findIDIDIDIDID {
- var %searchName = $nick
- var %i = 1
- while (%i <= %pointsID2) {
- var %name = $readini(%pointsfile2, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findcoins {
- var %searchName = $nick
- var %i = 1
- while (%i <= %megaID) {
- var %name = $readini(%megacoins, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findcoins2 {
- var %searchName = $nick
- var %i = 1
- while (%i <= %megaID2) {
- var %name = $readini(%megacoins2, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findcoins3 {
- var %searchName = $nick
- var %i = 1
- while (%i <= %megaID3) {
- var %name = $readini(%megacoins3, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findcoins4 {
- var %searchName = $nick
- var %i = 1
- while (%i <= %megaID4) {
- var %name = $readini(%megacoins4, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findcoins5 {
- var %searchName = $nick
- var %i = 1
- while (%i <= %megaID5) {
- var %name = $readini(%megacoins5, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findcoins6 {
- var %searchName = $nick
- var %i = 1
- while (%i <= %megaID6) {
- var %name = $readini(%megacoins6, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- ------------------------------------------------------------------------------------------
- on *:TEXT:!top5:#: {
- run_top5 #
- }
- alias run_top5 {
- window -h @. | var %i 1
- while $ini(C:\Users\Brad\Desktop\Songlist\points2.ini,%i) {
- var %n $v1
- aline @. $gettok($remove(%n,[,]),2,46) $readini(C:\Users\Brad\Desktop\Songlist\points2.ini,%n,points) $readini(C:\Users\Brad\Desktop\Songlist\points2.ini,%n,name)
- inc %i
- }
- filter -cetuww 1 32 @. @.
- var %i 1 | while %i <= 5 {
- var %list $addtok(%list,$line(@.,%i),44)
- inc %i
- }
- msg $chan Top 5 bcoins earners are: $replace(%list,$chr(44),$+($chr(44),$chr(32)))
- window -c @.
- }
- ------------------------------------------------------------------------------------------
- on *:text:!d *:#: {
- var %songnick $+(30, $nick)
- var %timerDD $+(dd)
- if ($timer(%timerDD) != $null) && ($nick != %player1) && ($2 != %opponent) {
- msg $chan A Duel is currently going on! Please wait $timer(%timerDD).secs until you can start a match!
- }
- elseif ($timer(%songnick) != $null) {
- msg $chan You're currently in a duel or just ended one! please wait $timer(%songnick).secs until your match timer expires!
- }
- elseif ($timer(%songnick) == $null) {
- SET %player1 $nick
- SET %opponent $2
- var %IDexist = $readini(%pointsfile, $findID(%opponent), name)
- var %songnick $+(30, $nick)
- var %currentPoints = $readini(%pointsfile, $findIDID(%player1), points)
- var %currentPoints2 = $readini(%pointsfile, $findID(%opponent), points)
- var %pointstoplay $3
- var %bcoinsused $calc(%currentPoints - %pointstoplay)
- var %bcoinsused2 $calc(%currentPoints2 - %pointstoplay)
- if ($2 == $nick) {
- msg $chan You cannot duel yourself!
- unset %dd
- unset %ddr.*
- unset %pot
- unset %opponent
- unset %player1
- unset %pot2
- | halt
- }
- elseif ($2 != %IDexist) {
- msg $chan The opponent must exist in the bcoins list in order to be dueled!
- unset %dd
- unset %ddr.*
- unset %pot
- unset %opponent
- unset %player1
- unset %pot2
- | halt
- }
- elseif (%pointstoplay > 5000) {
- msg $chan You must bet less than/equal to 5000 bcoins!
- unset %dd
- unset %ddr.*
- unset %pot
- unset %opponent
- unset %player1
- unset %pot2
- | halt
- }
- elseif (%currentPoints < %pointstoplay) || (%currentPoints2 < %pointstoplay) {
- msg $chan you or your opponent do not have enough bcoins to dice duel!
- unset %dd
- unset %ddr.*
- unset %pot
- unset %opponent
- unset %player1
- unset %pot2
- | halt
- }
- elseif (%currentPoints >= %pointstoplay) && (%currentPoints2 >= %pointstoplay) {
- set %dd $nick $2 $3
- SET %pot $calc($3 * 2)
- SET %pot2 $3
- writeini -n %pointsfile $findIDID(%player1) points %bcoinsused
- writeini -n %pointsfile $findID(%opponent) points %bcoinsused2
- msg $chan Dice duel between $nick and $2 for %pot bcoins! ; Type !broll.
- TIMER [ $+ [ %songnick ] ] 1 90 msg $chan $nick The match timer has expired! You may now Duel again!
- .timerDD 1 90 EndDD
- }
- else {
- msg $chan You need to specify the amount!
- }
- }
- }
- on *:text:!broll:#: {
- if (!%dd) { msg $chan No duel in progress. | halt }
- if (!$istok(%dd,$nick,32)) { msg $chan You are not one of the duelists. | halt }
- if ($($+(%,ddr.,$nick),2)) { msg $chan You have already rolled. | halt }
- var %r = $rand(2,12), %d1 = $gettok(%dd,1,32), %d2 = $gettok(%dd,2,32)
- var %currentPoints = $readini(%pointsfile, $findIDID(%player1), points)
- var %currentPoints2 = $readini(%pointsfile, $findID(%opponent), points)
- var %currentPoints3 = $readini(%pointsfile2, $findIDIDIDIDID(%player1), points)
- var %currentPoints4 = $readini(%pointsfile2, $findID2(%opponent), points)
- set %ddr. $+ $nick %r
- msg $chan $nick rolled a %r $+ .
- var %r1 = $($+(%,ddr.,$gettok(%dd,1,32)),2), %r2 = $($+(%,ddr.,$gettok(%dd,2,32)),2)
- if (%r1 && %r2) {
- if (%r1 > %r2) {
- writeini -n %pointsfile $findIDID(%player1) points $calc(%currentPoints + %pot)
- writeini -n %pointsfile2 $findIDIDIDIDID(%player1) points $calc(%currentPoints3 + %pot2)
- msg $chan %d1 won the %pot bcoin pot with a %r1 $+ - $+ %r2 $+ .
- }
- elseif (%r2 > %r1) {
- writeini -n %pointsfile $findID(%opponent) points $calc(%currentPoints2 + %pot)
- writeini -n %pointsfile2 $findID2(%opponent) points $calc(%currentPoints4 + %pot2)
- msg $chan %d2 won the %pot bcoin pot with a %r2 $+ - $+ %r1 $+ .
- }
- elseif (%r1 == %r2) {
- writeini -n %pointsfile $findIDID(%player1) points $calc(%currentPoints + %pot2)
- writeini -n %pointsfile $findID(%opponent) points $calc(%currentPoints2 + %pot2)
- msg $chan %d1 and %d2 tied with a %r1 $+ - $+ %r2 $+ .
- }
- unset %dd
- unset %ddr.*
- unset %pot
- unset %player1
- unset %opponent
- unset %pot2
- .timerDD off
- }
- }
- alias EndDD {
- var %currentPoints = $readini(%pointsfile, $findIDID(%player1), points)
- var %currentPoints2 = $readini(%pointsfile, $findID(%opponent), points)
- writeini -n %pointsfile $findIDID(%player1) points $calc(%currentPoints + %pot2)
- writeini -n %pointsfile $findID(%opponent) points $calc(%currentPoints2 + %pot2)
- unset %dd
- unset %ddr.*
- unset %pot
- unset %opponent
- unset %player1
- unset %pot2
- }
- alias -l findIDID {
- var %searchName = %player1
- var %i = 1
- while (%i <= %pointsID) {
- var %name = $readini(%pointsfile, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findIDIDIDIDID {
- var %searchName = %player1
- var %i = 1
- while (%i <= %pointsID2) {
- var %name = $readini(%pointsfile2, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findID {
- var %searchName = %opponent
- var %i = 1
- while (%i <= %pointsID) {
- var %name = $readini(%pointsfile, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- alias -l findID2 {
- var %searchName = %opponent
- var %i = 1
- while (%i <= %pointsID2) {
- var %name = $readini(%pointsfile2, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- on *:text:!sdt:#: {
- if ($nick isop #) {
- var %currentPoints = $readini(%pointsfile, $findIDID(%player1), points)
- var %currentPoints2 = $readini(%pointsfile, $findID(%opponent), points)
- writeini -n %pointsfile $findIDID(%player1) points $calc(%currentPoints + %pot2)
- writeini -n %pointsfile $findID(%opponent) points $calc(%currentPoints2 + %pot2)
- unset %dd
- unset %ddr.*
- unset %pot
- unset %opponent
- unset %player1
- unset %pot2
- .timerDD off
- msg $chan The dice timer has been turned off!
- }
- }
- -------------------------------------------------------------------------------------
- on 2:text:!ticket:#: {
- var %raffle $+(99, $nick)
- var %currentPoints = $readini(%pointsfile, $findIDID($nick), points)
- var %file_search C:\Users\Brad\Desktop\Songlist\Raffle.txt
- var %raffleentry = $nick
- var %Read_text (%file_search,r,%raffleentry)
- var %bcoinsused = $calc(%currentPoints - 1000)
- if (%currentPoints >= 1000) && ($timer(%raffle) == $null) {
- write C:\Users\Brad\Desktop\Songlist\Raffle.txt %raffleentry
- writeini -n %pointsfile $findIDID($nick) points %bcoinsused
- msg $chan 1,000 bcoins have been deducted and your raffe entry has been saved!
- TIMER [ $+ [ %raffle ] ] 1 300 msg $chan $nick You may now add another entry!
- }
- elseif (%currentPoints < 1000) {
- msg $chan You must have at least 1,000 bcoins to enter your name into the raffle!
- }
- else {
- msg $chan Please wait $timer(%raffle).secs seconds before adding another entry :)
- }
- }
- on 2:text:!draw:#: {
- msg $chan The winner of the raffle is $read(C:\Users\Brad\Desktop\Songlist\raffle.txt,n)
- }
- on 2:text:!clrf:#: {
- write -c C:\Users\Brad\Desktop\Songlist\Raffle.txt
- msg $chan clearing raffle entries..
- }
- // ------------------------------------------------------------------------------------------------
- alias -l findIDID {
- var %searchName = $1
- var %i = 1
- while (%i <= %pointsID) {
- var %name = $readini(%pointsfile, %i, name)
- if (%name == %searchName) {
- return %i
- }
- inc %i
- }
- return 0
- }
- ------------------------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment