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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...