[HELP] Attack with minimal distance (mindistance)

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
sam.jr
Posts: 258
Joined: Wed Feb 02, 2011 6:23 am
Location: Russia

[HELP] Attack with minimal distance (mindistance)

Post by sam.jr »

L2J Revision Number: 4959
L2JDP Revision Number: 8410

Who can help?
Need to modify skill with "mindistance" condition (minimal attack distance). Rush Impact for example.

Code: Select all

        <cond msgId="113" addName="1">            <target mindistance="200" />        </cond>
In retail if player use RI in lower 200 distance - char running to target and start hiting.
In l2j char standing on place with error message. I want to make doAttack or moveToPawn action if distance < 200.

Problem is - i can't find where going check for this.
Conditions modules - send action failed packet.
Seems - its somelike checking for maxdistance, but where is it?

Where i must start searching? L2AttackableAI? L2CharacterAI? L2Skill? L2Character? L2PCinstance? Which module/function?
== ==
Nik
L2j Veteran
L2j Veteran
Posts: 629
Joined: Fri Apr 18, 2008 9:09 pm

Re: [HELP] Attack with minimal distance (mindistance)

Post by Nik »

gameserver.skills.conditions.ConditionMinDistance.java
returns false if the skill isnt going to be launched and a message will be displayed.
Do you get a message in retail about your low distance or you just start running towards him to hit him without any message?
Playing a game where you know how every single mechanism works is quite satisfying.
Its the main perk that a gamer-developer has :D
User avatar
sam.jr
Posts: 258
Joined: Wed Feb 02, 2011 6:23 am
Location: Russia

Re: [HELP] Attack with minimal distance (mindistance)

Post by sam.jr »

Nik wrote:gameserver.skills.conditions.ConditionMinDistance.java
returns false if the skill isnt going to be launched and a message will be displayed.
Do you get a message in retail about your low distance or you just start running towards him to hit him without any message?
Second.
This is are some like feature, if bers using RI early than away on minimal distance - he's failing and come much closer to target.
== ==
User avatar
sam.jr
Posts: 258
Joined: Wed Feb 02, 2011 6:23 am
Location: Russia

Re: [HELP] Attack with minimal distance (mindistance)

Post by sam.jr »

UP :P
== ==
Post Reply