Packet 1052 question

02/17/2011 14:46 KraHen#1
Okay finally finished the auth server and got through the game encryption as well :) Quite a day.

I`d like to ask what does the LoginFlag (as named on Korv`s wiki) need to be set in order to display the text I want to send to the client. No matter what I set it to the client just displays a messageBox displaying Error code : myLoginFlagHere.

Thanks :D
02/17/2011 18:20 pro4never#2
Simple enough.

You use a chat packet to do the popups. Not a 1052 packet.

Dialog = 2100,
LoginInformation = 2101,


The login information one is used to either trigger the final login stage (ANSWER_OK) or trigger character creation (NEW_ROLE)

I assume you mean the auth response packet though seeing as you're mentioning a key (1052 is Client>Server... not server>Client)

Auth response (in new versions anyways) is 1055.

The "LoginFlag" as you call it I assume is what I refer to as the key. 2 = valid login, 57 = banned, 1 = invalid user/pass I think in new versions.

IE:

Code:
 Client.Send(Packets.AuthResponse(Program.GameIp, Client.UID, 2, Program.GamePort));
//that would be a valid login

Code:
  Client.Send(Packets.AuthResponse("0", 0, 1, 0));
//That would be invalid login (invalid user/pass
02/17/2011 19:58 KraHen#3
I got the auth part done but still thanks :) I`ll try sending the chat message for the popup :D

EDIT : Aaand it woks :D Lol :) I feel like an idiot for not trying this. Thanks :)

P.S. I actually thought 1052 works both ways... lol...
02/18/2011 09:18 Korvacs#4
Sorry yeah the wiki isnt clear on this, the Flag can be pretty much anything, I hash a few things together to confirm that its a valid login on the game server.