View Single Post
04-18-15, 12:25 AM   #1
tobias1919
A Deviate Faerie Dragon
Join Date: Mar 2015
Posts: 13
Get the primary stats from item link?

Hello! I'll start of by saying i'm really new to lua.

I'm trying to make an addon, which "auto-loots" items that you do not need, on request from a friend of mine.

I've managed to make the addon auto loot items, based on types and subtypes (armor, weapon for types, and mail, plate etc for subtypes) - however, my friend requests for a way to autoloot items with intellect when he's playing a warrior and so on...

#1: I've tried to find a way to scan the tooltip from the itemlink (which i cannot find a decent explenation of - probably because i just don't understand it)

#2: How would it be possible to scan the tooltip for higher level items (when the gear gives both intellect and strength, based on class/specc)?

Would love any help/refferences - or a bit of code to explain how this works! Thanks alot!
  Reply With Quote