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.
C
CBUg
Post
by CBUg » Thu Jul 24, 2003 9:43 am
Hi there, since 2 weeks i am writting a anti-overtake script for the qnet.
now i got my first unsolveable error. :/
[15:31] wrong # args: should be "proc name args body"
while executing
"proc l_prot_banmode {nick uhost hand chan mc moden} {
global lchans lchanmode
if {[isbotnick $nick] || ![string match "$chan" "lchans"]} {return}
..."
The complete src if following:
bind mode - "* +k" l_prot_banmode
bind mode - "* +i" l_prot_banmode
bind mode - "* +l" l_prot_banmode
proc l_prot_banmode {nick uhost hand chan mc moden} {
global lchans lchanmode
if {[isbotnick $nick] || ![string match "$chan" "lchans"]} {return}
putquick "PRIVMSG
TheLBot@lightweight.quakenet.org :chanlev $chan $nick -$chanmode"
if {[botisop $chan]} {
putquick "MODE $chan -o+b $nick $uhost"
}
if {[botonchan $chan]} && [botisop $chan]} {
putquick "KICK $chan $nick :\002AntiOvertake Script\002 - Don't change Chanmodes!"
}
}
Can anyone find a failure ? i found none. ... the script worked fine as i used:
proc l_prot_banmode {nick uhost hand chan mc moden} {
global lchans lchanmode
if {[isbotnick $nick] || ![string match "$chan" "lchans"]} {return}
putquick "PRIVMSG
TheLBot@lightweight.quakenet.org :chanlev $chan $nick -$chanmode"
putquick "MODE $chan -o+b $nick $uhost"
putquick "KICK $chan $nick :\002AntiOvertake Script\002 - Don't change Chanmodes!"
}
Papillon
Owner
Posts: 724 Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no
Post
by Papillon » Thu Jul 24, 2003 10:14 am
Code: Select all
if {[botonchan $chan]} && [botisop $chan]} {
remove the extra }
Elen sila lúmenn' omentielvo
C
CBUg
Post
by CBUg » Thu Jul 24, 2003 2:10 pm
oh damn not seen... thnx
MINImi
Voice
Posts: 30 Joined: Sat Oct 11, 2003 6:52 am
Post
by MINImi » Sat Oct 11, 2003 8:20 am
hmm when i copy this the script doenst work
BarkerJr
Op
Posts: 104 Joined: Sun Mar 30, 2003 1:25 am
Contact:
Post
by BarkerJr » Sat Oct 11, 2003 9:32 am
What's it say is wrong?
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sat Oct 11, 2003 4:08 pm
also, the:
Code: Select all
if {[isbotnick $nick] || ![string match "$chan" "lchans"]} {return}
should be:
Code: Select all
if {[isbotnick $nick] || ![string match -nocase $chan $lchans]} {return}
Once the game is over, the king and the pawn go back in the same box.