• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Glyph Template NPC

Tommy

Founder
Very nice, thanks for sharing. The glyph enumerator pretty much takes up the entire script. XD
 

Parranoia

Insane Member
I used this bit of code in my own script to give a player a glyph
Code:
    void ApplyGlyph(Player* player, uint8 slot, uint32 glyphID)
    {
        if (GlyphPropertiesEntry const* gp = sGlyphPropertiesStore.LookupEntry(glyphID))
        {
            if (uint32 oldGlyph = player->GetGlyph(slot))
                player->RemoveAurasDueToSpell(sGlyphPropertiesStore.LookupEntry(oldGlyph)->SpellId);
            player->CastSpell(player, gp->SpellId, true);
            player->SetGlyph(slot, glyphID);
            player->SendTalentsInfoData(false);
        }
    }
 
Top