Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: vuther.de on July 08, 2006, 03:31 PM

Title: Question on MCP
Post by: vuther.de on July 08, 2006, 03:31 PM
Just curious, is there something you need to send frequently to not get disconnected from MCP?

I noticed when I don't view my characters for a period of time, for when I do go to view them, it show's nothing.

Thanks.
Title: Re: Question on MCP
Post by: UserLoser on July 09, 2006, 01:22 AM
It shows nothing because you're clearing the list.  You're probably unloading the dialog then showing it again without requesting the character list.  You will stay connected as long as possible to the server until something breaks your connection.
Title: Re: Question on MCP
Post by: vuther.de on July 09, 2006, 09:24 AM
Yes. I clear it. But I've fixed it. I just want a certain packet every 8 minutes to keep the connection alive.
I remember that the Battle.net Client for Diablo II always disconnects you for inactivity.
Anyhow, I have 1 more question: Do you know if you cannot make a Hardcore Ladder character with Diablo II Classic?

Everytime I make one it IPBans me on Realm.

EDIT: I'm sending the WORD 0x48 for it.
Title: Re: Question on MCP
Post by: warz on July 09, 2006, 09:49 AM
Have you tried doing this with the real client?
Title: Re: Question on MCP
Post by: l2k-Shadow on July 09, 2006, 10:09 AM
This is why you read the comments under the packet. I posted about it being 0x44 not 0x48 year and a half ago...
Title: Re: Question on MCP
Post by: UserLoser on July 09, 2006, 10:18 AM
Quote from: inner.de on July 09, 2006, 09:24 AM
Yes. I clear it. But I've fixed it. I just want a certain packet every 8 minutes to keep the connection alive.
I remember that the Battle.net Client for Diablo II always disconnects you for inactivity.
Anyhow, I have 1 more question: Do you know if you cannot make a Hardcore Ladder character with Diablo II Classic?

Everytime I make one it IPBans me on Realm.

EDIT: I'm sending the WORD 0x48 for it.

There's no reason to be connected for any longer than a couple minutes
Title: Re: Question on MCP
Post by: UserLoser on July 09, 2006, 10:20 AM
Quote from: l2k-Shadow on July 09, 2006, 10:09 AM
This is why you read the comments under the packet. I posted about it being 0x44 not 0x48 year and a half ago...

Inner doesn't read anything.

It's a bitmask of the following values:

0x00: Classic
0x04: Hardcore
0x20: Expansion
0x40: Ladder

I don't know where you get the extra 8 from in there...
Title: Re: Question on MCP
Post by: warz on July 09, 2006, 10:48 AM
Yeah, I think I remember that there is no reason to stay connected to the MCP server. Once you've connected, sent your character selection request and succesfull changed or created your character, you can (and should) disconnect.
Title: Re: Question on MCP
Post by: l2k-Shadow on July 09, 2006, 01:31 PM
Quote from: warz on July 09, 2006, 10:48 AM
Yeah, I think I remember that there is no reason to stay connected to the MCP server. Once you've connected, sent your character selection request and succesfull changed or created your character, you can (and should) disconnect.

No, after you Create/Join game you disconnect, not prior to that. Of course if you're a bot and will not do so, I assume you could disconnect.
Title: Re: Question on MCP
Post by: vuther.de on July 09, 2006, 01:56 PM
I stay connected so I don't have to reconnect to logon with another character.

EDIT: Thanks Shadow, 0x44 works for Hardcore Ladder.
Title: Re: Question on MCP
Post by: rabbit on July 09, 2006, 07:10 PM
Quote from: UserLoser on July 09, 2006, 10:20 AM
Quote from: l2k-Shadow on July 09, 2006, 10:09 AM
This is why you read the comments under the packet. I posted about it being 0x44 not 0x48 year and a half ago...

Inner doesn't read anything.

It's a bitmask of the following values:

0x00: Classic
0x04: Hardcore
0x20: Expansion
0x40: Ladder

I don't know where you get the extra 8 from in there...
IIRC that's Dead