Chat Bot Help

  • Thread starter Thread starter Coach_EW
  • Start date Start date
C

Coach_EW

Guest
it must get aggrivating having to answer chat bot questions...thanks for ur time...heres the deal

I know VB and i am familiar with the winsock control...

i am currently making a program that logs on to useast.battle.net

everything works until i type in my account name when it asks me

for it...it doesnt ask me for a PW...it just sends back whatever i

type in...heres a quote form rapmaster:


quote:
--------------------------------------------------------------------------------

Connection from [xxx.xxx.xxx.xxx]

Enter your account name and password.
Use 'anonymous' if you only want to issue queries.

Username: rapmaster
Password:

2010 NAME rapmaster
1007 CHANNEL "Public Chat 2"
1001 USER xi-control 0010 [CHAT]
1001 USER full-throttle 0000 [D2XP]
1001 USER RuiSong 0000 [D2XP]
1001 USER rapmaster 0010 [CHAT]
1018 INFO "Welcome to Battle.net!"
1018 INFO "This server is hosted by AT&T."
1018 INFO "There are currently 405 users in Chat, and 145929 users playing 61633
games on Battle.net."
1019 ERROR "Chatting with this game is restricted to the channels listed in the
channel menu."
1018 INFO "Last logon: Wed Oct 30 10:45 PM"
1019 ERROR "Failed logon attempts since then: 1"
/join open tech support
1007 CHANNEL "Open Tech Support"
1001 USER tamshighlander2 0000 [D2XP]
1001 USER b18c@Lordaeron 0000 [WAR3]
1001 USER chickin_killer 0000 [D2XP]
1001 USER PhrozenBot 0010 [CHAT]
1001 USER wirey_tjk 0000 [D2XP]
1001 USER KillingRight 0000 [SEXP]
1001 USER fantasydeath2 0000 [D2XP]
1001 USER ascendingfear 0000 [D2XP]
1001 USER rapmaster 0010 [CHAT]
1018 INFO "This is an open channel where you can get help on"
1018 INFO "technical problems from other users. To talk to"
1018 INFO "Blizzard's technical support group, use the"
1018 INFO "Blizzard Tech Support channel."
1005 TALK KillingRight 0000 "[][][][]?"
hi
1005 TALK KillingRight 0000 "Hi"
1002 JOIN donnas 0000 [D2XP]

--------------------------------------------------------------------------------

how do i use the 4-digit number that precedes each action???

also what is the best VB control to use for the chat window...ie.

the window that shows what everyone is saying...

also heres a quote from swillo:

quote:

----------------------------------------------------------------------------------


A chat client logs on as chat, which blizzard fully supports (except for the fact that they restricted them to public channels only).
Other kinds of programs that emulate a game are available, and do require a CD Key to log in, but they can also do anything that the normal game can.
These emulating programs come in two flavours:
1) The kind that comes with the necessary files (EXE and DLLs) included. These go against the EULA as they constitute piracy, and not many exist any more, or if they do blizzard has restricted them.
2) the kind that require you to supply your own files for operation, which are perfectly legal and blizzard won't and can't do anything about.

In any event, we still won't tell you where to get them nor support you with the use of one.

As for the "I'm so paranoid I don't even want to give my CD Key to my game" comment, your fear is well placed in trusting something personal to a complete stranger.

------------------------------------------------------------------------------


whats wrong with giving info on #2 if it is legal???


Thanks for the help
 
can you get it to work with telnet? or are you having trouble doing it with the program?

You need to tell your program to send a carriage return (ascii code 13) after the username... it will then prompt for the password. This is like pushing 'enter'. I think this is all you need to send-- I do remember having trouble with this when I was writing my b.net client (never finished the project but I got beyond this stage anyway.)

The stuff I pasted (with all the numbers etc) is what the server sends back to you with various info. The 4 digit numbers are like codes that signify what type of information this line contains (so does the word that follows it) -- its up to your program to interpret these. It's pretty obvious that a 1007 CHANNEL message is the server telling you that you have joined a channel. 1001 USER lines list each user in the channel. And so on.


