Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] Research & Development → Chat Client Protocol?

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 3

1

Topic: Chat Client Protocol?

Hello there.

I was wondering how is the client-auth working in Diablo2LoD. I want to write my own chat application like TopazChat - it's kinda old, and it's Windows-only and I need something for mobile devices (Android maybe). So, how packets are organized? How can I auth my client properly and safely (without nn data)? Is there any documentation around?

Greetz,

2

Re: Chat Client Protocol?

Auth docs https://bnetdocs.org/?op=doc&did=10
If a server allows "bot login" for your account then you can use raw telnet protocol https://bnetdocs.org/?op=doc&did=17

Do not ask for support in PM.

3 (edited by USA-Archer 28.08.2017 22:12)

Re: Chat Client Protocol?

dagoththorus wrote:

Hello there.

I was wondering how is the client-auth working in Diablo2LoD. I want to write my own chat application like TopazChat - it's kinda old, and it's Windows-only and I need something for mobile devices (Android maybe). So, how packets are organized? How can I auth my client properly and safely (without nn data)? Is there any documentation around?

Greetz,


Android has a PvPGN chat client using telnet RAW TCP socket already:play.google.com/store/apps/details?id=bnet.pvpgn&hl=en

I am working on an iPhone app client

I wrote an HTML5 client here github.com/reillychase/pvpgn-html5-chat-client

Also I wrote a Python QT4 bot which can be compiled for Windows, Linux, Android or MacOS here: https://github.com/reillychase/WarChatter

To make a Telnet bot its just as simple as reading and writing to the TCP socket. You can see how the data looks by using "putty" connect to your-server.com:6112 type=RAW

To make a bot out of that, you just use RegEx and parse stuff so for example '^ERROR: ' means "anything that begins with ERROR:' -> color it red. When you see someone enter a chatroom (aka /^[(.*) enters]/) you add them to the list of people in the room, when you see /^[(.*) leaves]/ you remove them etc

Posts: 3

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 1 guest, 0 registered users

forums.pvpgn.pro → [EN] Research & Development → Chat Client Protocol?