Jump to content
  • 0

System Message Dialog Problem.


Meydex

Question

Hello
I am trying to create a function using an old system message (SystemMessageId.S1_S2_SUCCESSFULLY_ENCHANTED).
The code in which the packet is sent can be seen below:
 

SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_S2_SUCCESSFULLY_ENCHANTED);			
			
			sm.addInt(enchant);
			sm.addItemName(this);
			player.sendPacket(sm);
			
			player.broadcastUserInfo();

The message is sent properly with the name and the enchant level, however I noticed it also opens a small dialog window with a confirm button that should show the exact same message.
Instead the dialog does not show the item nor its enchantlevel (See attachment below). Should I create a new ConfirmDlg sending the packet again or is there a more efficient way? Any help would be greatly appreciated!
 

post-17761-0-73519700-1478865630_thumb.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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...