Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: UnderCover on October 11, 2004, 07:34 AM

Title: BNLS login through telnet/php
Post by: UnderCover on October 11, 2004, 07:34 AM
whats the ip and port for BNLS also wut format do i need to send info to the server?

I finally got everything down...
Title: Re: BNLS login through telnet/php
Post by: Soul Taker on October 11, 2004, 07:37 AM
Quote from: UnderCover on October 11, 2004, 07:34 AM
I finally got everything down...
Guess you figured it out then!

If not (:P), try the BNLS spec, which you can find via Skywing's profile or something.
Title: Re: BNLS login through telnet/php
Post by: UnderCover on October 11, 2004, 07:44 AM
dang............

I thought i had it down but then it liked screwed up....

anyone know the ip/port and the format of the string?
Title: Re: BNLS login through telnet/php
Post by: Kp on October 11, 2004, 08:48 AM
Quote from: UnderCover on October 11, 2004, 07:44 AManyone know the ip/port and the format of the string?

Yes.  Soul Taker even told you where to find the address information, even though it's been talked about so much I'm surprised you don't know it from memory.  As for the format of the string, what string?  There's dozens, probably hundreds, of format strings useful relating to battle.net and the clients which use it.
Title: Re: BNLS login through telnet/php
Post by: Blaze on October 11, 2004, 02:13 PM
The BNLS Server is located at
bnls.valhallalegends.com:9367 or
63.161.183.202:9367.
The alternate server is
www.valhallalegends.com:9367 or
63.161.183.207:9367.

Hope this helps.
Title: Re: BNLS login through telnet/php
Post by: UnderCover on October 11, 2004, 02:15 PM
thx for help but i have a question on the formatted data on what is sent to the server...


i read the format in the documenttaiton  but tired it and it didn;t really work...

can anyone give me an example of a string u would send to the server?
Title: Re: BNLS login through telnet/php
Post by: Kp on October 11, 2004, 09:38 PM
Quote from: UnderCover on October 11, 2004, 02:15 PMcan anyone give me an example of a string u would send to the server?

Sure.  "foo".
Title: Re: BNLS login through telnet/php
Post by: Newby on October 11, 2004, 09:48 PM
Or "bar"!
Title: Re: BNLS login through telnet/php
Post by: UnderCover on October 12, 2004, 01:46 PM
lol i meant a working string


lol like

\x03 or something sending cd key/username/password wutever to the server...
Title: Re: BNLS login through telnet/php
Post by: shadypalm88 on October 12, 2004, 04:09 PM
Quote from: UnderCover on October 12, 2004, 01:46 PM
lol i meant a working string


lol like

\x03 or something sending cd key/username/password wutever to the server...
First of all, there's really nothing quite as annoying as people putting "..."s all through their posts.  Makes it sound like you think the person reading it should be telepathic and know what you want before you even say it.  Or that they're stupid.  Just a pet peeve of sorts.

Moving right along, I don't know if PHP has any constructs or functions that let you put the raw bytes of a number in a string without hardcoding it (\x##, as you said).  Although the PHP Manual (http://www.php.net/manual) might be a good place to look if such a thing exists.  If you do want to hard-code it, you should be able to use the BNLS protocol specification (http://www.valhallalegends.com/yoni/BNLSProtocolSpec.txt) to figure things out; it wouldn't be terribly complicated.

I mean, this is besides the point that PHP is probably totally unsuited to whatever you want to do with BNLS.
Title: Re: BNLS login through telnet/php
Post by: Kp on October 12, 2004, 08:47 PM
Quote from: UnderCover on October 12, 2004, 01:46 PMlol i meant a working string
\x03 or something sending cd key/username/password wutever to the server...

Your post opens one of several possibilities, none terribly desirable.
1) You have no clue whatsoever about what you're doing.  We don't like people asking us questions when they don't even understand the question.
2) You know exactly what you want and asked us anyway.  We don't like people asking questions to which they already know the answer with certainty.
3) You have an inkling of what to do and dismissed our answer out of hand without trying it.  If you had tried it, you would know that "foo" is a perfectly good and functional string.

I could go on, but I think you get the point.
Title: Re: BNLS login through telnet/php
Post by: The-FooL on October 13, 2004, 05:33 PM
http://www.valhallalegends.com/yoni/BNLSProtocolSpec.txt