TrinityCore 雕文操作
雕文装配槽(slot)
0 大雕文
1 小雕文
2 小雕文
3 大雕文
4 小雕文
5 大雕文
符文也分为大雕文,小雕文,装配时需要注意。
大小雕文开启的等级也不一样,这里都假设目标等级已经满级,全部开启。
装配雕文
// 装配雕文
// i 为符文槽,651是符文id,雕文槽的类型需要与符文的类型对应
player->SetGlyph(i, 651);
取消雕文
第一步先移除,目前雕文的法术效果,接下来移除雕文。
移除雕文只需要把雕文ID设置为0即可。
// step 1
GlyphPropertiesEntry const *entry = sGlyphPropertiesStore.LookupEntry(player->GetGlyph(i));
player->RemoveAurasDueToSpell(entry->SpellId);
// step 2
player->SetGlyph(i, 0); // 实际取消操作