Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Luxer on August 31, 2004, 05:26 PM

Title: Exact Packets
Post by: Luxer on August 31, 2004, 05:26 PM
I am using StarCraft to connect to battle.net though a custom proxey... Don't ask. What I am trying to say is that I am a newb (if you have not figured that out yet  ::) ) and that I have no clue about how StarCraft connects. All I know is that I can make my program connect with StarCraft and join a channel.

Here is my question:

Could somone tell me EXACTLY what to send to battle.net to join the void? This is what I have:

on JoinTheVoid()
bnetsocket.write "what do I put here to join the void?"
end JoinTheVoid()
Title: Re:Exact Packets
Post by: LordNevar on August 31, 2004, 06:37 PM
"/join the void"
Title: Re:Exact Packets
Post by: UserLoser. on August 31, 2004, 06:44 PM
Quote from: LordNevar on August 31, 2004, 06:37 PM
"/join the void"

On Starcraft, no that wouldn't work.
Title: Re:Exact Packets
Post by: LordNevar on August 31, 2004, 07:05 PM
Than I stand corrrected.
Title: Re:Exact Packets
Post by: Banana fanna fo fanna on August 31, 2004, 07:58 PM
i think it might be 0e but i forget
Title: Re:Exact Packets
Post by: Eli_1 on August 31, 2004, 08:11 PM
Yeah, it's 0x0E.

The first 4 bytes of your packet (the data you send):
(BYTE) 0xFF
(BYTE) 0x0E
(WORD) Packet length including the 4 byte header

The rest:
(STRING) Your message


The hex dump of one may look something like this, when you're done.

0000: FF 0E 09 00 77 6F 30 74 00                                  ΓΏ...wo0t.
Title: Re:Exact Packets
Post by: l2k-Shadow on September 01, 2004, 02:30 PM
Try to make your life easier by using a packetbuffer class and then just


Sub OnChannel
PacketBuffer.InsertNTString "/join The Void"
PacketBuffer.SendPacket &HE
End Sub


could that work? If you are connecting using a proxy you might need to set it up little differently to work with the proxy server... <--- newb himself pardon me :|
Title: Re:Exact Packets
Post by: Networks on September 01, 2004, 05:01 PM
Quote from: l2k-Shadow on September 01, 2004, 02:30 PM
Try to make your life easier by using a packetbuffer class and then just


Sub OnChannel
PacketBuffer.InsertNTString "/join The Void"
PacketBuffer.SendPacket &HE
End Sub


could that work? If you are connecting using a proxy you might need to set it up little differently to work with the proxy server... <--- newb himself pardon me :|

I believe it functions the same way with or without being connected to a proxy server.
Title: Re:Exact Packets
Post by: l2k-Shadow on September 02, 2004, 12:07 AM
well then there we go :)