to Unify an Item That Grants Level 80 and Changes Character Name?

GaijinDev

Heir
Customer
Body:





I’m working on a modification for my Lineage II server (based on Lucera2) and need some help figuring out how to unify two functionalities within a single item.





I have created an ext.jar that, when the player clicks on a specific item, opens a window allowing them to change their chat name with a custom prefix. The system works like this:


1. The player clicks on the item.


2. A UI appears where they can enter a name.


3. When they confirm, the system modifies their chat name by adding a prefix (e.g., if they enter “Example,†the server will set it as “AIOxExampleâ€).


4. At the same time, this action should also grant the player Level 80.





The level-up function is already working, but I need a way to integrate the name-changing process so that when the player confirms their new name, both effects trigger together.





Is there a way to unify these two actions within Lucera2? Would it require modifying the handler or creating a custom script for both effects to occur simultaneously?





Any guidance or examples would be greatly appreciated!





This version correctly states that the level-up function is already working and that you’re looking for a way to integrate the name change into the same process. Let me know if you need any further adjustments!
 
Back
Top