Thread Tools Display Modes
07-30-22, 01:30 PM   #1
Basil2
An Aku'mai Servant
Join Date: Feb 2015
Posts: 30
Question How to detect magic school lock?

When the character get kicked/etc, how to understand:

1. Is school locked?
2. Which school?
3. How long?
__________________
Wow Switcher - super easy multiboxing software for leveling and more...
  Reply With Quote
07-31-22, 08:56 AM   #2
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
local data = C_LossOfControl.GetActiveLossOfControlData()

if data.lockoutSchool and data.lockoutSchool ~= 0 then
print( GetSchoolString( data.lockoutSchool ), data.timeRemaining )
end
  Reply With Quote
07-31-22, 11:36 AM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,322
Here are some events to look at too.

LOSS_OF_CONTROL_ADDED
LOSS_OF_CONTROL_UPDATE
PLAYER_CONTROL_GAINED
PLAYER_CONTROL_LOST
https://wowpedia.fandom.com/wiki/Events#C_LossOfControl
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to detect magic school lock?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off