• Welcome to Valhalla Legends Archive.
 

I am making a bot in REALBasic

Started by eBeL, August 07, 2004, 01:24 PM

Previous topic - Next topic

eBeL

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


Luxer

You are going to have to use BNLS. Search the board.

Eli_1

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?

BaDDBLooD

#3
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!
There are only two kinds of people who are really fascinating: people who know absolutely everything, and people who know absolutely nothing.

Eternal

RB is quite capable of fulfilling a BNLS or Hash connection.
^-----silly Brit
-----------------------------
www.brimd.com

Luxer

Geez... The point is YOU NEED TO HASH THE CDKEY AND IT IS OVER YOUR HEAD EBEL!

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)

Banana fanna fo fanna

It's not that hard if you don't need to reverse the algorithm.

eBeL

How do u use BNLS lol? wat all that with the packets, it all confuses me :S

MyndFyre

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, 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.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

tA-Kane

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.
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


Maddox

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, 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.
asdf.

eBeL

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

MyndFyre

#14
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, 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
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.