WhatPulse; User stats

News, Snippets & Assistance with IRC scripting

Moderators: Moderator, Global Moderator

Post Reply
Endo
Hero Member
Hero Member
Posts: 1158
Joined: Wed May 05, 2004 2:05 am

WhatPulse; User stats

Post by Endo »

Code: Select all

alias wpw {
  if ($hget(whatpulse1) != $null) { hfree whatpulse1 }
  hmake whatpulse1
  set %wpwho $1-
  set %wpmethod aline -n @WhatPulse
  window -ae @WhatPulse
  if ($sock(whatpulse1).to != $null) { sockclose whatpulse1 }
  if (%wpproxy == $null) {
    sockopen whatpulse1 whatpulse.org 80
  }
  else {
    sockopen whatpulse1 %wpproxy %wpproxyport
  }
}

on *:sockopen:whatpulse1: {
  if (%wpproxy == $null) {
    sockwrite -n whatpulse1 GET /api/user.php?account= $+ %wpwho  HTTP/1.1
  }
  else {
    sockwrite -n whatpulse1 GET http://whatpulse.org/api/user.php?account= $+ %wpwho  HTTP/1.1
  }
  sockwrite -n whatpulse1 Host: whatpulse.org
  sockwrite -n whatpulse1 User-Agent: WhatPulse mIRC script
  sockwrite -n whatpulse1
}

on *:sockread:whatpulse1: {
  sockread %wptemp
  wpsockparse1 %wptemp
}

alias -l wpsockparse1 {
  if ($1 == W) {
    hadd whatpulse1 $2 $3-
  }
  if ($1- == X END) {
    %wpmethod AccountName: $hget(whatpulse1, AccountName)
    %wpmethod Country: $hget(whatpulse1, Country)
    %wpmethod DateJoined: $hget(whatpulse1, DateJoined)
    %wpmethod Homepage: $hget(whatpulse1, Homepage)
    %wpmethod LastPulse: $hget(whatpulse1, LastPulse)
    %wpmethod Pulses: $hget(whatpulse1, Pulses)
    %wpmethod TotalKeyCount: $hget(whatpulse1, TotalKeyCount)
    %wpmethod TotalMouseClicks: $hget(whatpulse1, TotalMouseClicks)
    %wpmethod AvKeysPerPulse: $hget(whatpulse1, AvKeysPerPulse)
    %wpmethod AvClicksPerPulse: $hget(whatpulse1, AvClicksPerPulse)
    %wpmethod AvKPS: $hget(whatpulse1, AvKPS)
    %wpmethod AvCPS: $hget(whatpulse1, AvCPS)
    %wpmethod Rank: $hget(whatpulse1, Rank)
    %wpmethod TeamID: $hget(whatpulse1, TeamID)
    %wpmethod TeamName: $hget(whatpulse1, TeamName)
    %wpmethod TeamMembers: $hget(whatpulse1, TeamMembers)
    %wpmethod TeamKeys: $hget(whatpulse1, TeamKeys)
    %wpmethod TeamDescription: $hget(whatpulse1, TeamDescription)
    %wpmethod TeamDateFormed: $hget(whatpulse1, TeamDateFormed)
    %wpmethod RankInTeam: $hget(whatpulse1, RankInTeam)
    %wpmethod -----------------------------------------------------
    sockclose whatpulse1
    unset %wpwho
    unset %wpmethod
    unset %wptemp
  }
}
Just modified the script used to get your own stats, big and bulky because im awkward /smile.gif' class='bbc_emoticon' alt=':)' /> ;; Usage /wpw (will not say if nick is invalid etc)
[align=center]

Image

[color=\"#333333\"]Last Blog:[/color][color=\"Green\"] SUMMER [/color][color=\"black\"](30/11/06)[/color]

[/align]
Tami
Administrator
Administrator
Posts: 10892
Joined: Sun Apr 25, 2004 6:05 am

WhatPulse; User stats

Post by Tami »

Don't you think you should tell people what WhatPulse is if they aren't aware? /blum.gif' class='bbc_emoticon' alt=':P' />
Image

[color=\"#41211C\"]It takes years to build up trust and only seconds to destroy it

[/color]
Endo
Hero Member
Hero Member
Posts: 1158
Joined: Wed May 05, 2004 2:05 am

WhatPulse; User stats

Post by Endo »

[url="http://whatpulse.org"]http://whatpulse.org[/url] for all your desires about what this is /blum.gif' class='bbc_emoticon' alt=':P' /> Basically, you install a keylogger which records your keys and clicks, then uploads them and keeps tally, you can join teams etc, just harmless fun
[align=center]

Image

[color=\"#333333\"]Last Blog:[/color][color=\"Green\"] SUMMER [/color][color=\"black\"](30/11/06)[/color]

[/align]
Josh
Hero Member
Hero Member
Posts: 4627
Joined: Fri Jun 04, 2004 7:54 am

WhatPulse; User stats

Post by Josh »

Also, we encourage you to join our own KillaNet team which is located here: [url="http://whatpulse.org/stats/team.php?tid=3654"]http://whatpulse.org/stats/team.php?tid=3654[/url]
[align=center]

Image

“If you stop learning, you stop living.” ~Tami Quiring

“It's the rare man who understands the value of a single perfect rose.”

[/align]
bctrainers
Newbie
Newbie
Posts: 10
Joined: Thu Dec 30, 2004 9:22 pm

WhatPulse; User stats

Post by bctrainers »

Don't mean to bump this topic... but would ya look at them ranks. /blum.gif' class='bbc_emoticon' alt=':P' />
mobil1_oils
Hero Member
Hero Member
Posts: 1873
Joined: Sat May 08, 2004 11:42 pm

WhatPulse; User stats

Post by mobil1_oils »

Nooo... you're almost beating me!!! /cry.gif' class='bbc_emoticon' alt=':(' />...

*types more*
radar
Hero Member
Hero Member
Posts: 632
Joined: Wed Jun 16, 2004 5:37 pm

WhatPulse; User stats

Post by radar »

Join us. We have cookies /smile.gif' class='bbc_emoticon' alt=':)' />
Post Reply

Return to “IRC Scripting”