Page 1 of 1

player:fight() Problem

Posted: Sun Oct 23, 2022 5:38 am
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()

Re: player:fight() Problem

Posted: Sun Oct 23, 2022 7:47 am
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?

Re: player:fight() Problem

Posted: Sun Oct 23, 2022 9:54 am
by nerf
I'm going to try it, thank you very much