WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Legion Beta archived threads (https://www.wowinterface.com/forums/forumdisplay.php?f=177)
-   -   Aritifact Power and quests? (https://www.wowinterface.com/forums/showthread.php?t=54321)

ievil 08-28-16 02:44 PM

Aritifact Power and quests?
 
Hi

Is there any of the changed API that will give info about if a quest reward is artifact power or not?

-ievil-

rowaasr13 10-29-16 01:09 AM

I couldn't find one, so I just scan the item's tooltip in Garrison Mission Manager's mission reward AP display and some macros I have to use all AP items in bag. Available in library here: https://wow.curseforge.com/addons/libttscan-1/. Usage for relevant function:
Lua Code:
  1. -- Get amount of AP
  2. ap_amount = LibStub:GetLibrary("LibTTScan-1.0").GetItemArtifactPower(item_id)
  3. -- Or just true/false if you want to see if item is AP consumable
  4. is_ap_consumable = LibStub:GetLibrary("LibTTScan-1.0").GetItemArtifactPower(item_id, true)

legowxelab2z8 11-01-16 04:59 AM

7.1 added an API function IsArtifactPowerItem() that takes an itemID, itemLink, or itemName and returns true or false

rowaasr13 11-07-16 01:33 PM

Ugh, it returns false for http://www.wowhead.com/item=141699/b...-the-companion.


All times are GMT -6. The time now is 02:49 AM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI