Valhalla Legends Forums Archive | Battle.net Bot Development | Why am i getting these packets back

AuthorMessageTime
FrostWraith
Ok so I'm new and I've never done this before. But after i send &H1 and &H50 i get &H37 and &H80 back. ?!?!? Did i send something wrong before?

[code]
Private Sub Command1_Click()
wskBNET.SendData Chr(&H1)
Call Send0x50
End Sub

Public Sub Send0x50()
    buff.InsertDWORD &H0
    buff.InsertDWORD IX86
    buff.InsertDWORD STAR
    buff.InsertDWORD &H1
    buff.InsertDWORD &H0
    buff.InsertDWORD &H0
    buff.InsertDWORD &H0
    buff.InsertDWORD &H0
    buff.InsertDWORD &H0
    buff.InsertNTString "USA"
    buff.InsertNTString "United States"
    buff.SendPacket &H50
End Sub
[/code]

The variables are correct i hope
Public Const IX86            As Long = &H49583836
Public Const STAR            As Long = &H53544152

April 5, 2006, 6:03 AM
Myndfyr
[quote author=FrostWraith link=topic=14697.msg149842#msg149842 date=1144216984]
Ok so I'm new and I've never done this before. But after i send &H1 and &H50 i get &H37 and &H80 back. ?!?!? Did i send something wrong before?
[/quote]
I'll bet you're confusing hex and decimal.  0x50 (or in VB terms, &H50) is 80 in base 10 and 0x25 (or &H25) is 37 in base 10.
April 5, 2006, 6:06 AM
FrostWraith
That would be it. Thx!
April 5, 2006, 6:08 AM
l2k-Shadow
i hope you realize your verbyte is incorrect, for STAR/SEXP it is 0xCF not 0x01.
April 5, 2006, 6:12 AM
Myndfyr
[quote author=l2k-Shadow link=topic=14697.msg149847#msg149847 date=1144217541]
i hope you realize your verbyte is incorrect, for STAR/SEXP it is 0xCF not 0x01.
[/quote]

He'd've realized it as soon as he got "Invalid version" back.  ;)
April 5, 2006, 6:15 AM
HdxBmx27
[quote author=l2k-Shadow link=topic=14697.msg149847#msg149847 date=1144217541]
i hope you realize your verbyte is incorrect, for STAR/SEXP it is 0xCF not 0x01.
[/quote]
0xCD not 0xCF
~-~(HDX)~-~
April 5, 2006, 3:17 PM

Search