Valhalla Legends Forums Archive | Battle.net Bot Development | [MCP] Parse0x04 to connect to D2GS

AuthorMessageTime
Racial
Dim Result As Long
'(WORD) Request ID
'(WORD) Game token
'(WORD) Unknown (0)
'(DWORD) IP of D2GS Server
'(DWORD) Game hash
'(DWORD) Result
ReqID = pDebuffer.DebuffWORD
GameToken = pDebuffer.DebuffWORD
UnknownWord = pDebuffer.DebuffWORD
D2GSIP = pDebuffer.DebuffDWORD
GameHash = pDebuffer.DebuffDWORD
Result = pDebuffer.DebuffDWORD

Select Case Result
Case &H0
wsD2GS.Connect D2GSIP, 4000



I know that this is not correct connecting to D2GS's IP, but i don't know how i am supposed to convert the ip from the Long when i have it. Any functions that can do that already?
August 26, 2008, 5:29 PM
BreW
Like I said: Check out ws2_32's inet_ntoa().
August 26, 2008, 5:49 PM

Search