Back to index...

NameTypeDeprecatedSecureDescription
Command.Unit.MenufunctionCreates a standard context menu targeted at the unit of choice.
Event.Unit.AddSignals the addition of units to unit specifiers. Always preceded by Event.Unit.Change.Remove. Tr...
Event.Unit.Availability.FullSignals units entering Full availability.
Event.Unit.Availability.NoneSignals units leaving availability entirely.
Event.Unit.Availability.PartialSignals units entering Partial availability, possibly on the way to Full or None availability.
Event.Unit.CastbarSignals a unit's castbar changing.
Event.Unit.Detail.AbsorbSignals a unit's damage absorption changing.
Event.Unit.Detail.AfkSignals a unit's AFK flag changing. Will trigger only for partymembers.
Event.Unit.Detail.AggroSignals a unit's aggro flag changing. Will trigger only for groupmembers.
Event.Unit.Detail.BlockedSignals a unit's LOS-blocked flag changing. Will trigger only for groupmembers.
Event.Unit.Detail.ChargeSignals a unit's charge changing. Will trigger only for the player's unit ID.
Event.Unit.Detail.ChargeMaxSignals a unit's charge maximum changing. Will trigger only for the player's unit ID.
Event.Unit.Detail.CombatSignals a unit's combat status changing.
Event.Unit.Detail.ComboSignals a unit's combo points changing. Will trigger only for the player's unit ID.
Event.Unit.Detail.CoordSignals a change in the unit's location.
Event.Unit.Detail.EnergySignals a unit's energy changing.
Event.Unit.Detail.EnergyMaxSignals a unit's energy maximum changing.
Event.Unit.Detail.GuildSignals a unit's guild changing.
Event.Unit.Detail.HealthSignals a unit's health changing.
Event.Unit.Detail.HealthCapSignals a unit's health cap changing.
Event.Unit.Detail.HealthMaxSignals a unit's health maximum changing.
Event.Unit.Detail.LevelSignals a unit's level changing.
Event.Unit.Detail.LocationNameSignals a unit's location name changing.
Event.Unit.Detail.ManaSignals a unit's mana changing.
Event.Unit.Detail.ManaMaxSignals a unit's mana maximum changing.
Event.Unit.Detail.MarkSignals a unit's mark changing.
Event.Unit.Detail.MentoringSignals a unit's mentoring status changing.
Event.Unit.Detail.NameSignals a unit's name changing.
Event.Unit.Detail.OfflineSignals a unit's offline flag changing. Will trigger only for partymembers.
Event.Unit.Detail.PlanarSignals a unit's planar charges changing. Will trigger only for the player or groupmembers.
Event.Unit.Detail.PlanarMaxSignals a unit's maximum planar charges changing. Will trigger only for the player or groupmembers.
Event.Unit.Detail.PowerSignals a unit's power changing.
Event.Unit.Detail.PublicSizeSignals a unit's public group size or status changing.
Event.Unit.Detail.PvpSignals a unit's PvP flag changing.
Event.Unit.Detail.RadiusSignals a unit's radius changing.
Event.Unit.Detail.ReadySignals a unit's readycheck status changing.
Event.Unit.Detail.RoleSignals a unit's role changing. Will trigger only for the player or partymembers.
Event.Unit.Detail.TaggedSignals a unit's tagged status changing.
Event.Unit.Detail.TitlePrefixIdSignals a unit's title prefix ID changing.
Event.Unit.Detail.TitlePrefixNamedeprecatedSignals a unit's localized title prefix changing.
Event.Unit.Detail.TitleSuffixIdSignals a unit's title suffix ID changing.
Event.Unit.Detail.TitleSuffixNamedeprecatedSignals a unit's localized title suffix changing.
Event.Unit.Detail.VitalitySignals a unit's vitality changing. Will trigger only for the player or groupmembers.
Event.Unit.Detail.WarfrontSignals a unit's warfront flag changing. Will trigger only for partymembers.
Event.Unit.Detail.ZoneSignals a change in the unit's zone.
Event.Unit.RemoveSignals the removal of units from unit specifiers. Always followed by Event.Unit.Change.Add. Trig...
Inspect.Unit.CastbarfunctionProvides detailed information about a unit's castbar.
Inspect.Unit.DetailfunctionProvides detailed information about a unit.
Inspect.Unit.ListfunctionLists all the units that the client can see.
Inspect.Unit.LookupfunctionConverts unit IDs to unit specifiers and vice-versa.
Utility.Unit.AvailabilityfunctionReturns information on which detail members are available in which availability mode.

