Powertrip
mIRC Code
+ 3 likes
Please Register to submit score.
| Average Score | 7.8 (of 6 scores) |
| Date Added | Jul 13, 2009 |
| Last Updated | Nov 10, 2009 |
| Tags | brag op ops power powertrip pwn show trip |
Description
Just a simple little thinggy to show...:
amount of networks you are on,
amount of channels you are on,
total usermodes (~&!@%+) if any,
amount of users you have control over.
can probably be done a lot better, but that's for another time.
I've updated it a little bit, it shows a percentage too now, and fixed a bug so that it'll actually show a '0' when you do not have a certain mode anywhere.
amount of networks you are on,
amount of channels you are on,
total usermodes (~&!@%+) if any,
amount of users you have control over.
| Code: |
| <~Knoeki> I'm on 48 channels, spread across 6 networks. Powers: 4 ~, 4 &, 1 @, 2 %, 13 +. I'm more important than 432/2110 (20.47%) lamers. |
can probably be done a lot better, but that's for another time.
I've updated it a little bit, it shows a percentage too now, and fixed a bug so that it'll actually show a '0' when you do not have a certain mode anywhere.
mIRC Snippet:
Powertrip
Posted on Aug 10, 2009 11:14 pm
Posted on Aug 10, 2009 11:14 pm
Knoeki,
The main reason the channel count is gonna be off
is the use of the $comchan indentifier.
Total user count is gonna be off sometimes because
it will count users more than once if they are in
more than one of your channels and at the very least
could be counted easier with the $ial identifier.
All of this can be accomplished without the need for
/set and /unset %varibles to eliminate harddrive writes.
btw: $network and $server are not the same thing.
$network may have more than one $server and some
$network may allow more than one connection.
also (unfortunately) $network and $server DO NOT
have to be unique names on the planet.
The DOMAIN name MUST be unique and so must $serverip
BUT unfortunately $network and $server are sent out
by the server in the raw 001-005 lines during connect and
can be anything they set it to. This is sorta off topic
but this means if you ever write like an auto-ident to
NickServ/ChanServ maybe better to use $serverip for security.
review my snippet at: http://www.hawkee.com/snippet/6559/
The main reason the channel count is gonna be off
is the use of the $comchan indentifier.
Total user count is gonna be off sometimes because
it will count users more than once if they are in
more than one of your channels and at the very least
could be counted easier with the $ial identifier.
All of this can be accomplished without the need for
/set and /unset %varibles to eliminate harddrive writes.
btw: $network and $server are not the same thing.
$network may have more than one $server and some
$network may allow more than one connection.
also (unfortunately) $network and $server DO NOT
have to be unique names on the planet.
The DOMAIN name MUST be unique and so must $serverip
BUT unfortunately $network and $server are sent out
by the server in the raw 001-005 lines during connect and
can be anything they set it to. This is sorta off topic
but this means if you ever write like an auto-ident to
NickServ/ChanServ maybe better to use $serverip for security.
review my snippet at: http://www.hawkee.com/snippet/6559/
mIRC Snippet:
Powertrip
Posted on Aug 12, 2009 10:23 am
Posted on Aug 12, 2009 10:23 am
Gooshie:
I have not put much effort in this, obviously ;_) I might make a better version at some point, but thanks for the feedback, which I'll address now:
The reason I've used /unset at the end, is not because I've used /set anywhere (just look!), but more because for some reason, some stray variables got left behind.
I don't get your whole point about about $network and $server, when have I ever claimed that these are the same? Also, how is it even relevant to this script at all?
Yours seems nice, but doesn't keep track of modes other than +o and +v, which is a shame imho, but might be chosen because you do not find it neccisary.
thanks for the feedback, much appreciated :_)
I have not put much effort in this, obviously ;_) I might make a better version at some point, but thanks for the feedback, which I'll address now:
The reason I've used /unset at the end, is not because I've used /set anywhere (just look!), but more because for some reason, some stray variables got left behind.
I don't get your whole point about about $network and $server, when have I ever claimed that these are the same? Also, how is it even relevant to this script at all?
Yours seems nice, but doesn't keep track of modes other than +o and +v, which is a shame imho, but might be chosen because you do not find it neccisary.
thanks for the feedback, much appreciated :_)
mIRC Snippet:
Powertrip
Posted on Aug 12, 2009 11:07 pm
Posted on Aug 12, 2009 11:07 pm
Knoeki,
%pt.total.nicks and %pt.mode.count.1-6 did not get
declared as local variables with the var command.
A call to a variable that is not set or declared
is set as a global variable by mIRC. The first time
that an undeclared variable is incrimented mIRC will
set it to 1 (one) thus the following three lines
give the same results.
inc %tmp.nick.count
set %tmp.nick.count 1
%tmp.nick.count = 1
<Knoeki> "...how is it even relevant to this script at all?"
output => spread across $+(,$calc(%pt.net.count - 1),) networks
this counts servers => var %pt.net.total $scon(0)
many chat visitors wont know the difference between servers and
networks so i guess its ok to use either term in this type script.
The only people that need to understand the difference between
$server and $network is those who script the client and are
concerned with multiserver issues.
Even when taking into account that this snippet counts
disconnected servers and unjoined channels there is still
a few count errors.
%pt.total.nicks and %pt.mode.count.1-6 did not get
declared as local variables with the var command.
A call to a variable that is not set or declared
is set as a global variable by mIRC. The first time
that an undeclared variable is incrimented mIRC will
set it to 1 (one) thus the following three lines
give the same results.
inc %tmp.nick.count
set %tmp.nick.count 1
%tmp.nick.count = 1
<Knoeki> "...how is it even relevant to this script at all?"
output => spread across $+(,$calc(%pt.net.count - 1),) networks
this counts servers => var %pt.net.total $scon(0)
many chat visitors wont know the difference between servers and
networks so i guess its ok to use either term in this type script.
The only people that need to understand the difference between
$server and $network is those who script the client and are
concerned with multiserver issues.
Even when taking into account that this snippet counts
disconnected servers and unjoined channels there is still
a few count errors.
mIRC Snippet:
Powertrip
Posted on Aug 13, 2009 1:47 pm
Posted on Aug 13, 2009 1:47 pm
btw knoeki gave you a 7/10 nice work.











