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!
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.
Good luck with your project - from the moment you take pleasure, it's the essential.
If you manage to improve performance over specific points compared to L2J (knownlist, geoengine, movement,...), don't hesitate to share back on your topic what/why you did it and the actual performance gain, if measured.
Question
Meydex
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:
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!
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.