bind pub - !spin my:spin
proc my:spin {nick host handle channel text} {
putserv "MSG $chan :$nick spins the wheel ... Round and round it goes ... Where it will point nobody knows ..."
putserv "MSG $chan :Where it will point nobody knows .... Tick Tick Tick ... Tick Tick ... Tick"
switch -- [expr [rand 7] + 1] {
"1" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :And $nick gets a free kick out of here ... *snicker*"
putserv "KICK $chan $nick :Your free kick!"
}
}
"2" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "MODE $chan +b *!*@[lindex [split $host @] 1]"
}
}
"3" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
set mask "*!*@[lindex [split $host @] 1]"
newchanban $chan $mask $::botnick "Here is your prise.. 10 mintes ban!" 10
}
}
"4" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :And $nick gets op in here.."
putserv "MODE $chan +o $nick"
}
}
"5" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :One deop comming up! hehe"
putserv "MODE $chan -o $nick"
}
}
"6" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :One -voice comming up!"
putserv "MODE $chan -v $nick"
}
}
"7" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :One +voice comming up!"
putserv "MODE $chan +v $nick"
}
}
}
}
i hope this helps
I once was an intelligent young man, now i am old and i can not remember who i was.
bind pub - !spin my:spin
proc my:spin {nick host handle chan text}
putserv "PRIVMSG $chan :$nick spins the wheel ... Round and round it goes ... Where it will point nobody knows ..."
putserv "PRIVMSG $chan :Where it will point nobody knows .... Tick Tick Tick ... Tick Tick ... Tick"
switch -- [expr [rand 7] + 1] {
"1" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :And $nick gets a free kick out of here ... *snicker*"
putserv "KICK $chan $nick :Your free kick!"
}
}
"2" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "MODE $chan +b *!*@[lindex [split $host @] 1]"
}
}
"3" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
set mask "*!*@[lindex [split $host @] 1]"
newchanban $chan $mask $::botnick "Here is your prise.. 10 mintes ban!" 10
}
}
"4" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :And $nick gets op in here.."
putserv "MODE $chan +o $nick"
}
}
"5" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :One deop comming up! hehe"
putserv "MODE $chan -o $nick"
}
}
"6" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :One -voice comming up!"
putserv "MODE $chan -v $nick"
}
}
"7" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :One +voice comming up!"
putserv "MODE $chan +v $nick"
}
}
}
}
And when I restarted my bot, it sayd
<Botman> [11:31] Tcl error in file 'eggdrop.conf':
<Botman> [11:31] wrong # args: should be "proc name args body"
<Botman> while executing
<Botman> "proc my:spin {nick host handle chan text} "
<Botman> (file "scripts/russia.tcl" line 3)
<Botman> invoked from within
<Botman> "source scripts/russia.tcl"
<Botman> (file "eggdrop.conf" line 306)
<Botman> [11:31] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
-
DCC session closed
Uhhh.. damn { thing My appologies.. I've forgot to add it.. ;(
I also don't think/see the use of the else's is a good ideea, but hey.. is your code.. do whatever you want with it and don't complain when it you've screwed it up kidding
Once the game is over, the king and the pawn go back in the same box.
and indeeed its a greate idea why in the hell would you wana run the bot when its not opped suggestion maybe also do the tick tick tick thing i mean the putserv in front to show if the bot is opped cause if the bot joins an other chan with same script .. well lol that could give some strange effects if you know what i mean ..
bind pub - !spin my:spin
proc my:spin {nick host handle chan text} {
putserv "PRIVMSG $chan :$nick spins the wheel ... Round and round it goes ... Where it will point nobody knows ..."
putserv "PRIVMSG $chan :Where it will point nobody knows .... Tick Tick Tick ... Tick Tick ... Tick"
switch -- [expr [rand 7] + 1] {
"1" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :And $nick gets a free kick out of here ... *snicker*"
putserv "KICK $chan $nick :Your free kick!"
}
}
"2" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "MODE $chan +b *!*@[lindex [split $host @] 1]"
}
}
"3" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
set mask "*!*@[lindex [split $host @] 1]"
newchanban $chan $mask $::botnick "Here is your prise.. 10 mintes ban!" 10
}
}
"4" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :And $nick gets op in here.."
putserv "MODE $chan +o $nick"
}
}
"5" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :One deop comming up! hehe"
putserv "MODE $chan -o $nick"
}
}
"6" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :One -voice comming up!"
putserv "MODE $chan -v $nick"
}
}
"7" {
if {![botisop $chan]} {
putserv "PRIVMSG $chan :I'm not oped here so I can't give you your prise.."
} else {
putserv "PRIVMSG $chan :One +voice comming up!"
putserv "MODE $chan +v $nick"
}
}
}
}