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.

!voiced

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
S
Snorly
Voice
Posts: 25
Joined: Mon Apr 17, 2006 2:44 pm

!voiced

Post by Snorly »

Hello i want a script for eggdrop
i have it for mIRC but i want it for eggdrop
mIRC:
on *:text:!voiced:#:/msg $chan $pusers(v):pcb Voiced users at $chan
thank you :)

example
* <nick1> !voiced
* <nick2> 166 Voiced users at #channel
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind pub - !voiced voiced

proc voiced {nick uhost hand chan arg} {
 set i 0
 foreach n [chanlist $chan] {
  if {[isvoice $n $chan]} { incr i }
 }
 puthelp "privmsg $chan :$i voiced people on $chan."
}
Last edited by Sir_Fz on Wed Apr 19, 2006 5:58 pm, edited 1 time in total.
S
Snorly
Voice
Posts: 25
Joined: Mon Apr 17, 2006 2:44 pm

Post by Snorly »

* <nick> !voiced
* <eggdrop> 162 voiced people on #chan.
it displays all users on chan not just voiced users :(
can u fix?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

I fixed the code above, had a typo in:

Code: Select all

if {[isvoice $nick $chan]} { incr i }
$nick should be $n.
S
Snorly
Voice
Posts: 25
Joined: Mon Apr 17, 2006 2:44 pm

Post by Snorly »

thank you
Post Reply