Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: CrAz3D on April 24, 2003, 07:21 PM

Title: B.Net Stats
Post by: CrAz3D on April 24, 2003, 07:21 PM
Would how I add bnet stats to a web page?
Like...USERS ONLINE:
        CURRENT GAMES:
Title: Re:B.Net Stats
Post by: Banana fanna fo fanna on April 24, 2003, 07:47 PM
You'd write a bot that logs on the chat gateway as anonymous, does queries, then takes the results of the queries and pass them to a PHP page on your server which updates the statistics on the web.
Title: Re:B.Net Stats
Post by: Camel on April 25, 2003, 11:05 PM
or you could just make a frame linking to http://ads.battle.net/publicstats
=P
Title: Re:B.Net Stats
Post by: Banana fanna fo fanna on April 26, 2003, 09:51 AM
I refuse to put a reference to a domain with "ads" in it.
Title: Re:B.Net Stats
Post by: iago on April 26, 2003, 01:24 PM
Even though it's not actually an ad? :P
Title: Re:B.Net Stats
Post by: Mesiah / haiseM on April 26, 2003, 01:47 PM
or you could just use msinet.ocx on that page, and filter out the image. w00t?
Title: Re:B.Net Stats
Post by: tA-Kane on April 26, 2003, 06:05 PM
Quote from: St0rm.iD on April 26, 2003, 09:51 AMI refuse to put a reference to a domain with "ads" in it.
Do you own a domain? Create a CNAME for ads.battle.net (using your DNS server), and put a reference to your CNAME entry instead.

If you don't own a domain or don't control your domain's subdomains (such as what you get from most free domain registrars), you could get someone else to do it for you...
*cough* ;)

Of course, this won't work if their servers actually look at the host field of the HTTP request.
Title: Re:B.Net Stats
Post by: Arta on April 27, 2003, 02:21 PM
You could, in fact, write a PHP script (or ASP, or whatever) that logs onto Bnet as CHAT and performs whatever queries you need. It might be a bit slow to run in real-time but you could run it periodically and cache the results for display on your page.
Title: Re:B.Net Stats
Post by: Mesiah / haiseM on April 27, 2003, 04:56 PM
or u could do somethin dumb like i did, make an activex control, use it with a php script, itd be a bit faster, but since the user controls it, youd have to keep it open on ur computer to do it, or something i dunno blah. o btw, its at http://www.atomic-inc.net/cb/cbexpress2.html