Neither of those EVIL bots that emulate games are really permitted. You can debate the legality of them but the Battle.net terms of service, for what its worth, seems to forbid them. In any event most people hate them. They are also harder to program so I'd master the simple "chat" bot first before even worrying about that. =)
 
i got the following from http://www.zotteljedi.de/bnet/protocol.html

-----------------------------------------------------------------------------------

The Battle.Net Protocol
Battle.net uses TCP, Port 6112. The login is very simple:
0x03 0x04 "username" CRLF "password" CRLF

0x03 and 0x04 mean the characters with the hex-code 0x03 and 0x04.
Battle.net sends messages with different formats, depending on the nature of the message. They all begin with a 4 digit number that identifies the type of message. The next field is a textual representation of the message-type. The rest ist message-specific:

ID meaning arguments
1001 USER nickname status [client]
1002 JOIN nickname status [client]
1003 LEAVE nickname status
1005 TALK nickname status "message"
1007 CHANNEL "channel name"
1018 INFO "message"
1019 ERROR "message"
2000 NULL
2010 NAME nickname



NULL is sent every 5 minutes or so to prevent the connection from beeing closed. The status is a 4 digit number (I've seen 0000 and 0010), but I didn't notic what it means (I guess 0010 is the "hammer").

The 2001 NAME is sent when logging in and represents your nickname that you actually got (if you use a guest-Account).

The text from the client is just written to the server, there is no special format. The usual commands used in the normal clients also works (/join, /whisper, /who and so on).

-----------------------------------------------------------------------------------


i m interested in the meaning of the hex at the top


thanks
 
0x3=control character C
Why blizzard chose this character I have no clue, especially since a majority of command line/console programs use ctrl-c to stop execution. It also appears to happily accept plain old ascii character "c" but not its friend "C" now instead of ctrl-c, this was probably because they found out that ctrl-c sends a signal to stop execution on most command line driven programs.
The 0x4 would be control character D, but I don't believe this was ever necessary to log in and the server probably just discarded it as trash. Control character D is used for End of Input, although I have never seen it actually used in programming.

-- Magickian, because I'm too lazy to login
 
Yeah, when logging in with telnet you used to have to press ctrl+c, now it's just plain old c. Never had to use d though.

And a note on what we will/won't support : We won't support anything that can be abused by users, or anything where there are 500000000000 different kinda available and they're all different.
Game emulating clients are heavily abused as spam-bots, so we won't even think about helping people with them. Chat bots there are just too many, and they're also used to spam in open tech support, or as whisper greet bots that also spam.

I think helping someone learn how to program their own chat client is fine though.
 
Thanx for the help

ok i got the answer



Winsock1.SendData txtSEND.Text & vbCrLf


the vbCrLF stands for Carriage Return, Line Feed

ascii 13 = CR

Line feed is ascii 8 or 9...i forget


thanks
 
Line feed is 10

vbCrLf is a constant in Visual Basic, defined as "chr(13) & chr(10)"
There are TONS of these constants... check the help =)

It makes it easier than remember all the actual values for each possible thing.
 
I Really Need Help

i havent played SC for a while and i need to know how to set ur bot as a private channel operator?

THNX for n e help
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1
  • The Helper The Helper:
    Weekend went by too fast. Next weekend I am going to try to do a nature thing - buddy of mine lives by the Colorado river and has some kayaks and invited me to do some kayaking from a place he knows to get on the river.
  • Ghan Ghan:
    That sounds like an adventure.
  • The Helper The Helper:
    400 users all online all looking at latest content
  • The Helper The Helper:
    I wonder how all these bots that sit on the lastest content page get passed anubis or maybe they did not but they are just registering on whos online
  • The Helper The Helper:
    showing up on whos online not registration
  • Ghan Ghan:
    The first gate is stopping all the bots that don't execute javascript.
  • Ghan Ghan:
    That's the main thing with Anubis - no Javascript, no site. Typically you can still get the site to load without Javascript.
  • The Helper The Helper:
    I remember the whole javascript thing, question - how many real people disable that?
  • The Helper The Helper:
    Hell I guess I could go back on the stats to know that - we probably capture that and we know the before and after
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/

The Helper Discord

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top