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.
Help for those learning Tcl or writing their own scripts.
Hero
Halfop
Posts: 49 Joined: Tue Jun 26, 2012 6:27 pm
Location: root@localhost
Contact:
Post
by Hero » Thu Aug 16, 2012 9:18 am
Hello This Code Is Not Working And It There Is No Bug In This Code But I DOnt Know Why It Wont Works Please Help
Code: Select all
proc oper:sapart {nick uhost hand chan text} {
if {![string equal -nocase $chan "#Help"]} return
if {![isop $nick $chan]} return
if {[scan $text {%s%s%s} user channel reason] != 3} {
puthelp "NOTICE $nick :usage: !sapart <nick> <channel> <messsage>"
return
}
if {[isop $user $chan]} {
puthelp "NOTICE $nick :$user Is Also Helper, You Cannot Use This Command On Them"
return
}
putserv "SAPART $user $channel $reason"
}
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Thu Aug 16, 2012 10:46 am
Why don't you reply to your
old topic ?
Do you have the
line in the file that's loaded to the bot?
If yes, are you trying this on #help channel (case insensitive)? Are you a channel operator (meaning having @) on that channel? What happens when you type just "!sapart" in there?
Once the game is over, the king and the pawn go back in the same box.
Hero
Halfop
Posts: 49 Joined: Tue Jun 26, 2012 6:27 pm
Location: root@localhost
Contact:
Post
by Hero » Thu Aug 16, 2012 10:53 am
caesar i already posted but didnt got any reply thats why
Hero
Halfop
Posts: 49 Joined: Tue Jun 26, 2012 6:27 pm
Location: root@localhost
Contact:
Post
by Hero » Thu Aug 16, 2012 10:58 am
Now Done Caesar Thanks For Help