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.

mass hl/slap script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
e
elbandido
Voice
Posts: 4
Joined: Tue May 01, 2012 2:07 am

mass hl/slap script

Post by elbandido »

As
Last edited by elbandido on Thu May 16, 2013 10:16 am, edited 1 time in total.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

proc massslap {nick uhost hand chan text args} {
	# dump only 25 nicks per line
	set chanList [chanlist $chan]
	while {[llength $chanList] != 0} {
		puthelp "PRIVMSG $chan :[join [lrange $chanList 0 25]]"
		set chanList [lrange $chanList 25 end]
	}
}
Right now it's set to dump 25 nicks per line, adjust it to your needs.

Oh, and you don't need:

Code: Select all

set lista "${lista} $userraw" 
use lappend instead.

If you want to remove the bot from the list then add this:

Code: Select all

set pos [lsearch $chanList $::botnick]
set chanList [lreplace $chanList $pos $pos]
before the while loop.
Once the game is over, the king and the pawn go back in the same box.
Post Reply