Hello guys, There is a bug in my server,which allows players to have multiple classes skills. For example,Saggitarius with Paladin skills.I know it's related to PHX. I tried this fix,but it just removed every skill:
public L2Skill addSkill(L2Skill newSkill, boolean store)
{
// Add a skill to the L2PcInstance _skills and its Func objects to the calculator set of the L2PcInstance
L2Skill oldSkill = super.addSkill(newSkill);
// Add or update a L2PcInstance skill in the character_skills table of the database
if (store)
storeSkill(newSkill, oldSkill, -1);
+ if(!SkillTreeTable.getInstance().getAllAvailableSkills(this, getClassId()).contains(newSkill))
+ removeSkill(newSkill,false);
return oldSkill;
}
📢 OBT Success – Get Ready for Launch: November 28!!
The Open Beta was an absolute blast!
Over 160+ Master Accounts successfully claimed their reward from The Judge, proving once again how strong and loyal this community truly is.
🔥 Missed the event?
Don’t worry — because so many players asked for another chance, we will host an additional Event very soon! Stay tuned for details.
Community Growth
We’ve already surpassed 500 Master Accounts registered on our forums — and the numbers keep rising every hour.
It feels like the old days… the same energy, the same hype, the same love for Lineage II.
Let’s rebuild L2Elixir the way we remember it:
No shortcuts, no nonsense — just pure old nostalgic gameplay, community spirit, and that classic adventure we all grew up with.
✨ The journey continues…
Launch: November 28, 21:00 UTC+2
Be there when the legend returns.
🔗 Website: https://l2elixir.org/
💬 Discord: https://discord.gg/5ydPHvhbxs
Question
StealthyS4m
Hello guys,
There is a bug in my server,which allows players to have multiple classes skills.
For example,Saggitarius with Paladin skills.I know it's related to PHX.
I tried this fix,but it just removed every skill:
public L2Skill addSkill(L2Skill newSkill, boolean store) { // Add a skill to the L2PcInstance _skills and its Func objects to the calculator set of the L2PcInstance L2Skill oldSkill = super.addSkill(newSkill); // Add or update a L2PcInstance skill in the character_skills table of the database if (store) storeSkill(newSkill, oldSkill, -1); + if(!SkillTreeTable.getInstance().getAllAvailableSkills(this, getClassId()).contains(newSkill)) + removeSkill(newSkill,false); return oldSkill; }I am using acis 320
Edited by StealthyS4m11 answers to this question
Recommended Posts