on 1!*:TEXT:!dare:#foxy:{ /set %dare $rand(1,2)
if (%dare == 1) { msg $chan 4[14»»4] You are lucky this time $+ $nick $+ , You have been spared 4[14««4] }
if (%dare == 2) { msg $chan 4[14»»4] You are Un-lucky this time $+ $nick $+ , You have been kicked 4[14««4] | /kick $chan $nick }
}
bind pub * !dare dare:game
proc dare:game {nick uhost hand chan text} {
if {[isbotnick $nick] || ![botisop $chan]} return
set no [expr [rand 2] +1]
if {$no == 1} {
putserv "PRIVMSG $chan :4[14»»4] You are lucky this time $nick, You have been spared 4[14««4]"
} elseif {$no == 2} {
putserv "PRIVMSG $chan :4[14»»4] You are Un-lucky this time $nick, You have been kicked 4[14««4]"
putkick $chan $nick "You are Un-lucky this time"
}
}
Should do the job.
Once the game is over, the king and the pawn go back in the same box.