Thread Tools Display Modes
11-11-22, 02:44 PM   #1
Basil2
An Aku'mai Servant
Join Date: Feb 2015
Posts: 30
The list of crowd control spell IDs?

I need to detect that the debuff is crowd control debuff (and needs to be dispelled). How can I do this?

An obvious way is to have a full list of that spells in Lua format. May somebody already created it?

I watched LibPlayerSpells addon - it has similar functionality but looks a bit overkill for me. What about a single list?
__________________
Wow Switcher - super easy multiboxing software for leveling and more...
  Reply With Quote
11-22-22, 01:08 AM   #2
Basil2
An Aku'mai Servant
Join Date: Feb 2015
Posts: 30
I finally made this list, using LibPlayerSpells addon. My code was the following:

Code:
local LibPlayerSpells = LibStub('LibPlayerSpells-1.0')
    
local ControlSpells = {}
for spellId in LibPlayerSpells:IterateSpells("CROWD_CTRL", nil, "ROOT TAUNT") do
        table.insert(ControlSpells, spellId)
end
__________________
Wow Switcher - super easy multiboxing software for leveling and more...
  Reply With Quote
11-22-22, 02:27 PM   #3
Basil2
An Aku'mai Servant
Join Date: Feb 2015
Posts: 30
However, the list is very inaccurate.
__________________
Wow Switcher - super easy multiboxing software for leveling and more...
  Reply With Quote
11-22-22, 03:51 PM   #4
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 133
It doesn't seem to be updated since May. Perhaps you can fill in the gaps and add the missing spells or update it?

https://github.com/AdiAddons/LibPlayerSpells-1.0

It looks like the addon author said they don't have the bandwidth or time to constantly update it.

Other than that, there really isn't a way to determine crowd control spells without having a database list of them sadly. No filters for things like that.
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » The list of crowd control spell IDs?

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