Page 1 of 1

running passed yellow mobs

Posted: Mon Mar 02, 2009 1:50 pm
by trewds
how do i get it to stop running passed yellow mobs

Re: running passed yellow mobs

Posted: Tue Mar 03, 2009 8:45 pm
by carolinaswamp
Well I was gonna post a question about this but I guess I'll put it here since he was getting at the same idea.

I was curious how the targeting system works for the Bot. I have been checking out the .lua code and I can't figure out how its choosing targets. Could you shed some light on this?

The issue I am having is that the bot frequently runs past mobs that are right next to it. This usually would not matter since the mobs will naturally aggro the character anyways, but some of the mobs are 3-4 levels lower and therefore don't aggro. I still want the bot to attack them though.

I thought maybe the bot was only attacking mobs within X number of levels of the character, but I don't see any code where this logic is being done. Thanks for your help.

On a side note - great work you have done here.

Re: running passed yellow mobs

Posted: Wed Mar 04, 2009 3:02 am
by Administrator
Not much you can do about this problem short of following these simple instructions:
For your second question, open rom/classes/player.lua in notepad, press CTRL+G. Type in 373, and click OK. You'll see this line:

Code: Select all

      if( canTarget == false and os.difftime(os.time(), startTime) > 2 ) then

Change the 2 to a 1 or 0 and save, then reload the bot (CTRL+L).

Re: running passed yellow mobs

Posted: Sun Mar 08, 2009 1:07 pm
by carolinaswamp
would you mind explaining what the time check is doing?

Re: running passed yellow mobs

Posted: Sun Mar 08, 2009 1:56 pm
by Administrator
Preventing you from targetting to soon and pulling more enemies while you could, potentially, already have something attacking you.