Jump to content
  • 0

[HELP] How to change something


Saxantes
 Share

Question

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

9 answers to this question

Recommended Posts

  • 0

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

  • 0

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

Guest
This topic is now closed to further replies.
 Share



×
×
  • Create New...

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.

I've Disabled AdBlock