I'm creating an addon that would automatically create/update a macro that could place a quest item into itself depending on the player target, or mouseover depending on if that unit is related to a quest with a quest item associated with it.
Currently what I have:
Pastebin:
http://pastebin.com/Sjg5FbV9
So what I need to know basically at this point is how I would go about checking the unit for item associations.
I know that the tooltip shows quest information, and I can use GetContainerItemQuestInfo(bag,slot) for checking bags for quest items.
Any thoughts as to how I would go about fleshing this out?