This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Another request (donation available)

Old posts that have not been replied to for several years.
Locked
w
whoo

Another request (donation available)

Post by whoo »

Ive tried with no luck to code a script that grabs the current stats off utstats ..
http://ut2003stats.epicgames.com

what i would really like is something that would check for your Deathmatch rating.. and possibly your CTF.


I got as far as :

Code: Select all

proc pub_stats {nick uhost hand chan arg } {
            
set string [lindex [split $arg] 0]
if { $string == "" } {puthelp "PRIVMSG $nick :Usage = !stats <Your utstats ID>" ; return 0 }
puthelp "PRIVMSG $chan :Processing utstats request for $nick"
set count "0"

set file [open "|/usr/local/bin/lynx -source http://ut2003stats.epicgames.com/playerstats.php?player=$arg" r]
while {![eof $file]} {
gets $file html
if {$html == {}} {continue}

there is alot of text on that page and since its all dynamic i didnt know where to begin as far as trimming. I tried to trim just to the right and left of the desired value, that didnt work :)..

anyway, free help is appreciated, or if you would rather just write the whole thing over and get paid, that's cool too

tia!
User avatar
TALES
Halfop
Posts: 59
Joined: Sun Nov 09, 2003 8:45 am
Location: Netherlands
Contact:

Post by TALES »

maybe this post will help ??
http://forum.egghelp.org/viewtopic.php?t=6509

i have looked at the page lada data on it what should it be msg in chan ??
Locked