Command.Unit.Menu

Creates a standard context menu targeted at the unit of choice.

Usage:

Command.Unit.Menu(target)
ParameterTypeDatatypeDescription
targetparameterunitThe unit to generate a context menu for.

Event.Unit.Add

Signals the addition of units to unit specifiers. Always preceded by Event.Unit.Change.Remove. Triggers for unit IDs that have been removed from the specifier tree, but may not trigger for any children of those units. You may want to use LibUnitChange instead of this event.

Usage:

Event.Unit.Add(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the unit specifier, or "false" if the unit now has no specifier.

Event.Unit.Availability.Full

Signals units entering Full availability.

Usage:

Event.Unit.Availability.Full(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the unit specifier, or "false" if the unit now has no specifier.

Event.Unit.Availability.None

Signals units leaving availability entirely.

Usage:

Event.Unit.Availability.None(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the unit specifier, or "false" if the unit now has no specifier.

Event.Unit.Availability.Partial

Signals units entering Partial availability, possibly on the way to Full or None availability.

Usage:

Event.Unit.Availability.Partial(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the unit specifier, or "false" if the unit now has no specifier.

Event.Unit.Castbar

Signals a unit's castbar changing.

Usage:

Event.Unit.Castbar(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is a castbar visibility flag.

Event.Unit.Detail.Absorb

Signals a unit's damage absorption changing.

Usage:

Event.Unit.Detail.Absorb(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value.

Event.Unit.Detail.Afk

Signals a unit's AFK flag changing. Will trigger only for partymembers.

Usage:

Event.Unit.Detail.Afk(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value.

Event.Unit.Detail.Aggro

Signals a unit's aggro flag changing. Will trigger only for groupmembers.

Usage:

Event.Unit.Detail.Aggro(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.Blocked

Signals a unit's LOS-blocked flag changing. Will trigger only for groupmembers.

Usage:

Event.Unit.Detail.Blocked(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.Charge

Signals a unit's charge changing. Will trigger only for the player's unit ID.

Usage:

Event.Unit.Detail.Charge(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value.

Event.Unit.Detail.ChargeMax

Signals a unit's charge maximum changing. Will trigger only for the player's unit ID.

Usage:

Event.Unit.Detail.ChargeMax(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value.

Event.Unit.Detail.Combat

Signals a unit's combat status changing.

Usage:

Event.Unit.Detail.Combat(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value.

Event.Unit.Detail.Combo

Signals a unit's combo points changing. Will trigger only for the player's unit ID.

Usage:

Event.Unit.Detail.Combo(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value.

Event.Unit.Detail.Coord

Signals a change in the unit's location.

Usage:

Event.Unit.Detail.Coord(x, y, z)
ParameterTypeDatatypeDescription
xparametervariantThe new X coordinate of the changed elements. Takes the form of a table. The key is the element ID.
yparameter<nope>The new Y coordinate of the changed elements. Takes the form of a table. The key is the element ID.
zparameter<nope>The new Z coordinate of the changed elements. Takes the form of a table. The key is the element ID.

Event.Unit.Detail.Energy

Signals a unit's energy changing.

Usage:

Event.Unit.Detail.Energy(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.EnergyMax

Signals a unit's energy maximum changing.

Usage:

Event.Unit.Detail.EnergyMax(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.Guild

Signals a unit's guild changing.

Usage:

Event.Unit.Detail.Guild(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.Health

Signals a unit's health changing.

Usage:

Event.Unit.Detail.Health(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.HealthCap

Signals a unit's health cap changing.

Usage:

Event.Unit.Detail.HealthCap(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.HealthMax

Signals a unit's health maximum changing.

Usage:

Event.Unit.Detail.HealthMax(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.Level

Signals a unit's level changing.

Usage:

Event.Unit.Detail.Level(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.LocationName

Signals a unit's location name changing.

Usage:

Event.Unit.Detail.LocationName(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.Mana

Signals a unit's mana changing.

Usage:

Event.Unit.Detail.Mana(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.ManaMax

Signals a unit's mana maximum changing.

Usage:

Event.Unit.Detail.ManaMax(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.Mark

Signals a unit's mark changing.

Usage:

Event.Unit.Detail.Mark(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.Mentoring

Signals a unit's mentoring status changing.

Usage:

Event.Unit.Detail.Mentoring(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.Name

Signals a unit's name changing.

Usage:

Event.Unit.Detail.Name(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value.

Event.Unit.Detail.Offline

Signals a unit's offline flag changing. Will trigger only for partymembers.

Usage:

Event.Unit.Detail.Offline(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value.

Event.Unit.Detail.Planar

Signals a unit's planar charges changing. Will trigger only for the player or groupmembers.

Usage:

Event.Unit.Detail.Planar(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value.

Event.Unit.Detail.PlanarMax

Signals a unit's maximum planar charges changing. Will trigger only for the player or groupmembers.

Usage:

Event.Unit.Detail.PlanarMax(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value.

Event.Unit.Detail.Power

Signals a unit's power changing.

Usage:

Event.Unit.Detail.Power(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.PublicSize

Signals a unit's public group size or status changing.

Usage:

Event.Unit.Detail.PublicSize(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.Pvp

Signals a unit's PvP flag changing.

Usage:

Event.Unit.Detail.Pvp(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value.

Event.Unit.Detail.Radius

Signals a unit's radius changing.

Usage:

Event.Unit.Detail.Radius(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.Ready

Signals a unit's readycheck status changing.

Usage:

Event.Unit.Detail.Ready(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or the string "nil" in place of nil.

Event.Unit.Detail.Role

Signals a unit's role changing. Will trigger only for the player or partymembers.

Usage:

Event.Unit.Detail.Role(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.Tagged

Signals a unit's tagged status changing.

Usage:

Event.Unit.Detail.Tagged(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.TitlePrefixId

Signals a unit's title prefix ID changing.

Usage:

Event.Unit.Detail.TitlePrefixId(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.TitlePrefixName

Signals a unit's localized title prefix changing.

Usage:

Event.Unit.Detail.TitlePrefixName(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.
deprecated
standard

Event.Unit.Detail.TitleSuffixId

Signals a unit's title suffix ID changing.

Usage:

Event.Unit.Detail.TitleSuffixId(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Detail.TitleSuffixName

Signals a unit's localized title suffix changing.

Usage:

Event.Unit.Detail.TitleSuffixName(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.
deprecated
standard

Event.Unit.Detail.Vitality

Signals a unit's vitality changing. Will trigger only for the player or groupmembers.

Usage:

Event.Unit.Detail.Vitality(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value.

Event.Unit.Detail.Warfront

Signals a unit's warfront flag changing. Will trigger only for partymembers.

Usage:

Event.Unit.Detail.Warfront(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value.

Event.Unit.Detail.Zone

Signals a change in the unit's zone.

Usage:

Event.Unit.Detail.Zone(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the new value, or "false" in place of nil.

Event.Unit.Remove

Signals the removal of units from unit specifiers. Always followed by Event.Unit.Change.Add. Triggers for unit IDs that have been removed from the specifier tree, but may not trigger for any children of those units. You may want to use LibUnitChange instead of this event.

Usage:

Event.Unit.Remove(units)
ParameterTypeDatatypeDescription
unitsparametervariantTable of the units changed. Key is the unit ID, value is the unit specifier, or "false" if the unit now has no specifier.

Inspect.Unit.Castbar

Provides detailed information about a unit's castbar.

Usage:

detail = Inspect.Unit.Castbar(unit)
details = Inspect.Unit.Castbar(units)
ParameterTypeDatatypeDescription
unitparameterunitA unit, in either unit ID or unit specifier format.
unitsparametertableA table containing units to inspect.
detailresulttableDetail table for a single castbar.
detailsresulttableDetail tables for all requested castbars. The key is the unit ID or unit specifier, the value is the castbar's detail table.
members
ability ID of the ability being cast, if available.
abilityName Name of the ability being cast.
begin The time the cast started, in the context of Inspect.Time.Frame.
channeled True if this ability is channeled.
duration Duration of the cast in seconds.
expired Number of the seconds the cast is past its completion time. Generally indicates lag.
remaining Time remaining on the cast, in seconds.
uninterruptible Signals that the cast is not interruptible.

Inspect.Unit.Detail

Provides detailed information about a unit.

Usage:

detail = Inspect.Unit.Detail(unit)
details = Inspect.Unit.Detail(units)
ParameterTypeDatatypeDescription
unitparameterunitA unit, in either unit ID or unit specifier format.
unitsparametertableA table containing units to inspect.
detailresulttableDetail table for a single unit.
detailsresulttableDetail tables for all requested units. The key is the unit ID or unit specifier, the value is the unit's detail table.
members
absorb The unit's damage absorption.
afk Signals that the unit is AFK. Provided only for the player and the player's groupmembers.
aggro Signals that this unit is being attacked. Provided only for groupmembers.
alliance The unit's alliance. "defiant", "guardian", or nil.
availability The unit's current availability. See Utility.Unit.Availability() for details.
blocked Signals that this unit is not in line of sight. Provided only for groupmembers.
calling The unit's calling. May be "mage", "rogue", "cleric", "warrior", or "primalist".
charge The unit's charge. Provided only for the player.
chargeMax The unit's maximum charge. Provided only for the player.
combat The unit's combat status.
combo The unit's combo points. Provided only for the player.
coordX The unit's current X coordinate.
coordY The unit's current Y coordinate.
coordZ The unit's current Z coordinate.
energy The unit's energy.
energyMax The unit's maximum energy.
factionId The unit's faction ID.
focus The unit's focus.
guaranteedLoot Signals that this unit guarantees loot on death. Shown in the user interface as a diamond above the portrait.
guild The unit's guild.
health The unit's health.
healthCap The unit's capped maximum health.
healthMax The unit's maximum health.
id The ID of the requested element.
level The unit's level. May be "??" if the unit is hostile and very high-level.
locationName The name of the unit's location. Provided only for friendly players.
loot The Unit ID that has looting rights to this corpse.
mana The unit's mana.
manaMax The unit's maximum mana.
mark The mark on this unit.
mentoring The unit's mentoring status.
name The unit's name.
nameSecondary The unit's secondary name.
offline Signals that the unit is offline. Provided only for the player's groupmembers.
planar The unit's available planar charges. Provided only for the player or groupmembers.
planarMax The unit's maximum planar charges. Provided only for the player or groupmembers.
player Signals that the unit is a player, not an NPC.
power The unit's power.
publicSize The unit's current public group size. nil if the group is not public. Provided only for friendly players.
pvp The unit's PvP flag.
race The unit's race. Provided only for players.
raceName The unit's race, localized. Provided only for players.
radius The unit's radius.
ready The unit's readycheck status.
relation The unit's relation to you. May be "hostile" or "friendly". Neutral targets will not have this member.
role The unit's role. May be "tank", "heal", "dps", "support", or nil. Provided only for the player and the player's groupmembers.
spirit The unit's spirit.
tag The unit's tags, space-separated.
tagName The unit's tags, localized.
tagged The unit's tagged status. true if the unit has been tagged by you, "other" if the unit has been tagged by someone else.
tier The unit's difficulty tier. nil, "group", or "raid".
titlePrefixId The unit's title prefix ID.
titlePrefixName The unit's localized title prefix.
titleSuffixId The unit's title suffix ID.
titleSuffixName The unit's localized title suffix.
type The unit type ID.
vitality The unit's vitality. Provided only for the player or groupmembers.
warfront Signals that the unit has temporarily left the group to join a warfront. Provided only for groupmembers.
zone The ID of the unit's current zone.

Inspect.Unit.List

Lists all the units that the client can see.

Usage:

list = Inspect.Unit.List()
ParameterTypeDatatypeDescription
listresulttableMap of unit ID to unit specifier. Units with multiple valid specifiers will have one chosen at random.

Inspect.Unit.Lookup

Converts unit IDs to unit specifiers and vice-versa.

Usage:

unit = Inspect.Unit.Lookup(unit)
units = Inspect.Unit.Lookup(units)
ParameterTypeDatatypeDescription
unitparameterunitA unit ID or unit specifier, whichever is the opposite of the parameter given. May be nil.
unitsparametertableA table of unit IDs and unit specifiers. The key is the input, the value is the result. Invalid inputs will not result in output entries.
unitresultunitA unit ID or unit specifier, whichever is the opposite of the parameter given. May be nil.
unitsresulttableA table of unit IDs and unit specifiers. The key is the input, the value is the result. Invalid inputs will not result in output entries.

Utility.Unit.Availability

Returns information on which detail members are available in which availability mode.

Usage:

lookup = Utility.Unit.Availability()
ParameterTypeDatatypeDescription
lookupresulttableLookup table for which members are available in which availability mode. To check if "full" availability contains "level", check "lookup.full.level".

Back to index...