I'm struggling a bit to think of a way to design a good function which will generically target enemies in an MMO if they do not support tab targeting.
So my thoughts are this currently:
targetEnemy(hpBar,area) {
Click randomly in screen 'area' (avoid UI elements) until 'hpBar' appears
}
Is there a better way? My concerns: 1. Accounting for the end of the map/edges/location transfers 2. Getting into aggro range of enemies but not clicking them during the Rng clicking, causing myself to take damage and waste healing sources. 3. Looking like a botter by spazzing around the map