Valhalla Legends Forums Archive | Battle.net Bot Development | CHAT Protocol Documentation?

AuthorMessageTime
Barabajagal
Anyone happen to have a copy of the old TELNET CHAT protocol documentation?
February 23, 2008, 12:59 AM
LockesRabb
As in, the Battle.net CHAT protocol? If I remember right, one just had to do control d, then send login terminated by line feed, then it's pretty much all text. They send text, you use slash commands to do stuff. No special packets or anything. Why would you want it, considering how Battle.net has it disabled now? Or did you have something else in mind?
March 11, 2008, 2:02 PM
Myndfyr
[quote author=Don Cullen link=topic=17346.msg176926#msg176926 date=1205244155]
As in, the Battle.net CHAT protocol? If I remember right, one just had to do control d, then send login terminated by line feed, then it's pretty much all text. They send text, you use slash commands to do stuff. No special packets or anything. Why would you want it, considering how Battle.net has it disabled now? Or did you have something else in mind?
[/quote]I imagine he's interested in what the server does so that he can emulate it.
March 11, 2008, 5:49 PM
Barabajagal
Yep. But never mind... I'm not really working on my BNCS emulator at the moment, nor in the foreseeable future... Other projects have cropped up.
March 11, 2008, 8:31 PM
NicoQwertyu
[quote author=Andy link=topic=17346.msg176929#msg176929 date=1205267491]
Yep. But never mind... I'm not really working on my BNCS emulator at the moment, nor in the foreseeable future... Other projects have cropped up.
[/quote]

Just in case anyone wanders in here wanting to know, here's a few of them I can remember off the top of my head.

[list]2010 NAME Username
This is sent to the user immediately upon logging on, and tells the user what name he was given. This is a legacy thing and isn't really used anymore. It was for when users logged on as Guest, or logged onto the same name multiple times: Guest#3, Massbot#1, Massbot#2, etc. Blizzard has since removed that ability, but this 2010 message remains.

1007 CHANNEL "Channel Name"
This is sent when you successfully join a channel. If you are banned, or the channel is special somehow, you simply won't recieve this message, and will instead receive a 1019 ERROR message informing you of what went wrong.

1001 USER Username Flags Client
After joining a channel, each user currently in the channel will be displayed with this line (including yourself).

1009 USER Username Flags Client
This is sent when a user's flags have changed: user gains operator status, user becomes squelched, users logs in as an admin, etc.

1002 JOIN Username Flags Client
This will be sent when another user joins a channel. You will not see your own JOIN broadcast.

1003 LEAVE Username Flags
This is sent when another user leaves a channel. You will not see your own LEAVE broadcast.

1005 TALK Username Flags "Message"
When a user talks. You will not see your own TALK broadcast, however, the server will generally echo back what you type, depending on how you log in (0x03/0x04).

1018 INFO "Server info"
Server info. ie: "1018 INFO "Welcome to Battle.Net!"

1019 ERROR "Error"
Server error. ie: "1019 ERROR "You are banned from that channel!"

2000 NULL
This is sent every five minutes, and is used as a keepalive. It is not required that the user reply to these messages. However, it works for a decent 5 minute anti-idle. ;)

1004 WHISPER Username Flags "Message"
Whisper from.

1010 WHISPER Username Flags "Message"
Whisper to.

1023 EMOTE Username Flags "Message"

1006 _____ "Message"
This was used for admin broadcasts. I can't remember what came after 1006, but it may have been INFO.[/list]

Here is a basic idea of how the server will communicate.

[quote]
Connection from [127.0.0.1]

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

Username: Asylum
Password:

2010 NAME Asylum
1007 CHANNEL "Public Chat 1"
1001 USER Asylum 0010 [CHAT]
1018 INFO "Welcome to Battle.net!"
1018 INFO "This server is hosted by AT&T."
1018 INFO "There are currently 7 users in Chat, and 0 users playing 0
games on Battle.net."
1018 INFO "Last logon: Sat Mar 22 6:27 PM"
1019 ERROR "Failed logon attempts since then: 1"
hmmmm
1019 ERROR "There is no one in this channel."
I know this!
1019 ERROR "There is no one in this channel."
1002 JOIN iago 0010 [CHAT]
1005 TALK iago 0010 "Moooo."
1005 TALK iago 0010 ":)"
Follow me to Backstage.
1005 TALK iago 0010 "Okay."
/join Backstage
1007 CHANNEL "Backstage"
1001 USER Asylum 0010 [CHAT]
1009 USER Asylum 0002 [CHAT]
1002 JOIN iago 0010 [CHAT]
1023 EMOTE iago 0010 "flexes."
1005 TALK iago 0010 "Afk"
/who asdf
1018 INFO "Users in channel asdf:"
1018 INFO "[SKYWING], Skywing#1"
1018 INFO "Skywing#2, Skywing#3"
1018 INFO "Skywing#4"
Same.
2000 NULL
2000 NULL
2000 NULL
2000 NULL
2000 NULL
1009 USER Asylum 0001 [CHAT]
/admins
1018 INFO "Currently logged on administrators: Asylum"
1006 INFO "Asylum as entered the /shutdown command."
1006 INFO "Server will shut down in 60 seconds (7 connections remaining)."[/quote]

Edit: It may have been 1006 ADMIN "Message."
March 22, 2008, 10:46 PM

Search