Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-04-14, 03:07 PM   #1
urbley
A Deviate Faerie Dragon
Join Date: Feb 2014
Posts: 10
Question Target NPC

Hi everyone,

This is my first thread here so forgive me if it's in the wrong section. I've been a WoW player for a long time and have always enjoyed writing little macros to make life easier but I've never really been compelled (until now) to dive into addons.

I guess there really hasn't been a need to as the likes of Curse pretty much has everything we need for day to day playing. Or so I thought.... I won't waffle though. On to business.

We have an alt raid group banging through SoO flex and always seem to have a problem on Nazgrim. It's the add priority of course. A combination of dodging the ravagers, the yellow **** on the ground and trying to pick out those shamans is a real pain. I'm sure you all know the score :P

I started writing out a little macro to check for each add by name, target it and set a raid icon i.e.

Code:
/target [@Kor'kron Warshaman,nodead] Kor'kron Warshaman; SetRaidTarget("target", 8)
but ran out of characters to cover all the permutations of the adds that can spawn.

So now I've been looking at an addon as an alternative. I was devastated to discover that the one api function that would make this all possible for me, TargetUnit, is protected

I've seen mentions here and there regarding using a "secure frame" to achieve this but unfortunately I haven't been able to find a working example or any other references. Obviously I wouldn't expect any of you to write it out for me but unfortunately my ninja Google skills are letting me down on this occasion and would really appreciate a little direction. Has anyone seen this or something similar?

If you've taken the time to read this I hope you enjoyed the read and really appreciate any help you can offer

Edit: Sorry I forgot to mention. If this has been covered elsewhere on the forums and I've simply failed to find it, massive apologies.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Target NPC


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