Thread Tools Display Modes
08-28-16, 02:44 PM   #1
ievil
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: May 2005
Posts: 20
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-
 
10-29-16, 01:09 AM   #2
rowaasr13
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 27
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)
__________________
Garrison Mission Manager
 
11-01-16, 04:59 AM   #3
legowxelab2z8
A Defias Bandit
Join Date: Oct 2016
Posts: 2
7.1 added an API function IsArtifactPowerItem() that takes an itemID, itemLink, or itemName and returns true or false
 
11-07-16, 01:33 PM   #4
rowaasr13
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 27
Ugh, it returns false for http://www.wowhead.com/item=141699/b...-the-companion.
__________________
Garrison Mission Manager
 
 

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » Aritifact Power and quests?

Thread Tools
Display Modes

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