L2JMobius

Free Users => General Discussion => Topic started by: maximov on October 24, 2022, 11:52:31 PM

Title: How do I add the Crystallization skill to non-Dwarves?
Post by: maximov on October 24, 2022, 11:52:31 PM
Hello everyone
How do I add the Crystallization skill (skillName="Crystallize" skillId="248" ) to non-Dwarves? I added skills to the skill tree. The passive skill is in the menu. But there is no crystallization icon in the inventory.  Do I need to change something in the client?
I would be very grateful for your help!
Title: Re: How do I add the Crystallization skill to non-Dwarves?
Post by: SavitarGodOfSpeed on October 28, 2022, 10:02:56 PM
I am not playing this chronicle anymore but this kind of thing seems to me like an interface.u problem. Might be wrong though!
Title: Re: How do I add the Crystallization skill to non-Dwarves?
Post by: Minzee on October 30, 2022, 05:12:05 AM
Hi, you need edit interface.u and interface.xdat + also server side edits ;)
Title: Re: How do I add the Crystallization skill to non-Dwarves?
Post by: maximov on October 30, 2022, 09:00:51 AM
Hi, you need edit interface.u and interface.xdat + also server side edits ;)
Thanks for the tips. I looked at interface.u for restrictions.I found only this in the inventory window:
Code: [Select]
function CheckShowCrystallizeButton()
{
if( class'UIDATA_PLAYER'.static.HasCrystallizeAbility() )
m_hBtnCrystallize.ShowWindow();
else
m_hBtnCrystallize.HideWindow();
You can add the button itself, but it doesn't work. As you can see, it's just a check for the presence of the crystallization skill.
In the server part, I added the crystallization skill and it can be seen in the character's passive skills window.

Does anyone know where exactly the character is being tested for the presence of this skill?
Title: Re: How do I add the Crystallization skill to non-Dwarves?
Post by: Index on October 30, 2022, 11:27:16 AM
USER_INFO
Code: [Select]
{
packet.writeC(_player.getMountType().ordinal());
packet.writeC(_player.getPrivateStoreType().getId());
packet.writeC(_player.hasDwarvenCraft() || (_player.getSkillLevel(248) > 0) ? 1 : 0);
}
packet.writeC(_player.hasDwarvenCraft() || (_player.getSkillLevel(248) > 0) ? 1 : 0); - will be show icon in inventory
Title: Re: How do I add the Crystallization skill to non-Dwarves?
Post by: maximov on October 30, 2022, 01:36:06 PM
USER_INFO
Code: [Select]
{
packet.writeC(_player.getMountType().ordinal());
packet.writeC(_player.getPrivateStoreType().getId());
packet.writeC(_player.hasDwarvenCraft() || (_player.getSkillLevel(248) > 0) ? 1 : 0);
}
packet.writeC(_player.hasDwarvenCraft() || (_player.getSkillLevel(248) > 0) ? 1 : 0); - will be show icon in inventory

Thank you very much! Your answer solved my problem. :)