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 

!voiced

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Snorly
Voice


Joined: 17 Apr 2006
Posts: 25

PostPosted: Mon Apr 17, 2006 2:56 pm    Post subject: !voiced Reply with quote

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 Smile

example
* <nick1> !voiced
* <nick2> 166 Voiced users at #channel
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Apr 17, 2006 4:27 pm    Post subject: Reply with quote

Code:
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."
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts


Last edited by Sir_Fz on Wed Apr 19, 2006 5:58 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Snorly
Voice


Joined: 17 Apr 2006
Posts: 25

PostPosted: Wed Apr 19, 2006 2:55 pm    Post subject: Reply with quote

* <nick> !voiced
* <eggdrop> 162 voiced people on #chan.
it displays all users on chan not just voiced users Sad
can u fix?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Apr 19, 2006 6:00 pm    Post subject: Reply with quote

I fixed the code above, had a typo in:
Code:
if {[isvoice $nick $chan]} { incr i }

$nick should be $n.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Snorly
Voice


Joined: 17 Apr 2006
Posts: 25

PostPosted: Thu Apr 20, 2006 7:29 am    Post subject: Reply with quote

thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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