Page 1 of 1

ConfirmDlg

Posted: Wed Sep 16, 2009 4:21 pm
by laikeriz
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 3502:
L2JDP Revision 6606:
Hello. I would like to make confirm dialog so if you select ok it makes some actions. How could i do that? So far i made this:

Code: Select all

			ConfirmDlg dlg = new ConfirmDlg(SystemMessageId.S1.getId()).addString("???");			dlg.addTime(60000);			activeChar.sendPacket(dlg);
But i dont know how to make it to ask but without dialog confirmation make further actions?

Re: ConfirmDlg

Posted: Wed Sep 16, 2009 5:09 pm
by devo
Give an example of future action.

Re: ConfirmDlg

Posted: Wed Sep 16, 2009 5:18 pm
by laikeriz

Code: Select all

 			long old = activeChar.getExp();			long uber = Experience.LEVEL[86];			activeChar.addExpAndSp(uber - old, 0); 

Re: ConfirmDlg

Posted: Wed Sep 16, 2009 5:36 pm
by JIV
check
net.sf.l2j.gameserver.network.clientpackets.DlgAnswer
but S1 is alredy used for wedding so you would need tweak it.

Re: ConfirmDlg

Posted: Wed Sep 16, 2009 5:40 pm
by laikeriz
Ok thank you :)