Valhalla Legends Forums Archive | Battle.net Bot Development | I wonder if anyone could help

AuthorMessageTime
Logitech
Hello all,

I can see from recent posts that a lot of bots need updating to account for the changes logging in. I'd be grateful for any advice as to how I can implement the changes. Firstly, am I looking in the right place?

[code]Public Sub parseBNET(ByVal data As String)
Dim PacketData As String
On Error Resume Next
Dim packetid As Integer
Dim usrindex As Integer
Dim tempb As String, rb As Long
packetid = Asc(Mid(data, 2, 1))
'AddPackets vbgreen, "&H" & packetid
If BNLS = True Then
    Select Case packetid
    Case &H50
                servers = Val("&h" & StrToHex(StrReverse(Mid(data, 9, 4))))
                mpqname = Mid(data, 25, 12)
                HASH = Mid(data, 38, Len(data) - 2)
                mpqname = Val(Mid(mpqname, 8, 1))
                InsertDWORD GetBNLSByte()
                InsertDWORD CLng(mpqname)
                InsertNTString HASH
                sendBNLSPacket &H9[/code]

Any advice, gratefully received. Thanks.
September 18, 2006, 8:57 PM
Logitech
Just so you know, this has been resolved thanks to the kind help of a member here.

September 18, 2006, 9:36 PM
rabbit
It will be a great day when Feanor's code finally dies.
September 18, 2006, 11:55 PM
UserLoser
[quote author=rabbit link=topic=15740.msg158412#msg158412 date=1158623731]
It will be a great day when Feanor's code finally dies.
[/quote]

It will be a great day when any stolen code finally dies.*
September 18, 2006, 11:58 PM
rabbit
Hm.  Wurd.
September 19, 2006, 12:05 AM
l2k-Shadow
[code]
servers = Val("&h" & StrToHex(StrReverse(Mid(data, 9, 4))))
[/code]
::)
enough said.
September 19, 2006, 12:30 AM

Search