package net.sf.l2j.gameserver.network.serverpackets;
/**
* Format (ch)dd
* d: window type
* d: ban user (1)
*/
public class Ex2ndPasswordCheck extends L2GameServerPacket
{
public static final int PASSWORD_NEW = 0x00;
public static final int PASSWORD_PROMPT = 0x01;
public static final int PASSWORD_OK = 0x02;
int _windowType;
public Ex2ndPasswordCheck(int windowType)
{
_windowType = windowType;
}
@Override
protected void writeImpl()
{
writeEx(0xE5);
writeD(_windowType);
writeD(0x00);
}
}
I think the "openDialog" method is to open the html in the character selection screen, but in the interlude this is not happening, can anyone help?
Hey! It's been years since I tried this, just redownloaded everything for the nostalgia but I'm having the "mismatch" problem.
You were right, I used another system, not the one from the post! My bad!
Now I can't find the system that works with AuthGateD 🤣
I see you have found it and uploaded it but the link you provided no longer works. If you are still around, can you please reupload? Thank you!
Question
L2shaken
CharacterSelected.java
@Override protected void runImpl() { GameClient client = getClient(); +if (Config.SECOND_AUTH_ENABLED && !client.getSecondaryAuth().isAuthed()) +{ + client.getSecondaryAuth().openDialog(); + return; +} if(client.getActiveChar() != null) return;public void openDialog() { if(passwordExist()) _activeClient.sendPacket(new Ex2ndPasswordCheck(Ex2ndPasswordCheck.PASSWORD_PROMPT)); else _activeClient.sendPacket(new Ex2ndPasswordCheck(Ex2ndPasswordCheck.PASSWORD_NEW)); }package net.sf.l2j.gameserver.network.serverpackets; /** * Format (ch)dd * d: window type * d: ban user (1) */ public class Ex2ndPasswordCheck extends L2GameServerPacket { public static final int PASSWORD_NEW = 0x00; public static final int PASSWORD_PROMPT = 0x01; public static final int PASSWORD_OK = 0x02; int _windowType; public Ex2ndPasswordCheck(int windowType) { _windowType = windowType; } @Override protected void writeImpl() { writeEx(0xE5); writeD(_windowType); writeD(0x00); } }I think the "openDialog" method is to open the html in the character selection screen, but in the interlude this is not happening, can anyone help?
Edited by L2shaken4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now