egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with script - MassHighlight

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
r00terr0r
Voice


Joined: 22 Aug 2012
Posts: 3

PostPosted: Wed Aug 22, 2012 5:11 pm    Post subject: Help with script - MassHighlight Reply with quote

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:

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?
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Wed Jan 30, 2013 12:35 pm    Post subject: Reply with quote

Try this code i corrected some things

Code:

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
_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber