Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: RealityRipple on April 06, 2006, 01:35 PM

Title: Diablo II Realms.
Post by: RealityRipple on April 06, 2006, 01:35 PM
Hi... I'd like some information on loging in to d2 realms... but I don't mean info on the packets or what they do.
1) when do you connect to them?
2) what do you do after you log in to a character?
3) does anybody have images for each character class in a new-char level 1 no item appearance? You know, for a list view in icon mode or something like that.
4) and final question... what's with the 8 char max? it looks like you can set it to query any number of characters.... anyone care to explain that to me?
Thanks guys (and girls if there are any here :-X) .
Title: Re: Diablo II Realms.
Post by: Hdx on April 06, 2006, 03:19 PM
C->S BNCS: Protocol Byte (0x01)
C->S BNCS: (0x50) SID_AUTH_INFO (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=2)
S->C BNCS: (0x25) SID_PING (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=6)
C->S BNCS: (0x25) SID_PING (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=191)
S->C BNCS: (0x50) SID_AUTH_INFO (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=3)
C->S BNCS: (0x51) SID_AUTH_CHECK (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=4)
S->C BNCS: (0x51) SID_AUTH_CHECK (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=27)
C->S BNCS: (0x33) SID_GETFILETIME (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=40) (Optional: bnserver-D2DV.ini)
S->C BNCS: (0x33) SID_GETFILETIME (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=41) (Optional)
C->S BNCS: (0x3A) SID_LOGONRESPONSE (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=367)
S->C BNCS: (0x3A) SID_LOGONRESPONSE (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=366)
C->S BNCS: (0x40) SID_QUERYREALMS2 (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=395)
S->C BNCS: (0x40) SID_QUERYREALMS2 (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=394)
C->S BNCS: (0x3E) SID_LOGONREALMX (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=14)
S->C BNCS: (0x3E) SID_LOGONREALMX (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=15)
C->S MCP: Protocol Byte (0x01)
C->S MCP: (0x01) MCP_STARTUP (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=93)
S->C MCP: (0x01) MCP_STARTUP (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=94)
C->S MCP: (0x19) MCP_CHARLIST2 (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=409)
S->C MCP: (0x19) MCP_CHARLIST2 (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=408)
C->S MCP: (0x07) MCP_CHARLOGON (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=97)
S->C MCP: (0x07) MCP_CHARLOGON (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=98)
C->S MCP: (0x12) MCP_MOTD (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=155) (Optional)
C->S BNCS: (0x0B) SID_GETCHANNELLIST (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=33) (Optional)
C->S BNCS: (0x0A) SID_ENTERCHAT (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=32)
S->C MCP: (0x12) MCP_MOTD (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=154) (Optional)
S->C BNCS: (0x0B) SID_GETCHANNELLIST (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=46) (Optional)
S->C BNCS: (0x0A) SID_ENTERCHAT (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=38)

Thats the login sequance using realms,
2) After picking a char, just enter chat using that information.
3)
http://www.jbls.org/upload/files/ass.bmp
http://www.jbls.org/upload/files/ama.bmp
http://www.jbls.org/upload/files/barb.bmp
http://www.jbls.org/upload/files/dru.bmp
http://www.jbls.org/upload/files/nec.bmp
http://www.jbls.org/upload/files/paly.bmp
http://www.jbls.org/upload/files/sorc.bmp
http://www.jbls.org/upload/files/unk.bmp

4) Yell at blizard, they decided 8 chars, jsut like 8 connections.
~-~(HDX)~-~
Title: Re: Diablo II Realms.
Post by: RealityRipple on April 06, 2006, 03:32 PM
Thanks Blake, and never mind about the pictures. I got some nice ones from Blizzard's site. :)

Edit: haha, those are the same ones i found!
Title: Re: Diablo II Realms.
Post by: Hdx on April 06, 2006, 03:35 PM
Figured, I was pretty sure i got them form there site, but i couldnt rememer if it was a fansite or something :/
Oh well, any other questions?`
~-~(HDX)~-~
Title: Re: Diablo II Realms.
Post by: UserLoser on April 06, 2006, 03:39 PM
Quote from: RealityRipple on April 06, 2006, 01:35 PM
Hi... I'd like some information on loging in to d2 realms... but I don't mean info on the packets or what they do.
1) when do you connect to them?
2) what do you do after you log in to a character?
3) does anybody have images for each character class in a new-char level 1 no item appearance? You know, for a list view in icon mode or something like that.
4) and final question... what's with the 8 char max? it looks like you can set it to query any number of characters.... anyone care to explain that to me?
Thanks guys (and girls if there are any here :-X) .

1) Whenever you want
2) Whatever you want
3) Yes
4) Maybe at one time the character limit was to be limited locally instead of remotely on the server, but who knows.

You're welcome.
Title: Re: Diablo II Realms.
Post by: RealityRipple on April 06, 2006, 07:30 PM
Well, now that everyone hates me, I have a little problem.
It seems that when I send the CharList2 (0x19)... I don't get any response... No disconnect, nothing...
Is the CharList2 packet supposed to be this:
07 00 19 08 00 00 00 or did I mess up somewhere? Is it packet length, then ID? or did I get those backwards?
Title: Re: Diablo II Realms.
Post by: Hero on April 06, 2006, 07:43 PM
   Public Sub SendMCPCharList2()
        With pBuf
            .InsertDWORD 8
            .SendMCP MCP_CHARLIST2
        End With
    End Sub


That is what I use, works fine.
Title: Re: Diablo II Realms.
Post by: Hdx on April 06, 2006, 08:00 PM
Found his problem, he was sending MCP_STARTUP twice, thats a bad thing.
~-~(HDX)~-~
Title: Re: Diablo II Realms.
Post by: RealityRipple on April 06, 2006, 08:12 PM
Surprisingly though, it didn't disconnect me for it.... Anyway, thanks guys. Everything's working now except for flags, but i'll have that sorted out soon.
Title: Re: Diablo II Realms.
Post by: Ringo on April 06, 2006, 08:53 PM
Iv got the original portrails kicking around somwhere if u want them.(clicky) (http://www.geocities.com/ringomail712/D2Portrails.zip)
Link:
http://www.battle.net/diablo2exp/basics/bnetchat.shtml
and i made some okish ones here (http://forum.valhallalegends.com/index.php?topic=14226.0) if there any use.
Title: Re: Diablo II Realms.
Post by: RealityRipple on April 06, 2006, 09:38 PM
Thank's Ringo, I already have everything I need, though. :)
Title: Re: Diablo II Realms.
Post by: RealityRipple on April 07, 2006, 08:26 PM
Well, that was quite a bit of censoring.....

Anyway, one more question... Proxies. Do you do the same thing as for normal BNCS connection for the MCP connection? I'm afraid I don't know much about how proxies work...