statsme v0.1 (basic)

Release your script here.
State:
- Author
- What it does
- Perhaps a little guide.
- Also, if the snippet is of any use to the community, it has a chance of getting posted on the main page, so don't hesitate to submit/ask!

statsme v0.1 (basic)

Postby cldz » Wed Dec 23, 2009 11:22 am

This is a basic statsme script that shows you how many channels you're in, how many you're @Oped in, how many users you have control over and how many users you are connected to via channels on you're server.

I will update this alot if i can get some suggestions from people, i'm new here so feedback is appriciated.

Syntax: /statsme

Example:

(This will all be displayed with the echo command.)

[ Statsme v0.1 by Cldz @ #CSCups on QNet. ]
[ You are in 8 channels, @Oped in 2. ]
[ You have control over 38 users in 2 channels. ]
[ You are currently connected to 1870 users on blueyonder1.uk.quakenet.org. ]

Code: Select all
alias statsme {
  if (!$server) { echo -a You're not connected to a server $me $+ . }
  else {
    getvars
    echo -a 7[1 Statsme v0.1 by Cldz @ #CSCups on QNet. 7]
    echo -a 7[1 You are in $chan(0) channels, @Oped in %oped  $+ . 7]
    echo -a 7[1 You have control over %ctrl users in %oped channels. 7]
    echo -a 7[1 You are currently connected to %users users on $server $+ . 7]
    clearvars
  }
}

alias getvars {
  set %x $chan(0)
  while (%x) {
    inc %users $nick($chan(%x),0)
    if ($me isop $chan(%x)) {
      inc %oped
      inc %ctrl $nick($chan(%x),0)
      dec %x
    }
    else {
      dec %x
    }
  }
}

alias clearvars {
  unset %oped
  unset %voiced
  unset %users
  unset %ctrl
}
cldz
 

Re: statsme v0.1 (basic)

Postby fraguk » Wed Dec 23, 2009 12:10 pm

cldz wrote:This is a basic statsme script that shows you how many channels you're in, how many you're @Oped in, how many users you have control over and how many users you are connected to via channels on you're server.

I will update this alot if i can get some suggestions from people, i'm new here so feedback is appriciated.

Syntax: /statsme

Example:

(This will all be displayed with the echo command.)

[ Statsme v0.1 by Cldz @ #CSCups on QNet. ]
[ You are in 8 channels, @Oped in 2. ]
[ You have control over 38 users in 2 channels. ]
[ You are currently connected to 1870 users on blueyonder1.uk.quakenet.org. ]

Code: Select all
alias statsme {
  if (!$server) { echo -a You're not connected to a server $me $+ . }
  else {
    getvars
    echo -a 7[1 Statsme v0.1 by Cldz @ #CSCups on QNet. 7]
    echo -a 7[1 You are in $chan(0) channels, @Oped in %oped  $+ . 7]
    echo -a 7[1 You have control over %ctrl users in %oped channels. 7]
    echo -a 7[1 You are currently connected to %users users on $server $+ . 7]
    clearvars
  }
}

alias getvars {
  set %x $chan(0)
  while (%x) {
    inc %users $nick($chan(%x),0)
    if ($me isop $chan(%x)) {
      inc %oped
      inc %ctrl $nick($chan(%x),0)
      dec %x
    }
    else {
      dec %x
    }
  }
}

alias clearvars {
  unset %oped
  unset %voiced
  unset %users
  unset %ctrl
}


you could add voiced and regular stats to it.
[ You are in 8 channels, opped on 6, voiced on 1, and regular on 1]
fraguk
 

Re: statsme v0.1 (basic)

Postby cldz » Wed Dec 23, 2009 12:23 pm

already working on that and a few other things
cldz
 


Return to Mirc Scripting Release

Who is online

Users browsing this forum: No registered users and 1 guest

cron