This is a script I made ages ago based on the old /power scripts that state how many channels you're opped in etc, it displays you're total P access, the number of channels you've got access in and you're average access.
How to use:
- Copy the below code into mIRCs remotes (alt+r)
- type //msg p info =$me
- type /ppower to display your access etc
Code:
on ^*:NOTICE:*:?: {
if ($nick == P) && ($network == Netgamers) {
if ($1-2 == Max Logins:) { hfree -w pchans }
if ($1 == Channels:) {
if (!$hget(Pchans)) { hmake pchans 100 }
var %i = 1, %r = (.*) \((.*)\)
while ($gettok($2-,%i,44)) { var %chan = $regex($ifmatch,%r) | hadd pchans $regml(1) $regml(2) | inc %i }
if (!$isdir(db)) { mkdir db }
hsave -o pchans db\pchans.db
}
}
}
on *:Start: {
if (!$isdir(db)) { mkdir db }
hmake pchans 100
hload pchans db\pchans.db
}
alias ppower { if ($hget(pchans)) { var %i = 1, %tot = 0 | while ($hget(pchans,%i).item) { inc %tot $hget(pchans,$ifmatch) | inc %i } | me has a total of %tot access with P in a total of $hget(pchans,0).item channels which is an average of $round($calc(%tot / $hget(pchans,0).item),2) access per channel } }
Example of output:Quote:
* PyRo` has a total of 28197 access with P in a total of 113 channels which is an average of 249.53 access per channel
- PyRo`