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?.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Hello @Hitcher. Could you please clarify the scenario in which this happened?
Was it on GF server?
The drops that were on the ground were from the same character? These fell with autoloot off, then you activated autoloot and tried to pick? Please provide more details so we can replicate it.
Quality service,
I hired him as driver, and whole time while it lasted, I was notified every detail what he was doing. Really quality.
I recommend these services.
🔥 DISCOUNT UNTIL THE END OF THE MONTH!
» From 21.11.2024 to 24.11.2024 - 20% Discount!
Price: 500$ - 400$.
»From 25.11.2024 to 30.11.2024 - 10% Discount!
Price: 500$ - 450$.
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?.
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.