WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   How to tell if player is unable to move (https://www.wowinterface.com/forums/showthread.php?t=56981)

doofus 01-15-19 12:08 PM

How to tell if player is unable to move
 
I would like to know whether "player" is rooted and I could look for the appropriate debuff but there are so many of them that ave same effect. Is there an API function that could tell me?

wardz 01-15-19 02:16 PM

If it's only for yourself, you can probably use C_LossOfControl.GetEventInfo

See here for reference.

jlam 01-15-19 02:36 PM

You can look in FrameXML/LossOfControlFrame.lua for examples of how the C_LossOfControl system is meant to be used. However, not every debuff that causes a Loss Of Control event is caught by the C_LossOfControl system, so you'll still need either some database to catch those debuffs or else scan tooltips for "[Rr]ooted".

doofus 01-16-19 03:25 AM

I think it is academic now, the reason I was interested is because my DH could not move due to a spider's "Vile Webbing" I think the debuff was...

Is there a way to acquire a loss of control debuff for testing purposes? Play with a Rogue and ask them to stun you or with a druid and ask them to root you perhaps?

liquidbase 01-16-19 08:43 AM

Quote:

Originally Posted by doofus (Post 331398)
I think it is academic now, the reason I was interested is because my DH could not move due to a spider's "Vile Webbing" I think the debuff was...

Is there a way to acquire a loss of control debuff for testing purposes? Play with a Rogue and ask them to stun you or with a druid and ask them to root you perhaps?

Test this with a mob that has the ability. Just be careful not to kill them.
Testing it with another player only makes sense if you query several roots / stuns.


All times are GMT -6. The time now is 03:33 AM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI