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.
I apologize for my incompetence. The ability to trade is limited only for builder 1. Ordinary characters can trade with each other, and this has nothing to do with auto loot.)
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.