Valhalla Legends Forums Archive | Battle.net Bot Development | SID_NEWS_INFO

AuthorMessageTime
MuMMa^~
Ok. I was looking round Bnetdocs and found: http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=17

And i know i have to insert byte, dword 3x for the information.

But how many of each? The answer is proberly REALLY simple but could somebody tell me how i would work it out, and what it is.


Edit:
[code]
                Packet.InsertBYTE &H0
                Packet.InsertDWORD &H0
                Packet.InsertDWORD &H0
                Packet.InsertDWORD &H0
                Packet.SendPacket bnetsocket, &H46
[/code]

Would it be something like that?
February 19, 2005, 12:20 PM
Arta
It looks like you were looking at the reply, and not the request.

The request is just one DWORD, and its value is the timestamp of the last news item you saved - if you want all news, just set it to zero.
February 19, 2005, 12:29 PM
MuMMa^~
Oh whoops i didnt see that request!

So its

[code]
Packet.InsertDWORD &H0
Packet.Sendpacket bnetsocket, &H46
[/code]

Yes?

Edit:

I tried that and got a msgbox bring &H46 up and it came back as "70" ?
February 19, 2005, 12:33 PM
UserLoser.
[quote author=MuMMa^~ link=topic=10624.msg100512#msg100512 date=1108816422]
Oh whoops i didnt see that request!

So its

[code]
Packet.InsertDWORD &H0
Packet.Sendpacket bnetsocket, &H46
[/code]

Yes?

Edit:

I tried that and got a msgbox bring &H46 up and it came back as "70" ?
[/quote]

70 in hexadecimal is 46.. don't ask us about the message box, it's your code
February 19, 2005, 12:42 PM
MuMMa^~
Oh right, but is this right for getting news ?

[code]
Packet.InsertDWORD &H0
Packet.SendPacket &H46
[/code]

Because if it is, ive told it to display &H46 and its displaying 70, and not the news ect...

What am i doing wrong?
February 19, 2005, 12:45 PM
^
I havent really started looking at SID_NEWS_INFO on my bot at the moment. But on the information you gave me, and looking at bnet docs. What you doing seems right to be honest, but your saying it displays "70". Which is the hexi decimal of 46. As i said before, it seems ok, but maybe im wrong. You will have to wait for the more experienced people to help you on this one!
February 19, 2005, 2:18 PM
^
To all:

I added him on msn and helped him fix it, nevermind :D  :P  ::)  8)  ;D
February 19, 2005, 5:10 PM
MuMMa^~
Doh, it doesnt work!

I was told it is Chr(13), is that right?

[code]
If Mid(data,5,1) = chr(13) then
[/code]

Is that right?
February 19, 2005, 6:26 PM

Search