egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HLSTATS (Version 1 ALPHA)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
Wannabe
Voice


Joined: 10 Feb 2006
Posts: 17

PostPosted: Thu May 03, 2007 8:06 pm    Post subject: HLSTATS (Version 1 ALPHA) Reply with quote

Yes you read correctly this is alpha, this is a script provided to prove that this IS possible, and to provide a base code for users who wish to complete there own, its currently setup for NS not CS, but it should give you a good idea of where to begin.

I warn you now, that iam not a good tcl coder! and you will prolly be able to impove this code massivly, however i didnt see the point leaving it sat on my HDD when others could possibly use it.

Download


I wont have much time to work on this, as im working on another project for someone, however if you really need help, drop me a pm on the forums or leave a post here and ill see if i can help
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu May 03, 2007 8:29 pm    Post subject: Reply with quote

Just made a quick skim through the script and I noticed this mistake:
Code:
} elseif {$backref == 1} {
          regexp {player=(.*?)">} $::html match2 plid
          unset ::html
          urlcheck $plid 2
          # variable $lines is a list containing the html source
               set notFound 1
               set lines [split $::html \n]

You're using $::html although you have unset it; this will definitely cause a Tcl error.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Wannabe
Voice


Joined: 10 Feb 2006
Posts: 17

PostPosted: Fri May 04, 2007 11:11 am    Post subject: Reply with quote

Actually the command urlcheck $plid 2 will set html to something new, the unset just ensures its empty.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri May 04, 2007 11:35 am    Post subject: Reply with quote

Wannabe wrote:
Actually the command urlcheck $plid 2 will set html to something new, the unset just ensures its empty.

Ah then my bad, didn't notice that detail. However, the unset is not needed (it might cause an error anyway if it doesn't exist).
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri May 04, 2007 5:48 pm    Post subject: Reply with quote

Just curious what hlstats is and what this script does? =)
Back to top
View user's profile Send private message
Wannabe
Voice


Joined: 10 Feb 2006
Posts: 17

PostPosted: Sat May 05, 2007 2:46 pm    Post subject: Reply with quote

hlstats is a perl script that gathers information from the logs of a hl server, and uses it to generate a stats page for the players who use that server. This script simply allow an irc user to find information from that page and display it in irc.

although right now it only shows one stat (Kills Per Deaths) it wouldnt be too hard to add the rest, and im working on it now and then when i get time
Back to top
View user's profile Send private message
Meropie
Voice


Joined: 19 Dec 2007
Posts: 7

PostPosted: Thu Jan 31, 2008 7:45 am    Post subject: Reply with quote

sorry for the bump, but anyone can reupload it?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber