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.
u mentioned Russians too, what about them? and the war has nothing to do with the topic, the guy is delaying him on purpose cuz he cant deliver anything.
I never said I hate Russians. Please read carefully.
What I meant is that, due to the ongoing war and other circumstances, I would avoid outsourcing development work to Ukrainian developers at the moment. The limited access to electricity throughout the day and the risk of being called to war at any time make it challenging for them to ensure timely delivery.
Unfortunately, working with Ukrainian developers right now can be unreliable.
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.