running passed yellow mobs
running passed yellow mobs
how do i get it to stop running passed yellow mobs
-
- Posts: 4
- Joined: Sat Feb 28, 2009 8:49 pm
Re: running passed yellow mobs
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.
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.
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: running passed yellow mobs
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).
-
- Posts: 4
- Joined: Sat Feb 28, 2009 8:49 pm
Re: running passed yellow mobs
would you mind explaining what the time check is doing?
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: running passed yellow mobs
Preventing you from targetting to soon and pulling more enemies while you could, potentially, already have something attacking you.
Who is online
Users browsing this forum: No registered users and 5 guests