Go to Page... |
Compatibility: | Ascending Tide (7.3.5) Deadlands (7.2.5) Waking Flame (7.1.5) Blackwood (7.0.5) Flames of Ambition (6.3.5) Markarth (6.2.5) Stonethorn (6.1.5) Greymoor (6.0.5) |
Updated: | 03/09/20 10:22 AM |
Created: | 07/22/18 02:41 PM |
Monthly downloads: | 1,159 |
Total downloads: | 138,491 |
Favorites: | 25 |
MD5: |
local lib = LibPotionBuff
function lib:GetTimeLeftInSeconds(timeInMilliseconds) Parameter: number timeInMilliseconds - any number in milliseconds Returns: time in seconds rounded up
function lib:GetPotionBuffInfos(unitTag) --Parameter: string unitTag - any unitTag (http://wiki.esoui.com/UnitTag) -- Returns: boolean isBuffActive, bool isCrafted, bool isFromCrownStore, number abilityId, string buffName, number timeStarted, number timeEnds, textureString iconTexture
function lib:IsPotionBuffActive(unitTag) --Parameter: string unitTag - any unitTag (http://wiki.esoui.com/UnitTag) -- Returns: bool isBuffActive
function lib:IsPotionBuffActiveAndGetTimeLeft(unitTag) --Parameter: string unitTag - any unitTag (http://wiki.esoui.com/UnitTag) -- Returns: bool isBuffActive, number timeLeftInSeconds , number abilityId
function lib:GetPotionSlotCooldown(chatOutput) -- Parameter: boolean chatOutput - true = output the info to the chat; false = do not show anyhting into the chat -- Returns: number timeLeftInMilliseconds, number buffTotalCooldownInMilliseconds
function lib:IsAbilityACraftedPotionBuff(abilityId) --Parameter: integer abilityId - any abilityId (http://esoitem.uesp.net/viewlog.php?record=minedSkills) -- Returns: nilable:bool IsAbilityACraftedPotionBuff(true) or false if not, or nil if not any potion buff
function lib:IsAbilityACrownStorePotionBuff(abilityId) --Parameter: integer abilityId - any abilityId (http://esoitem.uesp.net/viewlog.php?record=minedSkills) -- Returns: nilable:bool isAbilityACrownStorePotionBuff(true) or false if not, or nil if not any potion buff
function lib:IsAbilityAPotionBuff(abilityId) --Parameter: integer abilityId - any abilityId (http://esoitem.uesp.net/viewlog.php?record=minedSkills) -- Returns: bool isAbilityAnActivePotionBuff(true) or false if not
function lib:RegisterAbilityIdsFilterOnEventEffectChanged(addonEventNameSpace, callbackFunc, filterType, filterParameter) --Parameters: addonEventNameSpace - prefered to insert your addon name. if you want to call this function twice, make sure the second/third/... addonEventNameSpace has another name. Example `addonName.."_01"`, `addonName.."_02"` --callbackFunc - any global function you want to run when the event is firing --filterType - choose any filter type from here: http://wiki.esoui.com/AddFilterForEvent --filterParameter - choose any filter parameter from here: http://wiki.esoui.com/AddFilterForEvent
function lib:UnRegisterAbilityIdsFilterOnEventEffectChanged()
File Name |
Version |
Size |
Uploader |
Date |
1.01 |
5kB |
Baertram |
09/17/18 10:57 AM |
|
1.0 |
5kB |
Baertram |
07/22/18 02:41 PM |
Comment Options |
Lakashi |
View Public Profile |
Send a private message to Lakashi |
Find More Posts by Lakashi |
Add Lakashi to Your Buddy List |
09/17/18, 11:17 AM | |
|
Thanks Lakashi, quick and good find! Fixed now + added dependency to LibStub properly.
|
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
Sordrak |
View Public Profile |
Send a private message to Sordrak |
Find More Posts by Sordrak |
Add Sordrak to Your Buddy List |
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
09/18/21, 08:53 AM | |
Potion IDs
I did some crafting today and got some IDs. Unfortunately, I won't be able to get the crown store potion IDs and the IDs of the improved companion potions (i did not really level that companion...).
So here's the list of the potions i have checked. Alliance War: Code:
Item: Alliance Battle Draught, Link: |H1:item:71073:307:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h Major Endurance: 61705 Major Brutality: 61665 Major Savagery: 61667 Item: Alliance Health Draught, Link: |H1:item:71071:307:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h Major Fortitude: 61698 Unstoppable: 72930 Invisibility: 136002 Item: Alliance Spell Draught, Link: |H1:item:71072:307:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h Major Intellect: 61707 Major Sorcery: 61687 Major Prophecy: 61689 Code:
Item: Essence of Health, Link: |H1:item:27036:307:50:0:0:0:0:0:0:0:0:0:0:0:0:36:0:0:0:0:0|h|h Major Fortitude: 61698 Item: Essence of Stamina, Link: |H1:item:27038:307:50:0:0:0:0:0:0:0:0:0:0:0:0:36:0:0:0:0:0|h|h Major Endurance: 61705 Item: Essence of Magicka, Link: |H1:item:27037:307:50:0:0:0:0:0:0:0:0:0:0:0:0:36:0:0:0:0:0|h|h Major Intellect: 61707 Code:
Item: Essence of Health, Link: |H1:item:54339:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:8454917|h|h Major Fortitude: 61698 Major Intellect: 61707 Major Endurance: 61705 Item: Essence of Armor, Link: |H1:item:27042:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:596253|h|h Physical Resistance Potion: 64564 Minor Protection: 61721 Major Vitality: 61713 Item: Essence of Immovability, Link: |H1:item:27039:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:1250563|h|h Increase Detection: 45236 Major Intellect: 61707 Item: Essence of Speed, Link: |H1:item:27041:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:1508639|h|h Major Expedition: 61736 Major Endurance: 61705 Minor Heroism: 61708 Item: Essence of Weapon Power, Link: |H1:item:44714:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:856325|h|h Major Brutality: 61665 Major Savagery: 61667 Major Endurance: 61705 Item: Essence of Spell Power, Link: |H1:item:30145:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:724739|h|h Major Sorcery: 61687 Major Prophecy: 61689 Major Intellect: 61707 Item: Essence of Magicka, Link: |H1:item:54340:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:198425|h|h Major Intellect: 61707 Spell Resistance Potion: 64562 Minor Protection: 61721 Item: Essence of Invisibility, Link: |H1:item:44715:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:1442075|h|h Invisibility: 45237 Major Fortitude: 61698 Lingering Restore Health: 79705 Item: Essence of Immovability, Link: |H1:item:27039:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:1250565|h|h Increase Detection: 45236 Major Endurance: 61705 Code:
Item: Essence of Ravage Health, Link: |H1:item:44812:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:132626|h|h Minor Enervation: 79907 Ravage Health: 46113 Ravage Stamina: 46199 Item: Essence of Ravage Health, Link: |H1:item:44812:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:139264|h|h Minor Timidity: 140699 Ravage Health: 46113 Item: Essence of Ravage Magicka, Link: |H1:item:44815:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:265216|h|h Ravage Magicka: 46193 Minor Cowardice: 79867 Item: Essence of Ravage Armor, Link: |H1:item:27040:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:659968|h|h Physical Resistance Reduction: 46208 Minor Enervation: 79907 Item: Essence of Entrapment, Link: |H1:item:54333:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:1311744|h|h Ravage Magicka: 46193 Item: Essence of Hindering, Link: |H1:item:54335:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:1580544|h|h Hindrance: 46210 Minor Defile: 61726 Item: Essence of Ravage Stamina, Link: |H1:item:44809:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:399374|h|h Ravage Stamina: 46199 Hindrance: 46210 Minor Maim: 61723 Item: Essence of Uncertainty, Link: |H1:item:54336:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:1053184|h|h Minor Uncertainty: 79895 Minor Enervation: 79907 Item: Essence of Ravage Health, Link: |H1:item:44815:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:264192|h|h Ravage Magicka: 46193 Spell Resistance Reduction: 46206 Item: Essence of Creeping Ravage Health, Link: |H1:item:77594:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:1:0:0:0:1841664|h|h Creeping Ravage Health: 79709 Minor Vulnerability: 79717 Two things are a bit odd. The Invisibility is different on alliance and crafted potions. Unstoppable does not seem to be given as a buff anymore with crafted potions (only seen on alliance potions). If we put all these effects in one category (e.g. is potion), the new list would look like this (missing crown store and companion pots): Code:
local isPotion = { --Positive [61698] = true, --"Major Fortitude", [61707] = true, --"Major Intellect", [61705] = true, --"Major Endurance", [45236] = true, --"Increase Detection", [45237] = true, --"Invisibility", INFO: Still has a different ID on alliance Potions 136002 (wtf?) [72930] = true, --"Unstoppable", INFO: Does not exist on crafted Potions anymore (wtf?) [61665] = true, --"Major Brutality", [61687] = true, --"Major Sorcery", [61736] = true, --"Major Expedition", [61667] = true, --"Major Savagery", [61689] = true, --"Major Prophecy", [79705] = true, --"Lingering Restore Health", [61721] = true, --"Minor Protection", [61713] = true, --"Major Vitality", [64564] = true, -- "Physical Resistance Potion", [64562] = true, -- "Spell Resistance Potion", [61708] = true, -- "Minor Heroism", -- Negative [46113] = true, --"Ravage Health", [46193] = true, --"Ravage Magicka", [46199] = true, --"Ravage Stamina", [79867] = true, --"Minor Cowardice", [61723] = true, --"Minor Maim", [46206] = true, --"Spell Resistance Reduction", [46208] = true, --"Physical Resistance Reduction", [46210] = true, --"Hindrance", [79907] = true, -- "Minor Enervation", [140699] = true, -- "Minor Timidity", [61726] = true, -- "Minor Defile", [79895] = true, -- "Minor Uncertainty", [79709] = true, -- "Creeping Ravage Health", [79717] = true, -- "Minor Vulnerability", } |
|
|
Sordrak |
View Public Profile |
Send a private message to Sordrak |
Find More Posts by Sordrak |
Add Sordrak to Your Buddy List |
09/19/21, 07:32 AM | ||
|
Re: Potion IDs
Thank you very very much for the work you have put into!
Did not look at all but looks like not all unique buffIds are there anymore to clearly distinguish "all" crafted potions from non-crafted ones. This is odd I guess I need some time and a queit moment to sort the things out and see if one can keep the different tabes of potion Ids, maybe enhance them a bit for the new invisibility buff Ids. Currently I cannot free my brain to work on this.
|
|
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
09/26/21, 08:24 AM | ||
Re: Re: Potion IDs
|
||
|
Sordrak |
View Public Profile |
Send a private message to Sordrak |
Find More Posts by Sordrak |
Add Sordrak to Your Buddy List |
09/27/21, 01:29 AM | |||
|
Re: Re: Re: Potion IDs
hm so e.g. Major brutality's buff id is the same for potion and skills now?
Not sure if always was "split" in the past but I think so. Guess the lib now is useless then, or only semi-helpfull (depending on the usecase).
|
||
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
10/06/21, 12:14 PM | ||||
Re: Re: Re: Re: Potion IDs
So yes, that sucks :/ |
||||
|
Sordrak |
View Public Profile |
Send a private message to Sordrak |
Find More Posts by Sordrak |
Add Sordrak to Your Buddy List |
10/06/21, 05:38 PM | |||||
|
Re: Re: Re: Re: Re: Potion IDs
And he feedback by our ZOs dev contact was already that he cannot really help here as this was done by other guys who made the decisions.
Actually I doubt this will change again *sigh* And I'm not really interested into trying to find any other working way (I doubt there is any). So this lib currently is left-over in a non-functional/non-intended way of working -> RIP As long as noone else wants to invest the tme to find other ways to get the same abilityIds connected to potions by e.g. checking if any potion is currently on cooldown and checking if the buff's timer of potions is always higher (even without passives inmproving the timer length) and taking asumptions that a buffId could be a potion's buffId this way
Last edited by Baertram : 10/06/21 at 05:41 PM.
|
||||
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.