player:fight() Problem

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
nerf
Posts: 88
Joined: Thu Jan 27, 2011 10:44 am

player:fight() Problem

#1 Post by nerf »

Years ago this script worked very well but now it doesn't, what could be the solution?
What the script does now is target the boss repeatedly without attacking.

Code: Select all

   local Boss
   repeat
     yrest(1000)
     Boss = player:findNearestNameOrId("100370") or player:findNearestNameOrId("100625")
   until Boss   
   player:target(Boss.Address)
  player:fight()
User avatar
Administrator
Site Admin
Posts: 5340
Joined: Sat Jan 05, 2008 4:21 pm

Re: player:fight() Problem

#2 Post by Administrator »

It would seem that the
repeat
loop is able to find the boss by ID, but then
player:fight()
is exiting because the target isn't seen as valid.

It may be because of the elite factor in your profile. This option causes the bot to not consider targets with too much HP over your own as valid. Try changing value in your profile to something very high.

You might also set the leveldiff options very high to make sure it isn't because the boss is too high of level.

For example:

Code: Select all

<option name="AUTO_ELITE_FACTOR"    value="999" />

<option name="TARGET_LEVELDIF_ABOVE" value="10000" />
<option name="TARGET_LEVELDIF_BELOW" value="10000" />

Does that help?
User avatar
nerf
Posts: 88
Joined: Thu Jan 27, 2011 10:44 am

Re: player:fight() Problem

#3 Post by nerf »

I'm going to try it, thank you very much
Post Reply