|
|
#16 - 08/01/06 01:20 AM
IRC ops in red and number of users in chan
|
Registered: 07/31/06
Posts: 512
Loc: Burlington, VT
|
Originally posted by imheretohelp First of all i would like to make it clear that i didn't write this script but i have been given permission by the writer to post it here This script does 2 things: Highlights ircops red in the nicklist (always good to know) and when you join a chan it will tell you the total number of users, the number of ops, the number of halfops, the number of voices and the number of no voices. Here it is: on *:JOIN:#: who $chan
raw 352:*: {
if ($me ison $2) {
if ($chr(42) isin $7) && ($left($2,1) == $chr(35)) {
cline 04 $2 $6
}
haltdef
}
}
raw 366:*: {
if ($me ison $2) {
echo $2 12 Total Users:2 $nick($2,0,a)
echo $2 12 Ops:2 $nick($2,0,o) 12( $+ $round($calc($nick($2,0,o) / $nick($2,0,a) * 100),0) $+ $chr(37) $+ )
echo $2 12 Halfops:2 $nick($2,0,h) 12( $+ $round($calc($nick($2,0,h) / $nick($2,0,a) * 100),0) $+ $chr(37) $+ )
echo $2 12 Voices:2 $nick($2,0,v) 12( $+ $round($calc($nick($2,0,v) / $nick($2,0,a) * 100),0) $+ $chr(37) $+ )
echo $2 12 No Voice:2 $nick($2,0,r) 12( $+ $round($calc($nick($2,0,r) / $nick($2,0,a) * 100),0) $+ $chr(37) $+ )
}
}
raw 366:*: {
if ($me ison $2) {
echo $2 12 Total Users:2 $nick($2,0,a) 12 Innkeepers:2 $nick($2,0,o) 12( $+ $calc($nick($2,0,o) / $nick($2,0,a) * 100) $+ $chr(37) $+ ) 12 Apprentices:2 $nick($2,0,h) 12( $+ $calc($nick($2,0,h) / $nick($2,0,a) * 100) $+ $chr(37) $+ ) 12 Squires:2 $nick($2,0,v) 12( $+ $calc($nick($c2,0,v) / $nick($2,0,a) * 100) $+ $chr(37) $+ ) 12 No Voice:2 $nick($2,0,r) 12( $+ $calc($nick($2,0,r) / $nick($2,0,a) * 100) $+ $chr(37) $+ )
}
Edited by usrbingeek (08/16/06 11:26 AM)
|
|
Top
|
|
|
|
Sponsored Links
Member
    
Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
|
|
|
Top
|
|
|
|
#43 - 08/18/06 02:12 PM
Re: IRC ops in red and number of users in chan
[Re: usrbingeek]
|
Registered: 07/31/06
Posts: 512
Loc: Burlington, VT
|
.
_________________________
WyldRyde IRC Network Steve Mermelstein Root Admin #!/usr/bin/geek My Amazon.com WishlistPlease no PMs. Please post to a topic instead so your question(s) may benefit others.
|
|
Top
|
|
|
|
#318 - 12/20/07 02:53 AM
Re: IRC ops in red and number of users in chan
[Re: usrbingeek]
|
newbie
Registered: 12/19/07
Posts: 48
Loc: Tulsa, OK
|
I was wondering how I would edit the script to display Ops in one color, hops in another and so on?
_________________________
|
|
Top
|
|
|
|
#341 - 12/21/07 02:02 AM
Re: IRC ops in red and number of users in chan
[Re: boredcollegekid]
|
n00b
Registered: 12/21/07
Posts: 17
Loc: Arkansas, USA
|
To change the color of the OPS. you can change the value "04" after CLINE 04 $2 $6 to: Color code list 0 white 1 black 2 blue (navy) 3 green 4 red 5 brown (maroon) 6 purple 7 orange (olive) 8 yellow 9 lt.green (lime) 10 teal (a kinda green/blue cyan) 11 lt.cyan (cyan ?) (aqua) 12 lt.blue (royal) 13 pink (light purple) (fuchsia) 14 grey 15 lt.grey (silver) Example cline 06 $2 $6 makes the oplist PURPLE I'm not sure about the script changes to make for the H-ops. I'm sure it can be done. I would have to play with it a while since I am not familiar with the RAW codes. Maybe usrbingeek can help more. I haven't written scripts since V2 of mIRC. A lot has changed.
Edited by OzarkMark (12/21/07 02:10 AM)
|
|
Top
|
|
|
|
#390 - 12/22/07 02:39 PM
Re: IRC ops in red and number of users in chan
[Re: OzarkMark]
|
Registered: 08/20/06
Posts: 40
Loc: USA
|
This script only changes color of the IRCops (the network staff) in the nicklist; it does not change the colors of the channel operators or halfops.
To change the colors the channel ops, half ops, voiced users, and unvoiced users appear, go to the Nick Colors tab in the mIRC Address Book.
For ops, enter ~&@ in the channel modes box. For halfops, enter %. For voiced users, enter +. For the non voiced users, check the box that says No Mode.
_________________________
Ryan Services Administrator
|
|
Top
|
|
|
|
#531 - 01/01/08 01:28 AM
Re: IRC ops in red and number of users in chan
[Re: Ryan]
|
newbie
Registered: 12/24/07
Posts: 42
Loc: Whitesburg, TN
|
Steve, I think the script was causing me to disconnect becausethe MAX SENDQ was exceeded.
I take out the script, and I am fine. May want to edit this, so it doesn't check on every join/part.
_________________________
I am Gary "TuxedoJericho" Greenlee, and I support this message.
|
|
Top
|
|
|
|
#532 - 01/01/08 06:28 AM
Re: IRC ops in red and number of users in chan
[Re: TuxedoJericho]
|
Registered: 07/31/06
Posts: 512
Loc: Burlington, VT
|
yeah, might be better to change the first line to:
_________________________
WyldRyde IRC Network Steve Mermelstein Root Admin #!/usr/bin/geek My Amazon.com WishlistPlease no PMs. Please post to a topic instead so your question(s) may benefit others.
|
|
Top
|
|
|
|
#1517 - 04/03/08 11:33 AM
Re: IRC ops in red and number of users in chan
[Re: Eric]
|
newbie
Registered: 12/19/07
Posts: 48
Loc: Tulsa, OK
|
Would there be anyway to incorporate away users into this? Or is that another feature of mIRC itself that I am overlooking
_________________________
|
|
Top
|
|
|
|
Moderator: AdmiralJustin, Atri, Catt, crrj, dolsen, Freekie, Helio, Jeff, jpmk12, Justin, Kat, mandy, Mist, nobody, Phil, Pierce, Ryan, SuburbanWolf, therock247uk, ThunderIT-Allan, usrbingeek
|
|
1 registered (Kevin_28),
4
Guests and
3
Spiders online. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|