Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias bits_game {
- %bits_game_keyword = $2
- echo 1 -a BGK %bits_game_keyword
- if (%bits_game_keyword = taters) {
- /msg #iamthem00s3 We are playing Hot Taters! Type !taters to join! If I call your name type !taters ! Game will start in 60 seconds!
- %hot_potato_count = -1
- %hot_potato = on
- /hmake taters 1
- /timer 1 60 /call_hot_potato
- }
- elseif (%bits_game_keyword = somethingelse) { /a_different_game }
- }
- alias call_hot_potato {
- inc %hot_potato_count
- %hot_potato = on
- :A
- echo 1 -a taters size $hget(taters).size
- echo 1 -a random $rand(1, [ $hget(taters).size ] )
- echo 1 -a final name $hget($rand(1, [ $hget(taters).size ] )).item
- %random_nick = $hget(taters,$rand(1, [ $hget(taters).size ] )).item
- if (%random_nick == kaypikebot) { goto A }
- /msg #iamthem00s3 YOUR TURN @ $+ %random_nick $+ !!! Please type !taters ! Turn %hot_potato_count !
- /timerTaters 1 60 { /end_hot_potato }
- /timerTatersWarning 1 50 { /msg #iamthem00s3 %random_nick seems to be asleep! Does someone want to !save cheer# the game?! }
- }
- alias check_hash {
- %h = 0
- ; while (%h < 100) { echo 1 -a taters: $hget(taters,%h).item | inc %h }
- while ($hget(taters,%h).item) { echo 1 -a $hget(taters,%h).item | inc %h }
- }
- alias eat_potato {
- if (%hot_potato == on) {
- echo 1 -a $1 $2
- /hfree taters
- /msg #iamthem00s3 $1 paid $2 bits to eat the taters! GAEM OVER!
- 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! }
- /timerTaters off
- /timerTatersWarning off
- %hot_potato = off
- }
- else { /msg #iamthem00s3 $1 paid $2 bits to eat nothing because there's no taters! }
- }
- alias save_potato {
- if (%hot_potato == on) {
- echo 1 -a $1 $2
- /msg #iamthem00s3 $1 paid $2 bits to save the taters! GIVE THANKS!
- /call_hot_potato
- }
- else { /msg #iamthem00s3 $1 paid $2 bits to save nothing because there's no taters! }
- }
- on 1:text:!taters:*: {
- echo 1 -a hot_potato %hot_potato
- echo 1 -a $nick %random_nick
- echo 1 -a count: %hot_potato_count
- echo 1 -a hadd -msu300 taters $nick 1
- hadd -msu300 taters $nick 1
- if (($nick == %random_nick) && (%hot_potato == on)) {
- /call_hot_potato
- }
- }
- on 1:text:!tatersRules:#: {
- /msg #iamthem00s3 You can !game taters cheer# to start the game!
- /msg #iamthem00s3 You can !eat cheer# to steal the tater and END the game!
- /msg #iamthem00s3 You can !save cheer# to save the potato from a sleeping user and continue the game!
- }
- alias end_hot_potato {
- /hfree taters
- /msg #iamthem00s3 BLAME %random_nick didn't toss the potato! GAME OVER! %hot_potato_count Passes!
- /timerTaters off
- /timerTatersWarning off
- %hot_potato = off
- 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! }
- else { /msg #iamthem00s3 We got %hot_potato_count passes! The high score is %hot_potato_max passes! DO BETTER NEXT TIME PLEBS! }
- }
- ;calls user
- ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement