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 9:05 am

WhatPulse; User stats

Post by Endo »

[code]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
 }
}[/code]

Just modified the script used to get your own stats, big and bulky because im awkward <img src=\'http://www.killanet.net/forum3/public/s ... /smile.gif\' class=\'bbc_emoticon\' alt=\':)\' /> ;; Usage /wpw <nick> (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 1:05 pm

WhatPulse; User stats

Post by Tami »

Don\'t you think you should tell people what WhatPulse is if they aren\'t aware? <img src=\'http://www.killanet.net/forum3/public/s ... >/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 9:05 am

WhatPulse; User stats

Post by Endo »

[url=\"http://whatpulse.org\"]http://whatpulse.org[/url] for all your desires about what this is <img src=\'http://www.killanet.net/forum3/public/s ... >/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 2:54 pm

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: Fri Dec 31, 2004 5:22 am

WhatPulse; User stats

Post by bctrainers »

Don't mean to bump this topic... but would ya look at them ranks. <img src=\'http://www.killanet.net/forum3/public/s ... >/blum.gif\' class=\'bbc_emoticon\' alt=\':P\' />
mobil1_oils
Hero Member
Hero Member
Posts: 1873
Joined: Sun May 09, 2004 6:42 am

WhatPulse; User stats

Post by mobil1_oils »

[b][i][color=\"gray\"][font=\"tahoma\"]Nooo... you're almost beating me!!! <img src=\'http://www.killanet.net/forum3/public/s ... #>/cry.gif\' class=\'bbc_emoticon\' alt=\':(\' />...

*types more* [/b][/i][/color][/font]
radar
Hero Member
Hero Member
Posts: 632
Joined: Thu Jun 17, 2004 12:37 am

WhatPulse; User stats

Post by radar »

Join us. We have cookies <img src=\'http://www.killanet.net/forum3/public/s ... /smile.gif\' class=\'bbc_emoticon\' alt=\':)\' />
Post Reply

Return to “IRC Scripting”