Page 1 of 1

combat distances question

Posted: Mon Nov 22, 2010 10:48 am
by nerdyone255
quick question about combat distance:

when i set the COMBAT_DISTANCE option in my profile to a low # (20 or less), my char still engages the mob, walks to it, and attacks at the distance of 20.

my question is: how do i get my char to totally ignore mobs outside a certian distance.

its a ranged class...

Re: combat distances question

Posted: Mon Nov 22, 2010 1:33 pm
by Starrider
<option name="MAX_TARGET_DIST" value="120" /> serches for mobs in a range of 120

Re: combat distances question

Posted: Mon Nov 22, 2010 9:23 pm
by rock5
And just to clarify things COMBAT_DISTANCE is how close it moves to the monster before starting an attack.

Re: combat distances question

Posted: Wed Nov 24, 2010 2:08 pm
by nerdyone255
this is exactly what i wanted thanks so much!!

one last question, is there a similar distance option to control height of mobs to engage? like a z distance trigger?

Re: combat distances question

Posted: Wed Nov 24, 2010 4:04 pm
by Alkaiser
nerdyone255 wrote:one last question, is there a similar distance option to control height of mobs to engage? like a z distance trigger?
From what I can see there is no profile option for this purpose.

In player.lua, the function evalTargetDefault has a check for difference of Y.

Code: Select all

	-- Check height difference
	if( math.abs(target.Y - player.Y) > 45 ) then
		return false;
	end

Re: combat distances question

Posted: Wed Nov 24, 2010 9:11 pm
by Administrator
Yes, height is on the Y axis and is taken care of the way Alkaiser pointed out.