Skull Macro

I’d just like to put a skull on a non-targetable entity, my NPC scan addon can, and so I know it’s possible.

To the best of my knowledge NPC Scan works off “tracking” when a nameplate is created for any npc and that’s how it finds what you’re looking for. If an game-thing has a nameplate, it can be targeted (even if you can’t attack it) and if it can be targeted, it can have a raid marker put on it (like the skull). Although some “npc’s” are actually interactable objects and those don’t have nameplates, can’t be targeted and can’t be marked either.

There is a range limit of course and only 1 thing can be marked with the same icon (can only put a skull on 1 thing)

The API to put a skull, square, etc… on a unit is
https://wow.gamepedia.com/API_SetRaidTarget
For example one of my “find npc” macros that use it.

/cleartarget
/tar  Direfang Alpha
/cleartarget [dead]
/stopmacro [dead,noexists]
/run SetRaidTarget("target", 7)

The unitid (in the above macro that’s “target”) can be any valid unitid and see here for more info:
https://wow.gamepedia.com/UnitId

1 Like

Think they’ll want mouseover rather than target for the unit id.

For targets you can either use the built-in keybinds or the /tm # command.

I believe /run SetRaidTarget(“target”, 8) is what you want for Skull (7 will do “X”)