Sponsored Links


Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#8 - 08/01/06 01:00 AM Brag Script
usrbingeek Administrator Offline
WyldRyde Staff

Registered: 07/31/06
Posts: 426
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 Administrator Online   content
WyldRyde Staff

Registered: 08/20/06
Posts: 34
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
Services Administrator
viper.wyldryde.org

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

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.

Phil


Edited by Phil (04/27/08 04:23 PM)
_________________________
WyldRyde Global Admin.

Owner of Cylon and Mars
Co-Owner of Enterprise

Lusci.Com

Top
#1785 - 04/27/08 04:24 PM Re: Brag Script [Re: Phil]
Andrew12 Offline
n00b

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

Top
#1786 - 04/27/08 04:27 PM Re: Brag Script [Re: Andrew12]
Phil Administrator Offline
WyldRyde Staff

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.

Phil
_________________________
WyldRyde Global Admin.

Owner of Cylon and Mars
Co-Owner of Enterprise

Lusci.Com

Top
#1842 - 04/29/08 01:59 AM Re: Brag Script [Re: Phil]
Erick Offline
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

Top
#1845 - 04/29/08 04:01 PM Re: Brag Script [Re: Erick]
Andrew12 Offline
n00b

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

Top
#2671 - 07/19/08 03:32 PM Re: Brag Script [Re: Phil]
RyanBecker Online   content
newbie

Registered: 06/21/08
Posts: 27
Loc: South Carolina
Can someone make it so that when someone in the room types !brag it triggers it and I say it?
_________________________
Tomorrow's Forecast:
Sunni In Places, Shi'ite In Others.

Click Here To Go To My Forum!

Top
#2672 - 07/19/08 03:37 PM Re: Brag Script [Re: RyanBecker]
Jerry Offline
n00b

Registered: 04/27/08
Posts: 22
Loc: New Jeresy, USA
Add the following to the top of the script to do that.

Quote:
on *:text:!brag:#channelnamehere: { /bragspam }


If anyone knows that this is wrong or anyone has other suggestions please fell free to let me know.


Edited by Jerry (07/19/08 03:38 PM)
_________________________
--Jerry Smith
#Jerry, #macfan406, #iPhone, #nick
http://jerrysmith.us.to

Top
#2673 - 07/19/08 03:40 PM Re: Brag Script [Re: Jerry]
Justin Administrator Offline
WyldRyde Staff

Registered: 10/20/07
Posts: 59
Loc: Arizona
!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

Top
#2692 - 07/20/08 11:05 PM Re: Brag Script [Re: Justin]
Jerry Offline
n00b

Registered: 04/27/08
Posts: 22
Loc: New Jeresy, USA
That is true, sorry I forgot about that one.
_________________________
--Jerry Smith
#Jerry, #macfan406, #iPhone, #nick
http://jerrysmith.us.to

Top
Page 1 of 2 1 2 >


Recent Posts
!add !edIT !del for a mIRC bot
by Jerry
Yesterday at 06:41 PM
Kat
by techman224
08/18/08 10:11 PM
Hello #turtles People....
by techman224
08/18/08 10:06 PM
Looking for Half-ops and Ops for #techman
by techman224
08/18/08 09:57 PM
New Advertising Channel #advertising.
by techman224
08/18/08 09:43 PM
Rules for Voiced (+v) users in #Chris
by Bloomedis
08/15/08 04:12 AM
Chris Thanks
by iPhone
08/15/08 03:52 AM
Who ownes Wyldryde?
by techman224
08/14/08 09:10 AM
Spamming and other general notes...
by Zetacon
08/14/08 01:48 AM
New game on Wyldryde.
by techman224
08/13/08 09:36 PM
Flash Chat and strange 'flashing' display
by techman224
08/13/08 06:51 PM
Unable to view user profiles?
by boredcollegekid
08/12/08 06:24 PM
Recent Pics
Old school IRC
How to use Google!
TIX
Who's Online
0 Registered (), 5 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
usrbingeek 426
Kat 228
iPhone 86
Phil 86
Freekie 77
CCMike 63
Justin 59
wirelesspacket 51
KY_Wildcat 48
tengrrl 46
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.