Advertisement
Guest User

Thy

a guest
Jul 8th, 2014
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. on *:text:!ThyPies:#: {
  2. msg # $nick has $read{C:\Users\ThyGaming\Dropbox\ThyPies.txt,$+{#,.,$nick},ThyPies} ThyPies.
  3. }
  4.  
  5. on *:text:!NewPies:#: {
  6. 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}
  7. }
  8.  
  9. on !*:join:#: {
  10. $+{.timerThyPies.,#,.,$nick} 0 600 add.ThyPies $+{#,.,$nick}
  11. }
  12.  
  13. on !*:part:#: {
  14. $+{.timerThyPies.,#,.,$nick} off
  15. }
  16.  
  17. on *:text:!Betting:#: {
  18. if {$nick isop #} {
  19. msg # You have 30 seconds to !Bet ThyPies Win/Loss!
  20. {.timerBet 0 19 msg # You have 10 seconds left to bet!}
  21. {.timerBets 0 29 msg # Bets are now closed!}
  22. {.timerBetDone 1 30 .timerBet off, .timerBets off}
  23. .timerBetDone off
  24. }
  25. }
  26.  
  27. on *:text:!Bet*:#: {
  28. if {.timerBetDone == off, /ignore $nick, .timerIgnore 0 1 /unignore user, .timerIgnore off}
  29. elseif {$nick isin $read{C:\Users\ThyGaming\Dropbox\Bets.txt,w, $nick}, /ignore $nick, .timerIgnore 0 1 /unignore user, .timerIgnore off}
  30. elseif {$1 == !Bet} {
  31. if {$2 == [Bet amount>pies, /ignore $nick, .timerIgnore 0 1 /unignore user, .timerIgnore off]}
  32. elseif { write C:\Users\ThyGaming\Dropbox\Bets.txt $nick $2 $3}
  33. if {$2 == All, $read{C:\Users\ThyGaming\Dropbox\ThyPies.txt,$+{#,.,$nick} == $2 }
  34. if {$1 == !Bet} {
  35. 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]
  36. if {$1 == !Bet} {
  37. write C:\Users\ThyGaming\Dropbox\ThyPies.txt ThyPies $calc{$read{C:\Users\ThyGaming\Dropbox\ThyPies.txt,$+{#,.,$nick,ThyPies} rem $iif{$2 isnum,$2,1}}
  38. }
  39. }
  40.  
  41. on *:text:!Bets:#: {
  42. msg # The Bets are as following: [Link to Bet.txt dropbox]
  43. }
  44.  
  45. on *:text:!Odds:#: {
  46. if {.timerBetDone == off, /ignore $nick, .timerIgnore 0 1 /unignore user, .timerIgnore off}
  47. elseif { msg # The odds as follow: $read{C:\Users\ThyGaming\Dropbox\Odds.txt}
  48. }
  49.  
  50. on *:text:!Win:#: {
  51. if {$nick isop #} {
  52. write $calc{$read{C:\Users\ThyGaming\Dropbox\Bets.txt, [delete all who voted loss]
  53. 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.
  54. write $calc{$read{C:\Users\ThyGaming\Dropbox\ThyPies.txt, [divided pies], [added to all the people who vote win]
  55. write C:\Users\ThyGaming\Dropbox\Bets.txt [deletes all text]
  56. write C:\Users\ThyGaming\Dropbox\Odds.txt [deletes all text]
  57.  
  58. on *:text:!Loss:#: {
  59. if {$nick isop #} {
  60. write $calc{$read{C:\Users\ThyGaming\Dropbox\Bets.txt, [delete all who voted win]
  61. 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.
  62. write $calc{$read{C:\Users\ThyGaming\Dropbox\ThyPies.txt, [divided pies], [added to all the people who vote loss]
  63. write C:\Users\ThyGaming\Dropbox\Bets.txt [deletes all text]
  64. write C:\Users\ThyGaming\Dropbox\Odds.txt [deletes all text]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement