Thread Tools Display Modes
09/21/19, 08:01 AM   #1
cloudor
 
cloudor's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 23
How to get item description?

I want to retrieve time info from quick slot potion, not its cooldown info, but its effects time info. I can get item link by GetSlotItemLink(GetCurrentQuickslot()), but can't find any api to get its description. Please help.

Thank you.
  Reply With Quote
09/21/19, 08:58 AM   #2
Kyoma
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 125
Originally Posted by cloudor View Post
I want to retrieve time info from quick slot potion, not its cooldown info, but its effects time info. I can get item link by GetSlotItemLink(GetCurrentQuickslot()), but can't find any api to get its description. Please help.

Thank you.
You'll want either GetItemLinkOnUseAbilityInfo or GetItemLinkTraitOnUseAbilityInfo. For the latter a loop like this is needed I think:
Code:
for i = 1, GetMaxTraits() do
	local hasTraitAbility, traitAbilityDescription, traitCooldown, traitHasScaling, traitMinLevel, traitMaxLevel, traitIsChampionPoints = GetItemLinkTraitOnUseAbilityInfo(itemLink, i)
	if hasTraitAbility then
		...
	end
end
  Reply With Quote
09/25/19, 08:35 AM   #3
cloudor
 
cloudor's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 23
Originally Posted by Kyoma View Post
You'll want either GetItemLinkOnUseAbilityInfo or GetItemLinkTraitOnUseAbilityInfo. For the latter a loop like this is needed I think:
Code:
for i = 1, GetMaxTraits() do
	local hasTraitAbility, traitAbilityDescription, traitCooldown, traitHasScaling, traitMinLevel, traitMaxLevel, traitIsChampionPoints = GetItemLinkTraitOnUseAbilityInfo(itemLink, i)
	if hasTraitAbility then
		...
	end
end
That's it. Thank you very much!
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » How to get item description?

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