Disclaimer : All pseudo code
(Wouldn't mind real code answers )
I'd love some help knowing how to program pre emptive mouse hovering and interaction. I haven't familiarized myself with the API, so I've just been considering the logic of these things.
Such as when the bot is running toward an area, and it has already clicked on the intractable object contained within the area it's running to.
(and allows the player to run toward the object via interaction running)
if (myplayer.distance(areaOfObject) < 6){
object.interact;
}
or while fighting a monster, hovering the mouse over the next monster to attack.
This one i thought you may want to define 2 variables - one is closest npc and other is a 2nd closest npc? Any thoughts on this?
if (closestMonster.gethealth(<30)){
getMouse.hover(secondMonster);
}
The only issue with the above is that the 2nd monster would be changing constantly (due to distance '.closest') unless theres a way to make a variable static based upon monster 1.
Like whoever is 2nd closest at that moment is assigned as a new variable (nextTarget).
Would also have to check their distance and status to ensure the bot doesnt attack something which is being attack by another player AFTER the assignment to the nextTarget variable.
-quite complex, i may be overthinking it. My initial reasoning for implementing these features was antiban, but upon enlightenment of its uselessness I think this functionality techniques would make things happen faster. Which would be very useful with a large scale gold farm.
Thanks guys.
As i typed 'thanks guys' I questioned : is there a single female on this website as a dev? Not to assume gender roles (lol) but lets be honest this is a pretty male nerd place to be.