NetGamers.org

NetGamers.Org - The Premier Online Gaming Network
It is currently Fri May 24, 2019 2:53 pm

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Mon Dec 22, 2003 1:30 am 
Offline
Pro NetGamer

Joined: Wed Aug 29, 2001 12:00 am
Posts: 264
Location: purgatory
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`


Last edited by PyRo on Mon Jan 12, 2004 3:07 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 22, 2003 7:23 pm 
Offline
Wannabe

Joined: Sun Jul 21, 2002 6:46 pm
Posts: 75
now make your scripts work in xchat!

_________________
Play erepublik


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 22, 2003 8:11 pm 
Offline
Services Coder

Joined: Sat Nov 17, 2001 12:00 am
Posts: 616
Location: Behind You
I wish I used mIRC!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 22, 2003 10:06 pm 
Offline
Wannabe

Joined: Sun Jul 21, 2002 6:46 pm
Posts: 75
i'm constantly trying to make mirc work perfectly in wine

or something

_________________
Play erepublik


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 23, 2003 12:05 am 
Offline
Pro NetGamer

Joined: Wed Aug 29, 2001 12:00 am
Posts: 264
Location: purgatory
Kumnaa wrote:
now make your scripts work in xchat!

no since i don't use xchat and I'm not going make it for irssi since i don't have a clue about perl :p


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 14, 2005 11:20 pm 
Offline
Wannabe

Joined: Sun Jul 21, 2002 6:46 pm
Posts: 75
Nobody uses xchat anymore so you can concentrate on irssi now.

_________________
Play erepublik


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 15, 2005 10:43 am 
Offline
Channel Services

Joined: Sat Jul 14, 2001 12:00 am
Posts: 174
Location: #cservice
Oi I use xchat :/

_________________
Jez
Channel Services Supervisor.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 17, 2006 7:16 am 
Offline
Newbie

Joined: Tue Jun 10, 2003 8:42 am
Posts: 4
Location: BH - MG - Brazil
didnt work

-P- Sorry, I don't know who =$me is.


Top
 Profile  
 
 Post subject: Re:
PostPosted: Wed Aug 20, 2008 5:38 pm 
Offline
Newbie

Joined: Wed Aug 20, 2008 5:32 pm
Posts: 1
Intruder wrote:
didnt work

-P- Sorry, I don't know who =$me is.


//msg p info $me


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group