To make this work for some specific channel(s) either use "setudef flag" and make a special flag that will be enabled/disabled (via ".chanset #channel +/-your_flag" from dcc chat/telnet with eggdrop) to make the script be active/inactive on that channel and add a line like:
to stop/continue where the "your_flag" is disabled/enabled (meaning -/+your_flag in ".chaninfo #channel"). As for your second question, use a slower queue like "pushmode" folowed by "flushmode"
Once the game is over, the king and the pawn go back in the same box.
You should not use flushmode (I haven't noticed significantly improoved speed anyway), if you want pushmode to add modes into one line from diffrent TCL calls. You might be lucky to not trigger a queue flush till all -b are processed (its not triggered every main loop cycle afaik), you can also be unlucky .
btw. the proc can't handle -bbbb unless you bind to raw MODE and check for -bbbb in the arguments.
I have told you some stuff with that can accomplish what you have wanted in the first place. Have you even bothered to give that a try? May I doubt that you did?
Once the game is over, the king and the pawn go back in the same box.
Sorry I mined that with a little bit help, I can finished it to do what I want, but now I'm understanding that I wrote in the wrong forum.
@Moderators
Please move the threat in the scripts request forum, or I have to duplicate it there. Thank you