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: | 04/18/19 01:36 PM |
Created: | 04/18/19 01:36 PM |
Monthly downloads: | 1,592 |
Total downloads: | 93,579 |
Favorites: | 5 |
MD5: |
--Global variable of the library to access it: LibXPBonus
currentPlayerBuffs[abilityId] = { ["name"] = buffName, ["startTime"] = startTimeInMilliseconds, ["endTime"] = endTimeTimeInMilliseconds, ["timeLeft"] = timeLeftInMilliseconds, ["startTimeFormatted"] = formattedStartTimeWithFormatFrom os.time, ["endTimeFormatted"] = formattedEndTimeWithFormatFrom os.time, ["timeLeftFormatted"] = formattedTimeLeftWithFormatFrom os.time , ["buffSlot"] = buffSlot, ["stackCount"] = stackCount, ["iconFile"] = iconFile, ["buffType"] = buffType, ["effectType"] = effectType, ["abilityType"] = abilityType, ["statusEffectType"] = statusEffectType, ["abilityId"] = abilityId, ["canClickOff"] = canClickOff, }
--** _Returns: _buffName_, _timeStarted_, _timeEnding_, _buffSlot_, _stackCount_, _iconFilename_, _buffType_, _effectType_, _abilityType_, _statusEffectType_, _abilityId_, _canClickOff_ = GetUnitBuffInfo("player", buffIndex)
GetNumBuffs("player")
--Returns true if the player got an XP bonus currently ative --> Returns: boolean isXPBonusActive --> NILABLE number abilityIdFound (the abilityId of the XPBuff found) function LibXPBonus.IsAnyXPBonusActive() --Returns true if the player got the XP bonus currently ative, provided with parameter abilityId --abilityId: AbilityId of an ability e.g. the XP buff --> Returns: boolean isXPBonusActive function LibXPBonus.IsXPBonusActive(abilityId) --Returns a table containing the current player buffs, with the info determined via API function GetUnitBuffInfo() --> NILABLE Boolean formattedTime: Should the output table contain the entries for the formatted time? --> NILABLE String timeFormat: Will only be used if parameter formattedTime == true. If timeFormat is left empty "", the standard format will be used. ---> Else the function os.time will be used to use the given format string. Check the possible values for os.time in the lua docs please! --> Returns: table currentPlayerBuffsInfo --[[ currentPlayerBuffsInfo[abilityId] = { ["name"] = buffName, ["startTime"] = startTime, ["endTime"] = endTime, ["startTimeFormatted"] = startTimeFormattedWithParameter timeFormat (via os.time function) ["endTimeFormatted"] = endTimeFormattedWithParameter timeFormat (via os.time function) ["timeLeftFormatted"] = timeLeftFormattedWithParameter timeFormat (via os.time function) ["buffSlot"] = buffSlot, ["stackCount"] = stackCount, ["iconFile"] = iconFile, ["buffType"] = buffType, ["effectType"] = effectType, ["abilityType"] = abilityType, ["statusEffectType"] = statusEffectType, ["abilityId"] = abilityId, ["canClickOff"] = canClickOff, } ]] function LibXPBonus.GetCurrentPlayerBuffs(formattedTime, timeFormat) --Returns a table of the active XP bonus buffs, with the info determined via API function GetUnitBuffInfo() --> NILABLE Boolean formattedTime: Should the output table contain the entries for the formatted time? --> NILABLE String timeFormat: Will only be used if parameter formattedTime == true. If timeFormat is left empty "", the standard format will be used. ---> Else the function os.time will be used to use the given format string. Check the possible values for os.time in the lua docs please! --> Returns: table currentPlayerBuffsXPBonusInfo --[[ currentPlayerBuffsXPBonusInfo[abilityId] = { ["name"] = buffName, ["startTime"] = startTime, ["endTime"] = endTime, ["startTimeFormatted"] = startTimeFormattedWithParameter timeFormat (via os.time function) ["endTimeFormatted"] = endTimeFormattedWithParameter timeFormat (via os.time function) ["timeLeftFormatted"] = timeLeftFormattedWithParameter timeFormat (via os.time function) ["buffSlot"] = buffSlot, ["stackCount"] = stackCount, ["iconFile"] = iconFile, ["buffType"] = buffType, ["effectType"] = effectType, ["abilityType"] = abilityType, ["statusEffectType"] = statusEffectType, ["abilityId"] = abilityId, ["canClickOff"] = canClickOff, } ]] function LibXPBonus.GetCurrentPlayerXPBonusBuffs(formattedTime, timeFormat)
There have been no comments posted to this file.
Be the first to add one. |
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.