• Welcome to Valhalla Legends Archive.
 

I wonder if anyone could help

Started by Logitech, September 18, 2006, 03:57 PM

Previous topic - Next topic

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?

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


Any advice, gratefully received. Thanks.

Logitech

Just so you know, this has been resolved thanks to the kind help of a member here.


rabbit

It will be a great day when Feanor's code finally dies.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

UserLoser

Quote from: rabbit on September 18, 2006, 06:55 PM
It will be a great day when Feanor's code finally dies.

It will be a great day when any stolen code finally dies.*

rabbit

Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

l2k-Shadow


servers = Val("&h" & StrToHex(StrReverse(Mid(data, 9, 4))))

::)
enough said.
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.