Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Barabajagal on February 22, 2008, 06:59 PM

Title: CHAT Protocol Documentation?
Post by: Barabajagal on February 22, 2008, 06:59 PM
Anyone happen to have a copy of the old TELNET CHAT protocol documentation?
Title: Re: CHAT Protocol Documentation?
Post by: 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?
Title: Re: CHAT Protocol Documentation?
Post by: MyndFyre on March 11, 2008, 12:49 PM
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.
Title: Re: CHAT Protocol Documentation?
Post by: Barabajagal 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.
Title: Re: CHAT Protocol Documentation?
Post by: NicoQwertyu on March 22, 2008, 05:46 PM
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.


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