Jump to content
  • 0

Secondary Password (On The Character Selection Screen) Interlude.


Question

Posted (edited)

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 L2shaken

4 answers to this question

Recommended Posts

  • 0
Posted

But you can code it with HTML if you are willing to play a little bit with the bypass handler

It can work in CharacterSelectState?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock