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 with script - MassHighlight

Support & discussion of released scripts, and announcements of new releases.
Post Reply
r
r00terr0r
Voice
Posts: 3
Joined: Wed Aug 22, 2012 5:04 pm

Help with script - MassHighlight

Post by r00terr0r »

I wrote some script for masshl, and work perfect on most eggdrops, but doesnt work on one eggdrop.
Its on same version, and on same machine hosted.
Here is code:

Code: Select all

bind pub - !masshl pub_masshl
set nicklist ""; 
proc pub_masshl {nick mask hand channel text} {
set nicklist [chanlist $channel]
if {([isop $nick $channel]) || ([ishalfop $nick $channel])} {
	putserv "privmsg $channel \002$text\002 $nicklist" 
} else { putserv "privmsg $channel <$nick> Only opers can use this command!!!" }
}
Doesnt work chanlist command, also doesnt work [expr {int(rand()*100)}] (to take random number) and some other commands.

Can anyone help me with this problem?
User avatar
Madalin
Master
Posts: 310
Joined: Fri Jun 24, 2005 11:36 am
Location: Constanta, Romania
Contact:

Post by Madalin »

Try this code i corrected some things

Code: Select all

bind pub - !masshl pub_masshl

proc pub_masshl {nick mask hand channel text} {

	set nicklist [chanlist $channel]

	if {([isop $nick $channel]) || ([ishalfop $nick $channel])} {
		putserv "privmsg $channel :Chanlist: $nicklist"
	} else {
		putserv "privmsg $channel :<$nick> Only opers can use this command!!!"
	}
}
And about the rand code ( [expr {int(rand()*100)}] ) works for me and i am using tcl8.5 and eggdrop v1.6.20
Post Reply