Im trying to find a way to change the skill description for example when a character have 1kkk adenas..
example:
adena < 1kkk
adena >= 1kkk
I have to create one more skill like hydro in skillname-e with the new description?
if yes how can i switch the link to appear the new skill?
ive searched in enchantskill file how the icon is replacing but i didnt get what i need because this is for changing the whole icon (+1 etc)...
for (L2ShortCut sc : activeChar.getAllShortCuts())
{
if (sc.getId() == _skillId && sc.getType() == L2ShortCut.TYPE_SKILL)
{
L2ShortCut newsc = new L2ShortCut(sc.getSlot(), sc.getPage(), L2ShortCut.TYPE_SKILL, _skillId, _skillLevel, 1);
activeChar.sendPacket(new ShortCutRegister(newsc));
activeChar.registerShortCut(newsc);
}
}
Edit: if i have to do the same as any enchanted skill with the new description i have to change enchant_skills_tree and plus one more enchant for all those skills?
I fixed same problem a while ago... look for an item which does not cause the character to stop walking/running when used and check its skill xml attributes, I think it's most likely the "operate_type" or the "next_action" attributes. First test different "operate_type" parameters.
I can offer this auto-farm with party assist feature, this picture is from L2jServer high five pack. but can adopt to other packs also.
Discord: l2retro
Question
melron
Hello there,
Im trying to find a way to change the skill description for example when a character have 1kkk adenas..
example:
adena < 1kkk
adena >= 1kkk
I have to create one more skill like hydro in skillname-e with the new description?
if yes how can i switch the link to appear the new skill?
ive searched in enchantskill file how the icon is replacing but i didnt get what i need because this is for changing the whole icon (+1 etc)...
for (L2ShortCut sc : activeChar.getAllShortCuts()) { if (sc.getId() == _skillId && sc.getType() == L2ShortCut.TYPE_SKILL) { L2ShortCut newsc = new L2ShortCut(sc.getSlot(), sc.getPage(), L2ShortCut.TYPE_SKILL, _skillId, _skillLevel, 1); activeChar.sendPacket(new ShortCutRegister(newsc)); activeChar.registerShortCut(newsc); } }Edit: if i have to do the same as any enchanted skill with the new description i have to change enchant_skills_tree and plus one more enchant for all those skills?
Any suggestion?
Edited by melron4 answers to this question
Recommended Posts