Jump to content
  • 0

Some classes with aoe.


Question

Posted

Hello there!

I just want some help here... me and my friend, we both tried to make something like the title says...

but we didn't tested yet it, as maxcheaters has alot of good developers, I was thinking about to share this idea also...

ahh, it is from h5 servers

here is the code:

 

http://pastebin.com/QCYErG3N

6 answers to this question

Recommended Posts

  • 0
Posted

if (((!(obj instanceof L2PetInstance)) || (!(this instanceof L2PcInstance)) || (((L2PetInstance) obj).getOwner() != (L2PcInstance) this)) && (Util.checkIfInRange(maxRadius, this, obj, false)) && (Math.abs(obj.getZ() - getZ()) <= 650) && (isFacing(obj, maxAngleDiff)) && ((!(this instanceof L2Attackable)) || (!(obj instanceof L2PcInstance)) || (!(getTarget() instanceof L2Attackable))) && ((!(this instanceof L2Attackable)) || (!(obj instanceof L2Attackable)) || (((L2Attackable) this).getEnemyClan() != null) || (((L2Attackable) this).getIsChaos() != 0)) && ((!(this instanceof L2Attackable)) || (!(obj instanceof L2Attackable)) || (((L2Attackable) this).getEnemyClan().equals(((L2Attackable) obj).getClan())) || (((L2Attackable) this).getIsChaos() != 0)))

My eyes !

 

About the main idea, you could give more details : you want weapons, such as two handed weapons, to deal aoe damages ? If yes, wouldn't it simply better to call a skill on impact ? You will also have visual effect at least, and the code probably will be shorter.

  • 0
Posted

well, main idea is such as swordsinger and bladedancer should have some aoe using weapons, like dual, blunt and sword...

ahh aoe is enabled if they reach 950 atkspeed...

  • 0
Posted

well, main idea is such as swordsinger and bladedancer should have some aoe using weapons, like dual, blunt and sword...

ahh aoe is enabled if they reach 950 atkspeed...

Well the skill idea is perhaps clinky, notably for animation.

 

Correct me if I'm wrong, but using Pole calculations isn't enough ? You create a custom method (with all your checks about classes, patk, used weapon) which either return true or false, if it's false it uses regular calculation (dual, regular, etc), if it's true it uses pole system.

  • 0
Posted

doAttackBySword on yout L2Character, and add a loop depending on how many targets you want the aoe to be, but take care cause the Attack packet is tricky on aoes, just look doAttackHitByPole both on your L2Character.java

Guest
This topic is now closed to further replies.


×
×
  • Create New...