Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. alias bits_game {
  2. %bits_game_keyword = $2
  3. echo 1 -a BGK %bits_game_keyword
  4.  
  5. if (%bits_game_keyword = taters) {
  6. /msg #iamthem00s3 We are playing Hot Taters! Type !taters to join! If I call your name type !taters ! Game will start in 60 seconds!
  7. %hot_potato_count = -1
  8. %hot_potato = on
  9. /hmake taters 1
  10. /timer 1 60 /call_hot_potato
  11. }
  12.  
  13. elseif (%bits_game_keyword = somethingelse) { /a_different_game }
  14. }
  15.  
  16. alias call_hot_potato {
  17. inc %hot_potato_count
  18. %hot_potato = on
  19. :A
  20. echo 1 -a taters size $hget(taters).size
  21. echo 1 -a random $rand(1, [ $hget(taters).size ] )
  22. echo 1 -a final name $hget($rand(1, [ $hget(taters).size ] )).item
  23.  
  24. %random_nick = $hget(taters,$rand(1, [ $hget(taters).size ] )).item
  25. if (%random_nick == kaypikebot) { goto A }
  26. /msg #iamthem00s3 YOUR TURN @ $+ %random_nick $+ !!! Please type !taters ! Turn %hot_potato_count !
  27. /timerTaters 1 60 { /end_hot_potato }
  28. /timerTatersWarning 1 50 { /msg #iamthem00s3 %random_nick seems to be asleep! Does someone want to !save cheer# the game?! }
  29. }
  30.  
  31. alias check_hash {
  32. %h = 0
  33. ; while (%h < 100) { echo 1 -a taters: $hget(taters,%h).item | inc %h }
  34. while ($hget(taters,%h).item) { echo 1 -a $hget(taters,%h).item | inc %h }
  35. }
  36.  
  37. alias eat_potato {
  38. if (%hot_potato == on) {
  39. echo 1 -a $1 $2
  40. /hfree taters
  41. /msg #iamthem00s3 $1 paid $2 bits to eat the taters! GAEM OVER!
  42. if (%hot_potato_count > %hot_potato_max) { %hot_potato_max = %hot_potato_count | /msg #iamthem00s3 GOOD JOB! That's a new high score! %hot_potato_max Passes! }
  43. /timerTaters off
  44. /timerTatersWarning off
  45. %hot_potato = off
  46. }
  47. else { /msg #iamthem00s3 $1 paid $2 bits to eat nothing because there's no taters! }
  48. }
  49.  
  50. alias save_potato {
  51. if (%hot_potato == on) {
  52. echo 1 -a $1 $2
  53. /msg #iamthem00s3 $1 paid $2 bits to save the taters! GIVE THANKS!
  54. /call_hot_potato
  55. }
  56. else { /msg #iamthem00s3 $1 paid $2 bits to save nothing because there's no taters! }
  57. }
  58.  
  59. on 1:text:!taters:*: {
  60. echo 1 -a hot_potato %hot_potato
  61. echo 1 -a $nick %random_nick
  62. echo 1 -a count: %hot_potato_count
  63. echo 1 -a hadd -msu300 taters $nick 1
  64. hadd -msu300 taters $nick 1
  65. if (($nick == %random_nick) && (%hot_potato == on)) {
  66.  
  67. /call_hot_potato
  68. }
  69. }
  70.  
  71. on 1:text:!tatersRules:#: {
  72. /msg #iamthem00s3 You can !game taters cheer# to start the game!
  73. /msg #iamthem00s3 You can !eat cheer# to steal the tater and END the game!
  74. /msg #iamthem00s3 You can !save cheer# to save the potato from a sleeping user and continue the game!
  75. }
  76.  
  77. alias end_hot_potato {
  78. /hfree taters
  79. /msg #iamthem00s3 BLAME %random_nick didn't toss the potato! GAME OVER! %hot_potato_count Passes!
  80. /timerTaters off
  81. /timerTatersWarning off
  82. %hot_potato = off
  83. if (%hot_potato_count > %hot_potato_max) { %hot_potato_max = %hot_potato_count | /msg #iamthem00s3 GOOD JOB! That's a new high score! %hot_potato_max Passes! }
  84. else { /msg #iamthem00s3 We got %hot_potato_count passes! The high score is %hot_potato_max passes! DO BETTER NEXT TIME PLEBS! }
  85. }
  86.  
  87. ;calls user
  88. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement