Page 1 of 1

BOT prefers red mob. how to change this?

Posted: Sat May 03, 2014 8:54 am
by lobotomy
hi all!
sometimes when i farm a zone for xp/tp, i see that even though a perfectly fine yellow mob is within 50 units from the bot, it still goes far away and attacks the red ones first, and when they are gone, it attacks the yellow ones also.
how can i prevent this, and make the bot treat all mobs equally, and always attack the closest one?

thanks

Re: BOT prefers red mob. how to change this?

Posted: Sat May 03, 2014 9:26 am
by rock5
The bot gives a score to mobs based on distance, mob health, whether they are attacking you and,yes, also if they are red. There is no user option to change this but you can edit the player.lua file to change the score it gives to red mobs.

On line 547 of player.lua you will see

Code: Select all

	local SCORE_AGGRESSIVE = 80;    -- aggressive = score
If you change that to 0 it will give no preference to red mobs. Although it might be a good idea to give red mobs a little preference so when a yellow and red are close it will attack the red first.

Re: BOT prefers red mob. how to change this?

Posted: Sat May 03, 2014 12:33 pm
by lobotomy
thank you, this worked :)