Reference

Function reference

Built In helpers

The helpers the in-game Functions tab lists as Built In. Public ones are called by name; the others are bound as a dependency (choose the completion, or add it under Dependencies) and called by their qualified name.

88 of 240 helpers. Clear filters

Platform.actions.call dependencyCalls a native API function in protected mode and returns its first result only when Rotation Master can read it.
Platform.actions.findSlot dependencyFinds the spell-book slot of a spell with FindSpellBookSlotBySpellID.
Platform.actions.GetSpellRangeState publicRead spell-specific range for a unit using the appropriate client API or spell-book slot.
Platform.actions.spellID dependencyValidates a spell ID argument.
Platform.announcement_recipient.GetAnnouncementRecipientGroupMembership publicResolve an exact cast-recipient name against the current bounded party or raid roster, then observe membership through a unit token.
Platform.casting.durationSeconds dependencyComputes the total length of a cast or channel in seconds from the millisecond start and end times in a UnitCastingInfo or UnitChannelInfo result.
Platform.casting.finite dependencyReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.casting.GetUnitCastObservation publicObserve a unit casting or channeling on probe- and restricted-policy clients.
Platform.casting.interruptibility dependencyConverts the native notInterruptible flag of a cast or channel into an interruptible Boolean (its inverse).
Platform.casting.remainingSeconds dependencyConverts the millisecond end time of a cast or channel into the seconds left, measured against a fresh GetTime() and clamped at zero.
Platform.casting.spellIdentity dependencyValidates the spell ID field of a cast or channel result.
Platform.creature_type.GetUnitCreatureTypeID publicObserve creature identity from native UnitCreatureType return two on probe- and restricted-policy clients.
Platform.form.GetPlayerFormObservation publicObserve the current player form with one protected zero-argument GetShapeshiftForm call.
Platform.glyphs.GetGlyphItemInfo publicClassify a numeric item as a glyph for the requested class, using guarded native item metadata.
Platform.glyphs.GetGlyphSocketSnapshot publicObserve glyph sockets on verified Wrath, Cata and Mists client layouts.
Platform.glyphs.integer dependencyReturns true when value is a finite whole number no smaller than minimum, and false for anything else (including NaN and infinity).
Platform.glyphs.layout dependencyMaps client information to the position in the GetGlyphSocketInfo result that holds the glyph spell ID.
Platform.glyphs.socket dependencyReads one glyph socket by calling fn(index) in protected mode and always returns a slot record with slot=index.
Platform.groups.GetGroupMembership publicRead public group membership on identified client families.
Platform.groups.GetUnitGroupMembership publicRead a specified unit membership in the player party or raid.
Platform.health_forecast.finite dependencyReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.health_forecast.GetHealthForecastIdentityObservation publicOn probe- and restricted-policy clients, observe exact UnitExists(unit), then UnitGUID(unit) only for a present unit.
Platform.health_forecast.GetHealthForecastProviderObservation publicRead optional RealMobHealth using its exact one-argument dot call.
Platform.health_forecast.GetHealthForecastTimeObservation publicObserve a fresh protected zero-argument GetTime for a needed health forecast.
Platform.health_forecast.GetHealthForecastValueObservation publicRead a lazy health scalar after a separate identity gate.
Platform.health_forecast.providerValue dependencyNormalizes one health figure returned by the RealMobHealth provider.
Platform.health_forecast.readField dependencyReads object[key] in protected mode.
Platform.instance.GetInstanceObservation publicObserve one protected zero-argument IsInInstance tuple.
Platform.items.finite dependencyReturns true when value is a finite, nonnegative number (not NaN or infinity), and false for anything else.
Platform.items.GetItemInfoInstant publicRead normalized native item classification metadata.
Platform.items.identifier dependencyValidates an item argument.
Platform.loss_of_control.GetLossOfControlCount publicRead the documented active loss-of-control count with a protected zero-argument dot call.
Platform.loss_of_control.GetLossOfControlEvent publicRead one documented active loss-of-control row by its native index and requested subject kind.
Platform.mobinfo2.finite dependencyChecks that a value is a readable finite number.
Platform.mobinfo2.GetMobInfo2Observation publicRead optional MobInfo2 historical observations on probe- and restricted-policy clients.
Platform.mobinfo2.hitCount dependencyReads the hit count for a spell school from a MobInfo2 resists table (the field named school.."Hits").
Platform.mobinfo2.presence dependencyChecks whether a unit exists with one protected UnitExists call.
Platform.mobinfo2.readField dependencyReads object[key] in protected mode for MobInfo2 data.
Platform.pet.GetPetObservation publicObserve exact pet existence and optionally its formatted GetUnitName display name.
Platform.player_flags.GetPlayerFlagObservation publicObserve one independent zero-argument player flag: stealthed uses IsStealthed, control uses HasFullControl, and outdoors uses IsOutdoors.
Platform.player_movement.GetPlayerMovementObservation publicObserve the player current movement speed on supported readable clients.
Platform.points.GetPlayerComboPointObservation publicObserve the explicitly selected TBC player combo transport.
Platform.points.GetUnitPointFragmentObservation publicObserve a point resource that the client reports in fragments (Mists of Pandaria Burning Embers).
Platform.points.GetUnitPointIdentityObservation publicObserve exact selected-unit existence and optionally its class filename for point-resource conditions.
Platform.points.GetUnitPointPowerObservation publicRead one explicitly selected point-resource quantity with an exact two-argument UnitPower or UnitPowerMax query.
Platform.range.GetNameplateMaxDistance publicRead the current positive nameplate visibility distance using the supported CVar API.
Platform.range.GetRangeCheckBounds publicRead the public LibRangeCheck interval for a unit.
Platform.role.GetInspectRoleObservation publicObserve a selected unit role on probe- and restricted-policy clients without issuing inspection requests.
Platform.role.GetTalentGroupRoleObservation publicObserve the first role result of the exact legacy GetTalentGroupRole(group) dot call on probe- and restricted-policy clients.
Platform.role.readField dependencyReads object[key] in protected mode, used to look up optional APIs.
Platform.role.roleValue dependencyValidates a role returned by a native API.
Platform.roster_class.GetRosterClassObservation publicRead public roster identity on identified client families.
Platform.roster_class.rosterUnit dependencyReturns true when unit is exactly player, party1 through party4, or raid1 through raid40 (no leading zeros), and false for any other string.
Platform.rotation_owner.GetPlayerOwnerClassObservation publicRead a fresh protected UnitClass player observation for rotation ownership.
Platform.runes.finite dependencyReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.runes.GetRuneCooldownObservation publicRead one protected GetRuneCooldown tuple for an exact native slot.
Platform.runes.GetRuneEvaluationTime publicRead a fresh protected zero-argument GetTime for rune cooldown arithmetic.
Platform.runes.GetRuneTypeObservation publicObserve one exact native rune slot using GetRuneType with its single index argument.
Platform.runes.numberField dependencyNormalizes one numeric field of a native result.
Platform.runes.validIndex dependencyValidates a rune slot index.
Platform.spells.cooldownFlags dependencyExtracts the never-secret isEnabled, isActive and isOnGCD flags from a C_Spell.GetSpellCooldown record whose times are secret.
Platform.spells.cooldownValues dependencyReads a spell cooldown as separate values for the readiness checks.
Platform.spells.copy dependencyCopies the expected fields of a native result table into a new table, checking each type.
Platform.spells.finiteNonNegative dependencyReturns true when value is a nonnegative number that is not NaN or infinity, and false for anything else.
Platform.spells.flagReadiness dependencyDecides cooldown readiness from the never-secret flags when the cooldown times are hidden.
Platform.spells.gcdRunning dependencyReports whether the global cooldown is running at time now.
Platform.spells.GetSpellCharges publicRead a normalized charge record: currentCharges, maxCharges, cooldownStartTime, cooldownDuration, chargeModRate and isActive.
Platform.spells.GetSpellCooldown publicRead and normalize a spell cooldown across supported clients.
Platform.spells.identifier dependencyValidates a spell argument.
Platform.spells.IsAutoRepeatActive publicRead the player auto-repeat state for a spell such as Shoot or Auto Shot.
Platform.spells.IsSpellReady publicCheck whether a spell can be recommended now, allowing a spell whose remaining cooldown ends with the current global cooldown.
Platform.spells.own dependencyReturns a record holding only the expected fields, each checked by type.
Platform.threat.GetUnitThreatObservation publicObserve ordered selected-unit existence, hostility from player, then the player threat status on that unit.
Platform.unit_attackability.GetUnitAttackabilityObservation publicObserve whether the player can attack a selected unit that is not dead, using the exact UnitExists, UnitCanAttack and UnitIsDead predicates.
Platform.unit_flags.GetUnitFlagObservation publicObserve one current unit flag: combat uses UnitAffectingCombat, enemy uses UnitIsEnemy with player as the first unit, and pvp uses UnitIsPVP.
Platform.unit_health.finite dependencyReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.unit_health.GetUnitHealthObservation publicObserve readable current health and optionally maximum health on supported clients.
Platform.unit_identity.GetUnitIdentityObservation publicCompare two exact unit tokens using UnitIsUnit after checking only the first token with UnitExists.
Platform.unit_level.finite dependencyReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.unit_level.GetUnitLevelObservation publicObserve a readable raw unit level on known clients.
Platform.unit_metadata.GetUnitMetadataObservation publicObserve one consumed native unit metadata field after checking UnitExists: class uses UnitClass return two, creature uses the localized UnitCreatureType name, and classification uses UnitClassification.
Platform.unit_power.finite dependencyReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.unit_power.GetUnitPowerObservation publicObserve explicit mana or the current raw power resource on supported readable clients.
Platform.unit_presence.GetUnitPresenceObservation publicObserve unit presence on identified client families.
Platform.unit_stat.finite dependencyReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.unit_stat.GetUnitStatObservation publicObserve the effective statistic from native return two only.
Platform.unit_states.GetUnitStateObservation publicObserve death or ghost state, or friendliness to the player, for the exact selected unit on probe- and restricted-policy clients.
Platform.zone_pvp.GetZonePVPObservation publicObserve the first zone PvP classification result with one protected zero-argument dot call.