- 0
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
AdBlock Extension Detected!
Our website is made possible by displaying online advertisements to our members.
Please disable AdBlock browser extension first, to be able to use our community.
Question
rocs
Greetings, i am trying my java skills adapting(and undersanding) an AIO buff system to l2jacis(last share revision) :
L2SkillLearn[] skills = SkillTreeTable.getInstance().getAvailableSkills(target, target.getClassId()); while(skills.length > unLearnable) { for (L2SkillLearn s : skills) { L2Skill sk = SkillTable.getInstance().getInfo(s.getId(), s.getLevel()); if (sk == null || !sk.getCanLearn(target.getClassId())) { if(countUnlearnable) unLearnable++; continue; } if(target.getSkillLevel(sk.getId()) == -1) skillCounter++; target.addSkill(sk, true); } countUnlearnable = false; skills = SkillTreeTable.getInstance().getAvailableSkills(target, target.getClassId()); }I pretty much think that the first error is something like example: (adding Integers when I want to concatenate something and trying to put it in a string), but I can't manage to resolve it
Edited by rocs1 answer to this question
Recommended Posts