I am literally brand spanking new to this. I don't have much experience in any background behind this so I imagine that most of my code here is broken. Almost to no repair. However, if anyone can look over what I got and/or give me pointers inbetween my [ ], that would be lovely. Thanks and sorry for the waste of time that is about to ensue.
on *:text:!ThyPies:#: {
msg # $nick has $read{C:\Users\ThyGaming\Dropbox\ThyPies.txt,$+{#,.,$nick},ThyPies} ThyPies.
}
on *:text:!NewPies:#: {
write C:\Users\ThyGaming\Dropbox\ThyPies.txt $+{#,.,$nick} ThyPies $read{C:\Users\ThyGaming\Dropbox\ThyPies.txt,$+{3,.,$nick},Thypies} $iif{$2 == null} #iif{$+{#,.,$nick},ThyPies} == 100}
}
on !*:join:#: {
$+{.timerThyPies.,#,.,$nick} 0 600 add.ThyPies $+{#,.,$nick}
}
on !*:part:#: {
$+{.timerThyPies.,#,.,$nick} off
}
on *:text:!Betting:#: {
if {$nick isop #} {
msg # You have 30 seconds to !Bet ThyPies Win/Loss!
{.timerBet 0 19 msg # You have 10 seconds left to bet!}
{.timerBets 0 29 msg # Bets are now closed!}
{.timerBetDone 1 30 .timerBet off, .timerBets off}
.timerBetDone off
}
}
on *:text:!Bet*:#: {
if {.timerBetDone == off, /ignore $nick, .timerIgnore 0 1 /unignore user, .timerIgnore off}
elseif {$nick isin $read{C:\Users\ThyGaming\Dropbox\Bets.txt,w, $nick}, /ignore $nick, .timerIgnore 0 1 /unignore user, .timerIgnore off}
elseif {$1 == !Bet} {
if {$2 == [Bet amount>pies, /ignore $nick, .timerIgnore 0 1 /unignore user, .timerIgnore off]}
elseif { write C:\Users\ThyGaming\Dropbox\Bets.txt $nick $2 $3}
if {$2 == All, $read{C:\Users\ThyGaming\Dropbox\ThyPies.txt,$+{#,.,$nick} == $2 }
if {$1 == !Bet} {
write C:\Users\ThyGaming\Dropbox\Odds.txt Odds $calc{$read{C:\Users\ThyGaming\Dropbox\Odds.txt, [XW/XL odds with XXX pies bet on Win and XXX pies bet on Loss]
if {$1 == !Bet} {
write C:\Users\ThyGaming\Dropbox\ThyPies.txt ThyPies $calc{$read{C:\Users\ThyGaming\Dropbox\ThyPies.txt,$+{#,.,$nick,ThyPies} rem $iif{$2 isnum,$2,1}}
}
}
on *:text:!Bets:#: {
msg # The Bets are as following: [Link to Bet.txt dropbox]
}
on *:text:!Odds:#: {
if {.timerBetDone == off, /ignore $nick, .timerIgnore 0 1 /unignore user, .timerIgnore off}
elseif { msg # The odds as follow: $read{C:\Users\ThyGaming\Dropbox\Odds.txt}
}
on *:text:!Win:#: {
if {$nick isop #} {
write $calc{$read{C:\Users\ThyGaming\Dropbox\Bets.txt, [delete all who voted loss]
msg # A total of $read{$calc{$read{C:\Users\ThyGaming\Dropbox\Bets.txt, [divided pies]} has been distributed evenly to $read{$calc{$read{C:\Users\ThyGaming\Dropbox\Bets.txt, [how many winners]} people.
write $calc{$read{C:\Users\ThyGaming\Dropbox\ThyPies.txt, [divided pies], [added to all the people who vote win]
write C:\Users\ThyGaming\Dropbox\Bets.txt [deletes all text]
write C:\Users\ThyGaming\Dropbox\Odds.txt [deletes all text]
on *:text:!Loss:#: {
if {$nick isop #} {
write $calc{$read{C:\Users\ThyGaming\Dropbox\Bets.txt, [delete all who voted win]
msg # A total of $read{$calc{$read{C:\Users\ThyGaming\Dropbox\Bets.txt, [divided pies]} has been distributed evenly to $read{$calc{$read{C:\Users\ThyGaming\Dropbox\Bets.txt, [how many winners]} people.
write $calc{$read{C:\Users\ThyGaming\Dropbox\ThyPies.txt, [divided pies], [added to all the people who vote loss]
write C:\Users\ThyGaming\Dropbox\Bets.txt [deletes all text]
write C:\Users\ThyGaming\Dropbox\Odds.txt [deletes all text]