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.
entrapmen
Voice
Posts: 27 Joined: Tue Jul 08, 2003 9:08 am
Location: TR
Post
by entrapmen » Tue Jul 08, 2003 10:05 am
<@ll the world is about smiles and cries>
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Tue Jul 08, 2003 1:13 pm
A more simple way is to add the !start and the !stop directly in the badword.tcl file, rather than load/unload it.
Once the game is over, the king and the pawn go back in the same box.
entrapmen
Voice
Posts: 27 Joined: Tue Jul 08, 2003 9:08 am
Location: TR
Post
by entrapmen » Tue Jul 08, 2003 4:58 pm
caesar wrote: A more simple way is to add the !start and the !stop directly in the badword.tcl file, rather than load/unload it.
errr how
) dats the point
how could i do dat?
<@ll the world is about smiles and cries>
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Wed Jul 09, 2003 2:13 am
Add this in the badword.tcl file, at the end of it:
Code: Select all
set badstatus 1
bind pub m !start bad:start
bind pub m !stop bad:stop
proc bad:start {nick uhost hand chan text} {
if {$::badstatus == "1"} {
putserv "PRIVMSG $chan :Badwords is already started."
return
}
set badstatus 1
putserv "PRIVMSG $chan :Badwords is now started."
}
proc bad:stop {nick uhost hand chan text} {
if {$::badstatus == "0"} {
putserv "PRIVMSG $chan :Badwords is already stoped."
return
}
set badstatus 0
putserv "PRIVMSG $chan :Badwords is now stoped."
}
and:
Code: Select all
if {$::badwords != "1"} { return }
inside the *badword* proc..
Once the game is over, the king and the pawn go back in the same box.