ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   PTS Get equipped champion skill ID (https://www.esoui.com/forums/showthread.php?t=9584)

CyberOnEso 02/16/21 05:38 AM

PTS Get equipped champion skill ID
 
Hello,
I was wondering if anyone would be able to help me find a way to see which nodes are currently slotted on the champion bar. Thus far I have not been able to find a way to do so.

PTS API Patch Notes: https://www.esoui.com/forums/attachm...5&d=1611861988

Any help would be really appreciated,
Many thanks in advance

Baertram 02/16/21 07:48 AM

Should be one of these I guess:
Code:

* PrepareChampionPurchaseRequest(*bool* _respecNeeded_)

* AddSkillToChampionPurchaseRequest(*integer* _championSkillId_, *integer* _newPendingPoints_)

* AddHotbarSlotToChampionPurchaseRequest(*luaindex* _slotIndex_, *integer* _championSkillId_)

* GetChampionPurchaseAvailability()
** _Returns:_ *[ChampionPurchaseResult|#ChampionPurchaseResult]* _result_

* GetExpectedResultForChampionPurchaseRequest()
** _Returns:_ *[ChampionPurchaseResult|#ChampionPurchaseResult]* _result_

* SendChampionPurchaseRequest()

* GetChampionDisciplineId(*luaindex* _disciplineIndex_)
** _Returns:_ *integer* _disciplineId_


CyberOnEso 02/16/21 08:21 AM

Thank you very much for your response.

Sadly I cannot find a way to get the current slotted champion points by any of those functions.

sirinsidiator 02/16/21 11:28 AM

Did you check the code for the champion skill bar? The game shows the slotted skills there, so there has to be a way to get that info.

CyberOnEso 02/16/21 06:31 PM

Quote:

Originally Posted by sirinsidiator (Post 43238)
Did you check the code for the champion skill bar? The game shows the slotted skills there, so there has to be a way to get that info.

Got it!!! Thank you =D

If anyone needs to use this in the future you need

Lua Code:
  1. -- SkillIndex = the Index of the slot on your champion bar from 1 - 12
  2. CHAMPION_PERKS.championBar:GetSlot(SkillIndex).championSkillData:GetId()


All times are GMT -6. The time now is 06:10 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI