Saxantes Posted November 9, 2010 Share Posted November 9, 2010 Hi, i have problem with this code: public boolean onActionTime() { L2Character effected = getEffected(); if (getSkill().getSkillType() != L2SkillType.HEAL) return false; if (getEffected().isDead()) return false; This is code from effects. This line: if (getSkill().getSkillType() != L2SkillType.HEAL) , should stop effect if skill is different than HEAL skill, but it doesnt :x . What should i do if i want to stop current effect if player use any type of skill or he attack someone else or he get dmg ? Where should i search this commands in which java files? Link to comment Share on other sites More sharing options...
0 B1ggBoss Posted November 9, 2010 Share Posted November 9, 2010 if(getSkill().getSkillType() != L2SkillType.HEAL) { exit(); return false; } Link to comment Share on other sites More sharing options...
0 Saxantes Posted November 9, 2010 Author Share Posted November 9, 2010 No, it didnt help.... I will explain it better. I want to do new effect. i will add this effect to a skill. The skill is Buff. Player use this buff. I want to do that, when someone hit him (while he has this buff) or he hit someone else, the buff disappear. For example, someone use skill Dash. Now there are 3 ways to disappearing buff. 1 - time is out, 2 - someone hitted him, 3 - he hitted someone. Link to comment Share on other sites More sharing options...
0 Bleadd Posted November 9, 2010 Share Posted November 9, 2010 Maybe i can give give you a way : Ud for bishop => If he hit, his Ud disappear, Maybe look this skil. Or Ls skill : Ud, is same, when u use ud, you can't hit, if you hit, the UD disappear. Maybe go see these skills :/ Link to comment Share on other sites More sharing options...
0 Saxantes Posted November 9, 2010 Author Share Posted November 9, 2010 I have interlude and in this chronicle bishops UD doesnt disappear after hitting someone else. Link to comment Share on other sites More sharing options...
0 B1ggBoss Posted November 9, 2010 Share Posted November 9, 2010 you may check L2PcInstance.onAction() Link to comment Share on other sites More sharing options...
0 Saxantes Posted November 9, 2010 Author Share Posted November 9, 2010 I dont have anything like that :x Link to comment Share on other sites More sharing options...
0 Saxantes Posted November 10, 2010 Author Share Posted November 10, 2010 bump Link to comment Share on other sites More sharing options...
0 Saxantes Posted November 11, 2010 Author Share Posted November 11, 2010 Ok i have done it. U can lock topic. Link to comment Share on other sites More sharing options...
0 WeirdSituation Posted November 11, 2010 Share Posted November 11, 2010 Ok i have done it. U can lock topic. ok. :] Link to comment Share on other sites More sharing options...
Question
Saxantes
Hi, i have problem with this code:
This is code from effects.
This line: if (getSkill().getSkillType() != L2SkillType.HEAL) , should stop effect if skill is different than HEAL skill, but it doesnt :x .
What should i do if i want to stop current effect if player use any type of skill or he attack someone else or he get dmg ?
Where should i search this commands in which java files?
Link to comment
Share on other sites
9 answers to this question
Recommended Posts