FBMW++

By Pea Cracker Last update Feb 24, 2009 — Installed 39,028 times.

Aim For Highest Bounty

in
Subscribe to Aim For Highest Bounty 6 posts, 5 voices



Keleas User

I'm not exactly sure what's wrong, but for some reason whenever there's two bounties on my hitlist, it always goes after the lowest, even though it's set to aim for the highest one. I've reviewed the code and as far as I understand it, there's nothing wrong with it figuring out what the highest bounty is.

Anybody else noticed the same issue?

 
ManySheeps User

Same for me.

 
Chris D User

The code has been wrong. I have been trying to mess with the hitlist code for a month but couldnt fix it.

Basically aim for highest goes for the player at the end of the list, while first come first serve aims for the top of the list.

It doesnt take bounty into account.

 
davevg User

I *think* that it has to do with
var highest = 0;

var highest_target;


being in the else statement instead of being directly before the for loop next to first_target and target_aquired. It resets highest to 0 at each iteration of the loop.

 
jaguarcy Scriptwright

Yep, that's it. To fix:

var highest = 0

must be moved just before the beginning of the for loop, ~41 lines higher.

 
Chris D User

I still seem to aim for the last target in the list, instead of the highest target. Is anyone else noticing the same thing?

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel