Page 1 of 1

[HELP] Attack with minimal distance (mindistance)

Posted: Fri Sep 30, 2011 12:15 pm
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?

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

Posted: Fri Sep 30, 2011 5:24 pm
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?

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

Posted: Fri Sep 30, 2011 5:47 pm
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.

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

Posted: Tue Oct 04, 2011 6:10 pm
by sam.jr
UP :P