livogro Posted January 24, 2011 Posted January 24, 2011 Hey guys maybe u can help me with this: here is small examle how code looks now: L2Skill sk = SkillTable.getInstance().getInfo(s.getId(), s.getLevel()); if(sk == null || (sk.getId() == 271) {} but i need to make it after sk == null || with getClassId == 81 and then just (sk.getId() == 271) it just example, i tried many different ways but i cant get anything, and getClassId shown as not correct.. L2Skill sk = SkillTable.getInstance().getInfo(s.getId(), s.getLevel()); if(sk == null || (getClassId == 81) && (|| (sk.getId() == 271 || sk.getId() == 271 || (sk.getId() == 271 || (sk.getId() == 271))) {} and if its possible to do something like this, maybe u can help me cus need not only for one class but for few. if i didn't explain well, main idea is that i want to separate few classes with diffrent skills.
0 Kяaσh Posted January 24, 2011 Posted January 24, 2011 this one is after if mate { } why to do that?
0 livogro Posted January 24, 2011 Author Posted January 24, 2011 there is code inside them... i just need to make top part :)
0 Kяaσh Posted January 24, 2011 Posted January 24, 2011 L2Skill sk = SkillTable.getInstance().getInfo(s.getId(), s.getLevel()); if (sk == null) return; if (sk.getId() == 271) {} you must implement the method on the file that u make it.
0 livogro Posted January 24, 2011 Author Posted January 24, 2011 Its Done Thanks for idea!! Can lock now
Question
livogro
Hey guys maybe u can help me with this:
here is small examle how code looks now:
but i need to make it after sk == null || with
getClassId == 81 and then just (sk.getId() == 271)
it just example, i tried many different ways but i cant get anything, and getClassId shown as not correct..
and if its possible to do something like this, maybe u can help me cus need not only for one class but for few.
if i didn't explain well, main idea is that i want to separate few classes with diffrent skills.
6 answers to this question
Recommended Posts