ConfirmDlg

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
laikeriz
Posts: 48
Joined: Sun Feb 01, 2009 8:35 pm

ConfirmDlg

Post 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?
User avatar
devo
Posts: 798
Joined: Mon Jun 15, 2009 1:19 pm

Re: ConfirmDlg

Post by devo »

Give an example of future action.
A hero of war is that what they see...
laikeriz
Posts: 48
Joined: Sun Feb 01, 2009 8:35 pm

Re: ConfirmDlg

Post by laikeriz »

Code: Select all

 			long old = activeChar.getExp();			long uber = Experience.LEVEL[86];			activeChar.addExpAndSp(uber - old, 0); 
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: ConfirmDlg

Post by JIV »

check
net.sf.l2j.gameserver.network.clientpackets.DlgAnswer
but S1 is alredy used for wedding so you would need tweak it.
laikeriz
Posts: 48
Joined: Sun Feb 01, 2009 8:35 pm

Re: ConfirmDlg

Post by laikeriz »

Ok thank you :)
Post Reply