running passed yellow mobs

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
trewds
Posts: 4
Joined: Sun Mar 01, 2009 3:23 pm

running passed yellow mobs

#1 Post by trewds » Mon Mar 02, 2009 1:50 pm

how do i get it to stop running passed yellow mobs

carolinaswamp
Posts: 4
Joined: Sat Feb 28, 2009 8:49 pm

Re: running passed yellow mobs

#2 Post by carolinaswamp » Tue Mar 03, 2009 8:45 pm

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.

User avatar
Administrator
Site Admin
Posts: 5306
Joined: Sat Jan 05, 2008 4:21 pm

Re: running passed yellow mobs

#3 Post by Administrator » Wed Mar 04, 2009 3:02 am

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).

carolinaswamp
Posts: 4
Joined: Sat Feb 28, 2009 8:49 pm

Re: running passed yellow mobs

#4 Post by carolinaswamp » Sun Mar 08, 2009 1:07 pm

would you mind explaining what the time check is doing?

User avatar
Administrator
Site Admin
Posts: 5306
Joined: Sat Jan 05, 2008 4:21 pm

Re: running passed yellow mobs

#5 Post by Administrator » Sun Mar 08, 2009 1:56 pm

Preventing you from targetting to soon and pulling more enemies while you could, potentially, already have something attacking you.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 31 guests