Jump to content
  • 0

[HELP] How to change something


Question

Posted

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?

 

9 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted

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 :/

Guest
This topic is now closed to further replies.
×
×
  • Create New...