• Home
  • Servers
  • Chat
  • Channels
  • Commands
  • Forum
  • FAQ
  • Software
  • Quotes
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#8 - 08/01/06 01:00 AM Brag Script
usrbingeek Offline

WyldRyde Staff

Registered: 07/31/06
Posts: 646
Loc: Burlington, VT
Originally posted by Helio:

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

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

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

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top
#681 - 01/22/08 01:46 PM Re: Brag Script [Re: usrbingeek]
Ryan Offline
Over 50 posts

Registered: 08/20/06
Posts: 76
Loc: USA
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

Please do not PM me for support; the forums are where your answered questions may help others in the future.

Top
#682 - 01/22/08 02:30 PM Re: Brag Script [Re: Ryan]
Eric Offline
n00b

Registered: 12/26/07
Posts: 8
Loc: Texas
Does anyone have the one where you can compare how many channels you're in with another person?

Top
#696 - 01/25/08 04:21 AM Re: Brag Script [Re: Eric]
Glitch Offline
n00b

Registered: 12/19/07
Posts: 7
Loc: Oklahoma
This is from the script from above...

; 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
;


Top
#1530 - 04/04/08 05:03 PM Re: Brag Script [Re: Glitch]
Andrew12 Offline
n00b

Registered: 02/29/08
Posts: 20
Loc: Maryland
"<@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?

Top
#1539 - 04/06/08 04:02 AM Re: Brag Script [Re: Andrew12]
cmillg9 Offline
n00b

Registered: 03/26/08
Posts: 15
Loc: around here
mirc freezes evertime i type /bragspam

Top
#1577 - 04/09/08 03:05 PM Re: Brag Script [Re: cmillg9]
OzarkMark Offline
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.

Just a thought...

_________________________
OzarkMark
#greenerhomeowner, #chris, #NUKE
www.GreenerHomeowner.com

Top
#1757 - 04/26/08 11:00 AM Re: Brag Script [Re: OzarkMark]
Andrew12 Offline
n00b

Registered: 02/29/08
Posts: 20
Loc: Maryland
Originally Posted By: OzarkMark
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.

Just a thought...


OzarkMark I am in NNS but it still works... i dunno why it did that but it works now thanks anyways smile

Top
#1783 - 04/27/08 04:07 PM Re: Brag Script [Re: Andrew12]
Andrew12 Offline
n00b

Registered: 02/29/08
Posts: 20
Loc: Maryland
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

Top
#1784 - 04/27/08 04:20 PM Re: Brag Script [Re: Andrew12]
Phil Offline
Over 200 posts

Registered: 10/23/06
Posts: 205
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.

Phil


Edited by Phil (04/27/08 04:23 PM)

Top
Page 1 of 2 1 2 >


Moderator:  Jeff, mandy, usrbingeek