This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
sever
Voice
Posts: 9 Joined: Sat Mar 27, 2004 8:04 pm
Post
by sever » Sun Mar 28, 2004 6:01 pm
set colist "#sever"
bind pub - !help proc_help
proc proc_help {nick host hand chan text} {
global pro
if {[string match *[string tolower $chan]* $::colist] && [botisop $chan] && $nick!=$::botnick} {
if {pro = "on"} { return 0 }
putserv "PRIVMSG $chan :» \037\002h\002elp:\037 !rank ¬ !server ¬ !bot ¬ more coming soon"
set pro on
timer 10 "unset pro"
}
}
that doesnt work.
ich have read
http://peterre.com/characters.html but i dont undestandt it!
please help
thanks
Xpert
Halfop
Posts: 88 Joined: Mon Mar 08, 2004 7:03 am
Post
by Xpert » Mon Mar 29, 2004 3:10 am
Change the:
to:
Xpert.
CrazyCat
Revered One
Posts: 1286 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Mon Mar 29, 2004 5:53 am
Xpert
Halfop
Posts: 88 Joined: Mon Mar 08, 2004 7:03 am
Post
by Xpert » Mon Mar 29, 2004 6:06 am
Yeah, forgot one '='
Xpert.
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Mon Mar 29, 2004 12:57 pm
if {[string match *[string tolower $chan]* $::colist] && [botisop $chan] && $nick!=$::botnick} {
If you intend to use just on channel in the colist variable then use the folowing code:
Code: Select all
if {[string equal -nocase $chan $::colist] && [botisop $chan] && ![string equal -nocase $nick $::botnick]} {
else replace the "equal" with "match" and put $chan in "*$chan*" Also.. will be a lot smater if you move the nick check thing outside and before this if like. There is no reason to use that chek at the end. Either place it first or ad another if before this one that will do an return or what you want. Same thing goes with the if the bot is op check.
Once the game is over, the king and the pawn go back in the same box.
sever
Voice
Posts: 9 Joined: Sat Mar 27, 2004 8:04 pm
Post
by sever » Mon Mar 29, 2004 2:13 pm
set colist "#sever"
bind pub - !help proc_help
proc proc_help {nick host hand chan text} {
global pro
if {[string equal -nocase $chan $::colist] && [botisop $chan] && ![string equal -nocase $nick $::botnick]} {
if {$pro == "on"} { return 0 }
putserv "PRIVMSG $chan :» \037\002h\002elp:\037 !rank ¬ !server ¬ !bot ¬ more coming soon"
set pro on
timer 10 "unset pro"
}
}
doesnt work
Tcl error [proc_help]: can't read "pro": no such variable
i have .restart the eggdrop, but it doesnt work.
sever
Voice
Posts: 9 Joined: Sat Mar 27, 2004 8:04 pm
Post
by sever » Mon Mar 29, 2004 3:16 pm
set colist "#sever"
bind pub - !help proc_help
proc proc_help {nick host hand chan text} {
global pro
if {[string match *[string tolower $chan]* $::colist] && [botisop $chan] && ![string match *[string tolower $chan]* $::botnick]} {
if {![info exists ::pro]} {
putserv "PRIVMSG $chan :» \037\002h\002elp:\037 !rank !server !bot more coming soon"
} else { return 0 }
set ::pro "on"
timer 5 "
that works, a friend has help me!
thx