I had to completely recode the command structure for the new code allowing coloured text to be used and picked up. But the adjustment's still there, I just moved it.wonka071 wrote:Great script thx
? in version 2.1 i could edit out the !stop for op only & allow anybody to use !stop i do not see that in v.2.2
anyway to allow this?
also anyway to allow the cmd !trivia to play the defualt 25
without having to use !trivia 25 ?
Thx
Code: Select all
#Stop command to stop it running away with itself! :o)
proc stop_game {nick uhost handle channel args} {
global gameplaying gameonoff gamechan statcol1 statcol2 copycol1 sorrycol
if {[string tolower $channel] != [string tolower $gamechan]} {
putserv "PRIVMSG $channel :\003$sorrycol\Sorry $nick, \002\003$copycol1\'Trivia 2000'\002 \003$sorrycol\is not running in $channel try going to $gamechan its playing there :o)"
return
}
if {![matchattr $handle o|o]} {
putserv "PRIVMSG $channel :\002\003$statcol1\Sorry the !stop command is restricted to authorised ops only."
return
}
set chan $gamechan
if {$gameonoff == 0} {
putserv "PRIVMSG $chan :\002\003$statcol1\How can I stop something that's not switched on??!! :o)"
return
}
if {($gameonoff != 0) && ($gameplaying == 0)} {
putserv "PRIVMSG $chan :\002\003$statcol1\Game is already stopped!!"
return
}
if {($gameonoff != 0 ) && ($gameplaying != 0)} {
putserv "PRIVMSG $chan :\002\003$statcol1\Game stopped, enter \003$statcol2\!start\003$statcol1\ to restart game!"
set gameplaying 0
set questtoask ""
set answer ""
killall_timers
unbind pubm -|- * answercheck
return 0
}
}
Code: Select all
if {![matchattr $handle o|o]} {