I am working on a bot that allows you to join private channels and moderate then, similar to Kanebot. Currently you can log in but it uses Chat instead of Starcraft or any other game.
My questions are:
1. How can I have Battle.net identify my bot as Starcraft?
2. How do I send a CD-Key to Battle.net so I can join private channels?
3. Is there any way to have colored chat messages?
4. I am using a listbox for the data I am receiving, how can I use an edit field?
5. How can I have it display (The incoming data) instead of displaying 1005 Talk Username [SEXP] "Hello" , have it display Username: Message?
This will be compiled for OSX and Windows, here is what i am using for my source code: (DATAIN is the listbox)
NOTE: I have not gotten very far and this is my very first bot.
Window1.pbC.Action:
Sub Action()
bnet.connect
End Sub
Window1.Bnet.DataAvailable:
Sub DataAvailable()
datain.addrow me.readall
datain.listindex = datain.lastIndex
End Sub
Window1.Bnet.Connected:
Sub Connected()
me.write chr(3) + chr(4)
me.write name.text
me.write chr(13) + chr(10)
me.write pass.text
me.write chr(13) + chr(10)
End Sub
Window1.PushButton2.Action:
Sub Action()
bnet.write efsay.text + chr(13) + chr(10)
datain.addrow efsay.text
efsay.text=""
End Sub
You are going to have to use BNLS. Search the board.
Quote from: Luxer on August 08, 2004, 08:46 PM
You are going to have to use BNLS. Search the board.
Why does he have to use BNLS?
Quote from: Eli_1 on August 08, 2004, 09:09 PM
Quote from: Luxer on August 08, 2004, 08:46 PM
You are going to have to use BNLS. Search the board.
Why does he have to use BNLS?
I Believe he said that because Real basic isn't that "advanced" shall we say.
EDIT: i heard this from quite a few people, i may be wrong though!
RB is quite capable of fulfilling a BNLS or Hash connection.
Geez... The point is YOU NEED TO HASH THE CDKEY AND IT IS OVER YOUR HEAD EBEL!
Quote from: Luxer on August 09, 2004, 09:13 AM
Geez... The point is YOU NEED TO HASH THE CDKEY AND IT IS OVER YOUR HEAD EBEL!
Hey, you don't understand it either, this weekend im going to buckle down and conquer it. (hopefully)
It's not that hard if you don't need to reverse the algorithm.
How do u use BNLS lol? wat all that with the packets, it all confuses me :S
Quote from: eBeL on August 09, 2004, 11:29 AM
How do u use BNLS lol? wat all that with the packets, it all confuses me :S
On a somewhat related note... If you're using a telnet-type CHAT connection to log into Battle.net now, you can use Binary Gateway 3 (http://www.novaslp.net/bg3/), which will allow you to use your software generally unmodified (just connecting to localhost rather than, say, useast.battle.net). You have to set up BG3 with the program and the type of connection you want.
Luxer: stop being an unhelpful lame-ass. The fact that I'm saying this and not PMing it to you will probably speak loads to the regulars who know me. If you're going to be an asshole to people who are just as new to the forums as you, take a hike and go find your information and help somewhere else.
eBeL, going from a CHAT connection to a binary connection is quite a difference. I recommend you get your feet running with a CHAT connection before you undertake a binary connection. Try to keep most (or better, all) of your interface stuff separate from your connection stuff, that will help later.
Luxer, no need to bash eBeL when I know that what you're bashing him for could very well be applied to yourself. Also, you should note that it's against the forum guidelines to bash him in the first place.
Quote from: Luxer on August 09, 2004, 09:13 AM
Geez... The point is YOU NEED TO HASH THE CDKEY AND IT IS OVER YOUR HEAD EBEL!
http://forum.valhallalegends.com/phpbbs/index.php?board=17;action=display;threadid=7770
Quote from: Myndfyre on August 09, 2004, 12:19 PM
Quote from: eBeL on August 09, 2004, 11:29 AM
How do u use BNLS lol? wat all that with the packets, it all confuses me :S
On a somewhat related note... If you're using a telnet-type CHAT connection to log into Battle.net now, you can use Binary Gateway 3 (http://www.novaslp.net/bg3/), which will allow you to use your software generally unmodified (just connecting to localhost rather than, say, useast.battle.net). You have to set up BG3 with the program and the type of connection you want.
Luxer: stop being an unhelpful lame-ass. The fact that I'm saying this and not PMing it to you will probably speak loads to the regulars who know me. If you're going to be an asshole to people who are just as new to the forums as you, take a hike and go find your information and help somewhere else.
There is no OSX port of BG3.
So does this mean I am out of luck with the BG3 or is there something similar for OSX?
How did you go about getting on Battle.net Keith?
I have the basic understandings on connecting as CHAT, the client I made works fine! :P
Quote from: Maddox on August 10, 2004, 03:10 AM
Quote from: Myndfyre on August 09, 2004, 12:19 PM
Quote from: eBeL on August 09, 2004, 11:29 AM
How do u use BNLS lol? wat all that with the packets, it all confuses me :S
On a somewhat related note... If you're using a telnet-type CHAT connection to log into Battle.net now, you can use Binary Gateway 3 (http://www.novaslp.net/bg3/), which will allow you to use your software generally unmodified (just connecting to localhost rather than, say, useast.battle.net). You have to set up BG3 with the program and the type of connection you want.
Luxer: stop being an unhelpful lame-ass. The fact that I'm saying this and not PMing it to you will probably speak loads to the regulars who know me. If you're going to be an asshole to people who are just as new to the forums as you, take a hike and go find your information and help somewhere else.
There is no OSX port of BG3.
Ahh tis true! My bad :) I was confused by his signature.... ;)
[edit] IIRC, he can run BG3 on a Windows machine and have his OS X CHAT bot connect to the Windows machine... :P
I dont have a windows machine :(
Use Virtual PC.
Or write your own binary gateway.
Either will work.
Quote from: tA-Kane on August 11, 2004, 12:09 PM
Use Virtual PC.
Or write your own binary gateway.
Either will work.
1. I dont know binary
2. Virtual PC costs 250+$$$
Im only 14 and dont have a job, how can I afford this?
Quote from: eBeL on August 11, 2004, 03:25 PM
Quote from: tA-Kane on August 11, 2004, 12:09 PM
Use Virtual PC.
Or write your own binary gateway.
Either will work.
1. I dont know binary
2. Virtual PC costs 250+$$$
Im only 14 and dont have a job, how can I afford this?
00111110 01100101 01101011 01101111 01101010 00101111 00111100 00100000 01010000 00111010 00100000 00100001 01111001 01110010 01100001 01101110 01101001 01100010 00100000 01110111 01101111 01101110 01101011 00100000 01001001
Anyway, I believe a "binary gateway" works as sort of a proxy and translates binary packets sent to you from battle.net to their CHAT protocol equivalent, and vise versa.
e.g.
C -> BinaryGateway
Winsock.SendData "wo0t" & vbCrLf
BinaryGateway -> S
FF 0E 09 00 77 6F 30 74 00
ÿ...wo0t.
that makes no sense
Quote from: eBeL on August 11, 2004, 07:51 PMthat makes no sense
A tip for you: if you're going to complain that you don't understand something, specify exactly
what you don't understand. Quote the specific section you had trouble comprehending. Also, minor point, but if it really didn't make any sense, regulars would've flamed and/or corrected the post. Therefore, we can safely conclude instead that it is you who lack the sense to understand what has been freely given.
Okay we will try it your way, I do not understand what a Binary Gateway is or how to get one.
And what is this? I do not know how to use this or what it does even:
C -> BinaryGateway
Winsock.SendData "wo0t" & vbCrLf
BinaryGateway -> S
FF 0E 09 00 77 6F 30 74 00
ÿ...wo0t.
Virtual PC can be gotten without paying for it..., like all things... ;)
Quote from: eBeL on August 12, 2004, 10:13 AMOkay we will try it your way, I do not understand what a Binary Gateway is or how to get one.
A Binary Gateway is a third party server which translates a CHAT connection to and from a binary connection (such as a StarCraft connection).
CHAT Bot <-> BinaryGateway <-> StarCraft Server
CHAT Bot connects to BinaryGateway. BinaryGateway connects to the StarCraft server (Battle.net). Once connected, the BinaryGateway sends the "normal" login prompt to the CHAT bot, to trigger the bot's username and password mechanism (if it wasn't triggered upon connecting). The BinaryGateway then receives the username and password and does the binary hashing stuff, and sends that to the StarCraft server.
Once logged in, the BinaryGateway sends 2010 NAME (username) to the CHAT bot.
The BinaryGateway translates the event packets (packet ID 0x0F) into the textual events that the CHAT bot expects.
The CHAT Bot simply sends what it wants to say. The BinaryGateway translates that into sent chat events.
All during this, the BinaryGateway silently handles things that a CHAT connection doesn't see, such as advertisement changes.
Quote from: eBeL on August 12, 2004, 10:13 AMAnd what is this? I do not know how to use this or what it does even:
C -> BinaryGateway
Winsock.SendData "wo0t" & vbCrLf
BinaryGateway -> S
FF 0E 09 00 77 6F 30 74 00
ÿ...wo0t.
That's Eli's "short, sweet, and to-the-point" way of describing to you what I just described above. Think of C as the Client (CHAT bot), and S as the Server (StarCraft server; Battle.net). Client sends to BinaryGateway "wo0t" & vbCrLf. BinaryGateway receives that and translates that into the sent chat packet (FF 0E 09 00 77 6F 30 74 00), and sends it to the Server.
so is Binary Gateway something I connect to? Or is it something you build into your bot or what...
It could be either. One of the really old (from about 2 1/2 years ago) versions of my bot would allow a CHAT bot to "take over" the binary connection that my bot had already stolen from StarCraft. That was just like Binary Gateway. I want to be able to do that again in my newer bot.
The Binary Gateway that most people here are referring to, however, is a separate program.
Hrm. It occurs to me that, with the release of the .NET SSCLI (Shared Source Common Language Infrastructure) for Mac OS X, I might just be able to write something of a BG for Mac using my bot. ;)
That would be an interesting endeavor.... Since I don't have a Mac to test it with especially. :/
I'll let you know if I write one, though. :)
My bot compiles for Mac OS X, but I don't have Mac OS X to test it with... ;)
Would you mind if we talked on AIM for a while? I have a few questions.
Sure, I'm Kanezor on AIM. Who're you?
Ebel3003