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.
You indeed have to save player position over Enterworld to properly clean it up later (if you don't, even trying to delete packet content would eventually keep it up), that's what we do with debug packet (which is a reusable Map of ExServerPrimitive packets) on aCis.
It doesn't solve the FPS stuttering - more you draw/delete lines, more your client becomes laggy. It's like if client wasn't deleting drawn points/lines properly, but instead simply hide them and redrawn content above.
If you got a solution, I would happy to integrate it.
You should check aCis#Player _debug packet integration, it allows very big amount of lines/points to be drawn, it is also reusable.
https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java?ref_type=heads
https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java?ref_type=heads
we sell website templates, make websites to order. Great selection at very good prices.
My contacts
discord : advert1231
telegram : https://t.me/ggwpins
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hoodservices
https://campsite.bio/utchihaamkt
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?.
Link to comment
Share on other sites
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.