Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:TEXT:!start:#: {
- if (%gameoff == OFF) { halt }
- if (%game) { halt }
- if ($me isop $chan) {
- inc %played [ $+ [ $address($nick,1) ] ]
- set %nick $nick
- set %channel $chan
- set %number $rand(1,100)
- set %game on
- set %playss 7
- timerhigh 1 360 lose
- msg $chan Game On %nick $+ , $chr(36) $+ Guess <number> ( 1 - 100 ) , To get the number, Youve got 5 Tries! Youve Got 60 Seocnds To Get The Number!
- }
- }
- on 1:TEXT:$($!guess*):#:{
- if (%gameoff == OFF) { halt }
- if ($nick == %nick) {
- if ($me isop $chan) {
- inc %plays
- if ($2 == %number) {
- inc %well.played [ $+ [ $address($nick,1) ] ]
- msg $chan Well Played $nick $+ . , You Got It Right !
- msg $chan Played: ( %played [ $+ [ $address($nick,1) ] ] ) Failed: ( %failed [ $+ [ $address($nick,1) ] ] ) Got Right: ( %well.played [ $+ [ $address($nick,1) ] ] )
- unset %game
- unset %plays
- unset %number
- timerhigh off
- unset %nick
- halt
- }
- if ($2 == $null) {
- msg $chan $chr(36) $+ guess <number>
- halt
- }
- if (%plays == %playss) {
- inc %failed [ $+ [ $address($nick,1) ] ]
- kick $chan $nick Unlucky $nick $+ . The number Was ( %number )
- msg $chan Played: ( %played [ $+ [ $address($nick,1) ] ] ) Failed: ( %failed [ $+ [ $address($nick,1) ] ] ) Got Right: ( %well.played [ $+ [ $address($nick,1) ] ] )
- unset %plays
- unset %game
- unset %plays
- unset %number
- unset %nick
- timerhigh off
- halt
- }
- if ($2 > %number) {
- msg $chan The Number Is Lower $nick
- halt
- }
- if ($2 < %number) {
- msg $chan The Number Is Higher $nick
- halt
- }
- }
- }
- }
- on 1:TEXT:$($!stop):#:{
- if (%gameoff == OFF) { halt }
- if ($nick == %nick) { unset %nick | unset %game | unset %number | unset %number | unset %nick | timerhigh off | msg $chan Game Stopped. } }
- on 1:TEXT:$(!stats):#:{
- if (%guess) { halt }
- else { set -u5 %guess 1 | msg $chan $nick $+ . Played: ( %played [ $+ [ $address($nick,1) ] ] ) Failed: ( %failed [ $+ [ $address($nick,1) ] ] ) Got Right: ( %well.played [ $+ [ $address($nick,1) ] ] )
- }
- }
- alias lose {
- inc %failed [ $+ [ $address(%nick,1) ] ]
- kick %channel %nick Unlucky $nick $+ . The number Was ( %number )
- msg %channel Played: ( %played [ $+ [ $address(%nick,1) ] ] ) Failed: ( %failed [ $+ [ $address(%nick,1) ] ] ) Got Right: ( %well.played [ $+ [ $address(%nick,1) ] ] ) | unset %plays | unset %game | unset %plays | unset %number | unset %nick | halt
- }
- on 1:TEXT:$($!game*):#:{
- if ($address($nick,1) iswm *!*sw1ft@wackybot.users.quakenet.org) {
- if ($2 == off) {
- set %gameoff off | msg # Game Off | halt }
- if ($2 == on) {
- unset %gameoff | msg # Game On | halt }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment