Page 1 of 1

Adds

Posted: Mon Mar 23, 2009 9:58 pm
by CrazyGuy
Ive got a problem with adds, sometimes ill get an add and the bot will target and kill 2-3 more mobs before it gets around to targeting the mob that is following it. How could it be edited so that once it kills the mob, it just hits esc or whatever it needs to clear the target, then the next hit the mob does, that will be the new focus.

Re: Adds

Posted: Mon Mar 23, 2009 11:02 pm
by ciraco
I also made a post this morning asking if there were plans to implement an aggro check before it went to go find more mobs to pull.
Have not had any responses yet tho. We can stay hopeful!

Re: Adds

Posted: Mon Mar 23, 2009 11:44 pm
by Administrator
There is a way, but it's not a great solution. Open rom/classes/player.lua in notepad, press CTRL+G. Go to line 389, and you'll see this:

Code: Select all

		if( canTarget == false and os.difftime(os.time(), startTime) > 1 ) then
			canTarget = true;
		end
Change the 1 to another number. Higher numbers mean it spends more time waiting for aggressive monsters to hit before attempting to target another, while lower numbers mean you'll spend less time waiting for them, but also have a lower chance of walking right past some monsters.