Thread Tools Display Modes
01-27-20, 03:56 AM   #1
hakastein
A Defias Bandit
Join Date: Jan 2020
Posts: 2
How to get other player major essence?

Hello all. Im totally new in wow addons/lua but i have some experience in other languages. And i am stuck on inspect players. I cant find any manuals or smth what can help me.

For own essences i just use C_AzeriteEssence functions, like

Code:
local major = C_AzeriteEssence.GetMilestoneEssence(115)
local ess = C_AzeriteEssence.GetEssenceInfo(major);
print(C_AzeriteEssence.GetEssenceHyperlink(major,ess.rank)); -- link to major
but how can i get major essence of other player?

Please help and sorry for my bad english.
  Reply With Quote
02-13-20, 01:47 AM   #2
doofus
A Chromatic Dragonspawn
Join Date: Feb 2018
Posts: 158
As a wild guess, inspect them and parse the tooltip?
  Reply With Quote
02-13-20, 10:21 PM   #3
hakastein
A Defias Bandit
Join Date: Jan 2020
Posts: 2
Hearth of azeroth has no essences in tooltip, when linked. You can link it in the game and check.
  Reply With Quote
02-13-20, 11:42 PM   #4
jeruku
A Cobalt Mageweaver
 
jeruku's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 223
On inspect you can check the inspection target's inventory(equipment). I haven't used the Azerite functions before but can you use the itemID, or itemLink, to get the relevant information you need?
  Reply With Quote
02-14-20, 02:48 PM   #5
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,877
Of course it could be possible that you aren't allowed to access other people's essences. Some functions are limited to your own. Some bypass that using the tooltips and extract information available there. Others using inspection ..

However,

https://wow.gamepedia.com/World_of_W...API#Inspection

Shows very few documented inspection options and none to do with new data however, you may find something that will help via this file : https://github.com/tomrus88/Blizzard...rDollFrame.lua which may highlight functions that are used during inspection to gain data and may be useable by addons.

Looking at https://github.com/tomrus88/Blizzard...eEssenceUI.lua I can see no reference to a unit implying the player is the only unit the functions act on.
__________________
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to get other player major essence?

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