Quantcast Target markers placed automatically - WoWInterface
Thread Tools Display Modes
05-08-19, 05:45 PM   #1
doofus
A Black Drake
Join Date: Feb 2018
Posts: 84
Target markers placed automatically

I was doing some mythics earlier and it seems there is an addon, Weak Auras and something else, which would place a Moon over a particular target out of a pack of enemies (in this case the one with highest HP because of the Bolster affix).

I was trying to imagine how it might work.

I can only guess that when you go in combat, there will be events about enemies aggroing you or your party members ? And then the addon must be using some API to place a target marker over a specific target ? And even if there are multiple targets with the same name, eg "Crazed Disciple", I guess it still somehow works and can tell who is who and mark the right one ?

I mean DBM puts markets on players, so I presume an addon can place a marker over an enemy ? The clever bit is that the marker is placed on the pull before you even have the chance to hit anything or to be hit, so it works not off of your attacks, but on some kind of aggro message/event.

Am I right in all these assertions?
  Reply With Quote
05-08-19, 06:23 PM   #2
Terenna
A Black Drake
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 82
It's polling the combat log for events from enemies. Once it sees an enemy is engaged, it logs its unique guid and the health of that GUID. It then likely compares the players target, focus, or mouseover to that table constantly so that it can setraidtarget on any of those units if their health is lowest. This weak aura or add-on likely will not update correctly if the player doesn't mouseover or change targets enemies or their nameplates.
  Reply With Quote
05-09-19, 04:45 AM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,771
Addons can read nameplate units directly if nameplates are enabled. Bosses can also be read in fights that have boss UnitFrames, which are typically in raids.
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
05-11-19, 03:08 AM   #4
doofus
A Black Drake
Join Date: Feb 2018
Posts: 84
Thanks for the replies, guys.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Target markers placed automatically

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off