| View previous topic :: View next topic |
| Author |
Message |
r00terr0r Voice
Joined: 22 Aug 2012 Posts: 3
|
Posted: Wed Aug 22, 2012 5:11 pm Post subject: Help with script - MassHighlight |
|
|
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 |
|
 |
Madalin Master

Joined: 24 Jun 2005 Posts: 310 Location: Constanta, Romania
|
Posted: Wed Jan 30, 2013 12:35 pm Post subject: |
|
|
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 |
|
 |
|