ConfirmDlg with only 1 button

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
User avatar
sponer
Posts: 86
Joined: Sat Jul 02, 2011 6:02 am

ConfirmDlg with only 1 button

Post by sponer »

Hello guys...
i broke my head to find a command to create a custom message inside a windowed dialog... i found ConfirmDlg.java
but it has confirm and cancel button... I want this windowed message only with "confirm" button... like the message "You don't have enough adena"... i searched everywhere... i searched were SystemMessage implements some windowed messages like "You don't have enough adena" but i found nothing... there are 2 days that i'm searching now but nothing... can anyone help me please? :D
User avatar
sponer
Posts: 86
Joined: Sat Jul 02, 2011 6:02 am

Re: ConfirmDlg with only 1 button

Post by sponer »

guys???? anyone????
bump
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: ConfirmDlg with only 1 button

Post by HappyLDE »

Just open in a new window:

Code: Select all

String html = "You don't have enough Adena bro.";final NpcHtmlMessage npcReply = new NpcHtmlMessage();npcReply.setHtml(html);player.sendPacket(npcReply);
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
User avatar
sponer
Posts: 86
Joined: Sat Jul 02, 2011 6:02 am

Re: ConfirmDlg with only 1 button

Post by sponer »

Well... it's not what i was looking for but what can i do... i will deal with it.. :P thank you anyway!! :D
Post Reply