Jump to content

Question

Posted

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

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock