To use, type /bragspam It'll show the amount of channels you are on, the modes, and how many people you have control over.
Plans for 2.0: Oper status, with lusers output, refining r aliases
Code:
; Status Bragging Script
; Version: 1.0
; by: Helio
;
; note: all stats have there own identifiers.
; Feel free to edit the bragspam alias
; to your own liking.
;
; To Do:
; Taking into accound admin/IRCop status
; Refining the $rpower alias
; ie, taking out botserv bots,
; logical duplicates,
; etc..
;
;
alias bragspam {
/say I am on $rchans channels, across $rnets networks. I have $rops ops, $rhops halfops, and $rvoice voices. I have power over $rpower people
}
; r* aliases
; You can use these identifiers anywhere you want, they are global.
; so if you only want your channel total, you can //say $rchans
; etc
;
alias rchans {
set %total 0
set %counter 1
while (%counter <= $scon(0)) {
/scon %counter
/set %chans $chan(0)
set %total $calc(%total + %chans)
inc %counter
}
return %total
}
alias rops {
set %ops 0
set %counter 1
while (%counter <= $scon(0)) {
/scon %counter
set %scounter 1
while (%scounter <= $chan(0)) {
if ($me isop $chan(%scounter)) inc %ops
inc %scounter
}
inc %counter
}
return %ops
}
alias rpower {
set %peeps 0
set %counter 1
while (%counter <= $scon(0)) {
/scon %counter
set %scounter 1
while (%scounter <= $chan(0)) {
if ($me isop $chan(%scounter)) set %peeps $calc(%peeps + $nick($chan(%scounter),0) - 1)
if ($me ishop $chan(%scounter)) set %peeps $calc(%peeps + $nick($chan(%scounter),0) - 1)
inc %scounter
}
inc %counter
}
return %peeps
}
alias rhops {
set %hops 0
set %counter 1
while (%counter <= $scon(0)) {
/scon %counter
set %scounter 1
while (%scounter <= $chan(0)) {
if ($me ishop $chan(%scounter)) inc %hops
inc %scounter
}
inc %counter
}
return %hops
}
alias rvoice {
set %voice 0
set %counter 1
while (%counter <= $scon(0)) {
/scon %counter
set %scounter 1
while (%scounter <= $chan(0)) {
if ($me isvoice $chan(%scounter)) inc %voice
inc %scounter
}
inc %counter
}
return %voice
}
alias rops {
}
raw 266:*:{
}
alias rnets {
return $scon(0)
}
_________________________
WyldRyde IRC Network Steve Mermelstein Root Admin
Updated by Phil to take into account the number of olines a person has. Shows the number of people a person has nonabusive power over (i.e. the number of people in channels where the person is an op or halfop)
Code:
; Status Bragging Script
; Version: 1.0
; by: Helio
alias bragspam {
/say I am on $rchans channels, across $rnets networks. I have %olinecount olines, $rops ops, $rhops halfops, and $rvoice voices. I have non-abusive power over $rpower people
}
; r* aliases
; You can use these identifiers anywhere you want, they are global.
; so if you only want your channel total, you can //say $rchans
; etc
;
alias rchans {
set %total 0
set %counter 1
while (%counter <= $scon(0)) {
/scon %counter
/set %chans $chan(0)
set %total $calc(%total + %chans)
inc %counter
}
return %total
}
alias rops {
set %ops 0
set %counter 1
while (%counter <= $scon(0)) {
/scon %counter
set %scounter 1
while (%scounter <= $chan(0)) {
if ($me isop $chan(%scounter)) inc %ops
inc %scounter
}
inc %counter
}
return %ops
}
alias rpower {
set %peeps 0
set %counter 1
while (%counter <= $scon(0)) {
/scon %counter
set %scounter 1
while (%scounter <= $chan(0)) {
if ($me isop $chan(%scounter)) set %peeps $calc(%peeps + $nick($chan(%scounter),0) - 1)
if ($me ishop $chan(%scounter)) set %peeps $calc(%peeps + $nick($chan(%scounter),0) - 1)
inc %scounter
}
inc %counter
}
return %peeps
}
alias rhops {
set %hops 0
set %counter 1
while (%counter <= $scon(0)) {
/scon %counter
set %scounter 1
while (%scounter <= $chan(0)) {
if ($me ishop $chan(%scounter)) inc %hops
inc %scounter
}
inc %counter
}
return %hops
}
alias rvoice {
set %voice 0
set %counter 1
while (%counter <= $scon(0)) {
/scon %counter
set %scounter 1
while (%scounter <= $chan(0)) {
if ($me isvoice $chan(%scounter)) inc %voice
inc %scounter
}
inc %counter
}
return %voice
}
alias rops {
}
raw 266:*:{
}
alias rnets {
return $scon(0)
}
alias rtest {
if ($regex($1-,(h?)i)) {
echo -a Yes
}
}
on 1:START:{
unset %countednets
set %olinecount 0
}
raw 381:*:{
set %curbragwork ¬ $+ $network $+ ¬
if (%curbragwork !isin %countednets) {
set %countednets %countednets $+ %curbragwork
inc %olinecount
}
}
_________________________
Ryan Services Administrator viper.wyldryde.org
; r* aliases ; You can use these identifiers anywhere you want, they are global. ; so if you only want your channel total, you can //say $rchans ; etc ;
"<@Andrew12> I am on 15 channels, across 2 networks. I have olines, 5 ops, 2 halfops, and 4 voices. I have non-abusive power over 193 people" It just says i have olines... how can i fix this?
OzarkMark
n00b
Registered: 12/21/07
Posts: 17
Loc: Arkansas, USA
Are you running any other scripts like NNS?
I found that NNS doesn't play well with bragspam but haven't had time to figure out why. (I'm thinking it may be a variable that is the same) maybe %counter.
I found that NNS doesn't play well with bragspam but haven't had time to figure out why. (I'm thinking it may be a variable that is the same) maybe %counter.
Just a thought...
OzarkMark I am in NNS but it still works... i dunno why it did that but it works now thanks anyways
A couple days ago I found out that I could do "/set %olinecount " to anything I want and I can make it say anything that I want so sometimes I do "/set %olinecount Freekie's" so it would say "[16:03] <@Andrew12> I am on 8 channels, across 1 networks. I have Freekie's olines, 4 ops, 3 halfops, and 1 voices. I have non-abusive power over 182 people" :P
Phil
Registered: 10/23/06
Posts: 86
Loc: Warwick, UK
Originally Posted By: Andrew12
A couple days ago I found out that I could do "/set %olinecount " to anything I want and I can make it say anything that I want so sometimes I do "/set %olinecount Freekie's" so it would say "[16:03] <@Andrew12> I am on 8 channels, across 1 networks. I have Freekie's olines, 4 ops, 3 halfops, and 1 voices. I have non-abusive power over 182 people" :P
I'm not overly sure of the point in posting this comment. You make it out to be some kind of code exploit. Of course you can modify the contents of variables in your own client since there is no protection provided in mIRC similar to that something like Object Orientation would provide.
A couple days ago I found out that I could do "/set %olinecount " to anything I want and I can make it say anything that I want so sometimes I do "/set %olinecount Freekie's" so it would say "[16:03] <@Andrew12> I am on 8 channels, across 1 networks. I have Freekie's olines, 4 ops, 3 halfops, and 1 voices. I have non-abusive power over 182 people" :P
I'm not overly sure of the point in posting this comment. You make it out to be some kind of code exploit. Of course you can modify the contents of variables in your own client since it no protection for these things is given in mIRC that something like Object Orientation would provide.
Phil
Phil, I just thought it was kind of cool how you could do that... And I wanted to tell everyone else about it... but it doesn't really matter.
Phil
Registered: 10/23/06
Posts: 86
Loc: Warwick, UK
Yes, it's about as cool as a match. You can also type "I have 2^16 badgers", but it doesn't mean a whole lot. It's a fun semi-informative script and modifying its output in that way is frankly pointless.
Erick
n00b
Registered: 02/26/08
Posts: 18
Loc: USA
Matches are cool. But a message to the children: Don't play with matches!
Anyways, I had no idea you could edit the variables like that. I also didn't know that only OO languages had protected variables that people were unable to access.
_________________________
Owner of #erickjohnson chat Voiced in #chris Oped and Hoped in many channels
Matches are cool. But a message to the children: Don't play with matches!
Anyways, I had no idea you could edit the variables like that. I also didn't know that only OO languages had protected variables that people were unable to access.
And this is most of the reason i had posted that comment.
!triggers cannot be executed from the computer where the script is installed. So if the user of the script types !brag nothing will happen. If some other user types !brag, then you will execute /bragspam.
Bad idea in my opinion.
_________________________
Justin Services Admin on Resurrection and Neptune
WyldRyde, WyldRyde IRC Network, WyldRyde Corp, WyldRyde Corporation, WyldRyde.org, WyldRyde.net, and WyldRyde Chat Script are trademarks of WyldRyde Corporation. All other trademarks and tradenames are property of their respective owners.