Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: JaMi on December 19, 2002, 06:58 AM

Title: Sending Packets with CleanSlateBot
Post by: JaMi on December 19, 2002, 06:58 AM
Could anyone give me an example of sending a packet with CleanSlateBot.ocx , I see the new version has support for it, but the readme hasnt been updated to show info on it, Any help would be greatly appreciated thank ya :)
Title: Re: Sending Packets with CleanSlateBot
Post by: ILurker on February 09, 2003, 05:47 AM
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.
Title: Re: Sending Packets with CleanSlateBot
Post by: Banana fanna fo fanna on February 10, 2003, 09:54 AM
Dude stop answering posts from 2 months ago lol.
Title: Re: Sending Packets with CleanSlateBot
Post by: ILurker on February 10, 2003, 10:16 AM
i figured that user may still need the help
Title: Re: Sending Packets with CleanSlateBot
Post by: Eternal on February 10, 2003, 11:45 AM
I guess he is still trying to work out what it all means   ;D
Title: Re: Sending Packets with CleanSlateBot
Post by: JaMi on February 11, 2003, 07:12 AM
wow...... only 2 months on the reply time heh, and i figured it out about 2 days after i asked the question, but umm thanks anyway i think?