We have begun migration of most wikis to our new host, Amazon Web Services. All but the top 100 wikis are in read-only mode until the migration is complete. Estimated completion: TBD -- Update: Fri 10/20 11pm UTC - We have encountered some unexpected issues. Our staff is working around the clock to complete this process as quickly as possible. Thank you for your patience.

API C_LossOfControl.GetEventInfo

From Wowpedia
Jump to: navigation, search

Returns information about a loss-of-control event.

locType, spellID, text, iconTexture, startTime, timeRemaining, duration, lockoutSchool, priority, displayType = C_LossOfControl.GetEventInfo(eventIndex)

Arguments

eventIndex 
Number - index of the loss-of-control effect currently affecting your character to return information about, ascending from 1.

Returns

locType 
String - Effect type, e.g. "SCHOOL_INTERRUPT"
spellID 
Number - Spell ID causing the effect, e.g. 33786 for Cyclone.
text 
String - Name of the effect, e.g. "Interrupted".
iconTexture 
String - Effect icon texture.
startTime 
Number - Time at which this effect began, as per GetTime()
timeRemaining 
Number - Number of seconds remaining.
duration 
Number - Duration of the effect, in seconds.
lockoutSchool 
Number - Locked out spell school identifier; can be used as index into the global SchoolStringTable to retrieve school name.
priority 
Number - ?
displayType 
Number - An integer specifying how this event should be displayed to the player, per the Interface-configured options:
  • 0: the effect should not be displayed.
  • 1: the effect should be displayed as a brief alert when it occurs.
  • 2: the effect should be displayed for its full duration.

Patch history

MoP Patch 5.1.0 (2012-11-27): Added.

See also