Sponsored Links




Topic Options
Rate This Topic
#16 - 08/01/06 01:20 AM IRC ops in red and number of users in chan
usrbingeek Administrator Offline
WyldRyde Staff

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:

Code:
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
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]
usrbingeek Administrator Offline
WyldRyde Staff

Registered: 07/31/06
Posts: 512
Loc: Burlington, VT
.
_________________________
WyldRyde IRC Network
Steve Mermelstein
Root Admin

#!/usr/bin/geek
My Amazon.com Wishlist

Please 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]
boredcollegekid Offline
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]
OzarkMark Offline
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)
_________________________
OzarkMark
#greenerhomeowner, #chris, #NUKE
www.GreenerHomeowner.com

Top
#390 - 12/22/07 02:39 PM Re: IRC ops in red and number of users in chan [Re: OzarkMark]
Ryan Administrator Offline
WyldRyde Staff

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]
TuxedoJericho Offline
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]
usrbingeek Administrator Offline
WyldRyde Staff

Registered: 07/31/06
Posts: 512
Loc: Burlington, VT
yeah, might be better to change the first line to:
Code:
on *:OP:#: who $chan
_________________________
WyldRyde IRC Network
Steve Mermelstein
Root Admin

#!/usr/bin/geek
My Amazon.com Wishlist

Please no PMs. Please post to a topic instead so your question(s) may benefit others.

Top
#1488 - 04/01/08 02:12 PM Re: IRC ops in red and number of users in chan [Re: usrbingeek]
Eric Offline
n00b

Registered: 12/26/07
Posts: 8
Loc: Texas
Hmm, when I use it, it doesn't have to do a /who in every channel. Just using the raw commands works.

Top
#1517 - 04/03/08 11:33 AM Re: IRC ops in red and number of users in chan [Re: Eric]
boredcollegekid Offline
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


Recent Posts
Accept - Reject Pm script. Final Version.
by Kevin_28
1 second ago
Script to join channels with 30+ users.
by usrbingeek
Yesterday at 02:32 PM
Rules for Voiced (+v) users in #Chris
by Brandon
Yesterday at 01:05 PM
Ustream IRC Auto Identtifyer
by Dark_Aaron
Yesterday at 10:42 AM
IRC Bot Platforms
by Sam Ferry
Yesterday at 02:58 AM
Get a free forum for your channel!
by Sam Ferry
Yesterday at 02:48 AM
Ban Appeal Process
by Sam Ferry
Yesterday at 02:36 AM
Flood Protection
by Dark_Aaron
01/03/09 08:14 PM
IRCop Script
by Samuel
01/03/09 04:57 AM
A simple topic script.
by Samuel
01/03/09 04:56 AM
Complete Autojoin script.
by Samuel
01/03/09 04:47 AM
Voice
by Matt Smith
01/02/09 07:54 PM
Recent Pics
Xchat
mIRC on Linux
mIRC on Linux???
Who's Online
1 registered (Kevin_28), 4 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
usrbingeek 512
Kat 281
Phil 112
iPhone 109
Freekie 88
Justin 81
CCMike 78
techman224 75
tengrrl 58
wirelesspacket 53
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.