• Welcome to Valhalla Legends Archive.
 

CHAT Protocol Documentation?

Started by Barabajagal, February 22, 2008, 06:59 PM

Previous topic - Next topic

Barabajagal

Anyone happen to have a copy of the old TELNET CHAT protocol documentation?

Don Cullen

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?
Regards,
Don
-------

Don't wonder why people suddenly are hostile when you treat them the way they shouldn't be- it's called 'Mutual Respect'.

MyndFyre

Quote from: Don Cullen on March 11, 2008, 09:02 AM
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?
I imagine he's interested in what the server does so that he can emulate it.
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.

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.

NicoQwertyu

#4
Quote from: Andy on March 11, 2008, 03:31 PM
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.

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.

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

Edit: It may have been 1006 ADMIN "Message."