sidsukana / QSpellWork

QSpellWork is an application for searching and viewing information about spells in World of Warcraft
MIT License
29 stars 22 forks source link

Github Releases

QSpellWork

QSpellWork is an application for searching and viewing information about spells in World of Warcraft. Spell information is read from client DBC files. QSpellWork works with:

This application is written in C++ using the Qt 5 GUI framework.

How to use scripted filter

QSpellwork binds the metaobject to the script engine as spell and you can write complex conditions in the JavaScript language. Also binds all enum constants. You can use inline or function conditions.

Examples

Inline condition:

spell.SpellFamilyName == SPELLFAMILY_MAGE && spell.SpellFamilyFlags & 0x1 && spell.hasAura(3)

Same as function condition:

function() {
    var hasAura = false;
    for (var i = 0; i < 3; i++) {
        if (spell.EffectApplyAuraName(i) == 3) {
            hasAura = true;
            break;
        }
    }
    return spell.SpellFamilyName == SPELLFAMILY_MAGE && spell.SpellFamilyFlags & 0x1 && hasAura;
}

You can also use the helper function hasAura(id):

function() {
    return spell.SpellFamilyName == SPELLFAMILY_MAGE && spell.SpellFamilyFlags & 0x1 && spell.hasAura(3);
}

Acknowledgements and Thanks