Hi people!. I have created a button on my communityboard that show available skills to learn but with this code when SkillsList Opens and i try to click on that windows it closes.
publicvoid showSkillsList(L2PcInstance player){// Normal skills, No LearnedByFS, no AutoGet skills.
final List<L2SkillLearn> skills =SkillTreesData.getInstance().getAvailableSkills(player, player.getClassId(),false,false);
final AcquireSkillList asl =newAcquireSkillList(AcquireSkillType.CLASS);int count =0;
player.setLearningClass(player.getClassId());for(L2SkillLearn s : skills){if(SkillData.getInstance().getInfo(s.getSkillId(), s.getSkillLevel())!= null){
asl.addSkill(s.getSkillId(), s.getSkillLevel(), s.getSkillLevel(), s.getCalculatedLevelUpSp(player.getClassId(), player.getClassId()),0);
count++;}}if(count ==0){
final Map<Integer, L2SkillLearn> skillTree =SkillTreesData.getInstance().getCompleteClassSkillTree(player.getClassId());
final int minLevel =SkillTreesData.getInstance().getMinLevelForNewSkill(player, skillTree);if(minLevel >0){SystemMessage sm =SystemMessage.getSystemMessage(SystemMessageId.DO_NOT_HAVE_FURTHER_SKILLS_TO_LEARN_S1);
sm.addInt(minLevel);
player.sendPacket(sm);}else{if(player.getClassId().level()==1){SystemMessage sm =SystemMessage.getSystemMessage(SystemMessageId.NO_SKILLS_TO_LEARN_RETURN_AFTER_S1_CLASS_CHANGE);
sm.addInt(2);
player.sendPacket(sm);}else{
player.sendPacket(SystemMessageId.NO_MORE_SKILLS_TO_LEARN);}}}else{
player.sendPacket(asl);}}
Do you know if there ir a solution for that problem?.
🎉 L2NeverPain StuckSub - GRAND OPENING 12 December 2025🎉
After beta, testing, mistakes, laughs and a lot of PvP, the moment has finally come.
L2NeverPain StuckSub is officially opening its gates on 12 December 2025.
⚔️What to expect:
✦Main Class +2 Stuck Sub system
✦Balanced PvP & custom party farm areas
✦Custom events, bosses and strong rewards
✦Competitive clan scene with castle rewards
📌Until the opening:
✦Create your clans and register them in the Clan-Register channel
✦Invite your friends / old parties / CPs
✦Stay tuned for more information (rates, events, siege times, etc.)
Get your setups ready, prepare your macros and your Discord/voice.
On 12 December 2025 20:00 GMT+2, we write the first chapter of NeverPain together. 🔥
https://l2neverpain.com/
https://discord.gg/kNP3UXgkmN
Check my post where I shared Lucera pack, you can pick textures from there. Here is a link of datapack/srv https://eu2.contabostorage.com/d4b39866f6bb4084b6c969ec8fe20063:kita/Lucera_Classic_Remaster/Lucera Classic Remaster Server and Datapack files.rar
Question
barao45
Hi people!. I have created a button on my communityboard that show available skills to learn but with this code when SkillsList Opens and i try to click on that windows it closes.
Do you know if there ir a solution for that problem?.
Edited by Vision9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now