• Welcome to Valhalla Legends Archive.
 

*** Joining/Creating Games (WithCleanSlateBot)

Started by ILurker, February 07, 2003, 08:21 AM

Previous topic - Next topic

haZe

#30
heh thx for the offer tho

ILurker

#31
BuildPacket(SocketName, PacketData) - Builds a binary packet for sending to Battle.net, BNLS, or a Diablo II realm.
Example: CleanSlateBot1.BuildPacket("BNET", "PACKET", &H10, "DWORD", 2, "NTSTRING", "ChannelToJoin", "PACKET", &HC)

Packet Builder currently supports:
Sockets: BNET, REALM, BNLS
Types: BYTE, WORD, DWORD, STRING, NTSTRING, PACKET, GTC*
GTC = GetTickCount()



**Where would i put the hex code-looking strings?**

Cleanslatebot1.buildpacket WhatGoesHere

Mesiah / haiseM

#32
BuildPacket is just a buffer that lets you insert items one by one, so itd be used like this:

CleanSlateBot1.BuildPacket("BNET", "PACKET", &H10, "DWORD", 2, "NTSTRING", "ChannelToJoin", "PACKET", &HC)

the BNET is what server to send the packet to, the PACKET says its the end of the current data in the first packet, the &h10 is the packetID, the DWORD is to insert a DWORD to the buffer, the 2 is the value of the DWORD, the NTSTRING inserts a null terminated (00 00 in packet log) string to the buffer, ChannelToJoin is the text that is going to be inserted, the PACKET says thats the end of the data in that packet, and &hc is the packetID.

This is used for most binary bot rejoin functions, it sends 0x10 (private game) and send 0x0C (full channel join) to rejoin the channel you are currently in.

QuoteKane Said:
So basically, there is no way to make /create games with bnls?  

The BNLS protocol does not support creating games, last I checked.

BNLS has nothing to do with creating games, or using non-login related battle.net packets, its just there for login purpouses, IIRC.

QuotePosted by: UserLoser
I would, but WPE PRO doesnt show most of those packets, which are UDP

The WPE PRO i have does indeed log UDP packets, it just doesnt give you an indication, but they are not hard to distinguish, considering your only logging one program, and there are only 2 protocols used by that program.
]HighBrow Innovations
Coming soon...

AIM Online Status: 

ILurker

#33
Can i join [vL], by any chance?  :D

tA-Kane

#34
QuoteBNLS has nothing to do with creating games, or using non-login related battle.net packets, its just there for login purpouses, IIRC.
Duh...  ::)
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com

Mesiah / haiseM

#35
when he said "with bnls" im sure he meant cleanslatebot...
]HighBrow Innovations
Coming soon...

AIM Online Status: 

|