Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In Player.cpp in Player::ApplyEnchantment
- Change this:
- // visualize enchantment at player and equipped items
- if (slot == PERM_ENCHANTMENT_SLOT)
- SetUInt16Value(PLAYER_VISIBLE_ITEM_1_ENCHANTMENT + (item->GetSlot() * 2), 0, apply ? item->GetEnchantmentId(slot) : 0);
- if (slot == TEMP_ENCHANTMENT_SLOT)
- SetUInt16Value(PLAYER_VISIBLE_ITEM_1_ENCHANTMENT + (item->GetSlot() * 2), 1, apply ? item->GetEnchantmentId(slot) : 0);
- to this:
- if (uint32 entry = sEnchantVisuals->GetEnchantVisual(item))
- {
- if (slot == PERM_ENCHANTMENT_SLOT)
- SetUInt16Value(PLAYER_VISIBLE_ITEM_1_ENCHANTMENT + (item->GetSlot() * 2), 0, apply ? entry : 0);
- if (slot == TEMP_ENCHANTMENT_SLOT)
- SetUInt16Value(PLAYER_VISIBLE_ITEM_1_ENCHANTMENT + (item->GetSlot() * 2), 1, apply ? entry : 0);
- }
- else
- {
- // visualize enchantment at player and equipped items
- if (slot == PERM_ENCHANTMENT_SLOT)
- SetUInt16Value(PLAYER_VISIBLE_ITEM_1_ENCHANTMENT + (item->GetSlot() * 2), 0, apply ? item->GetEnchantmentId(slot) : 0);
- if (slot == TEMP_ENCHANTMENT_SLOT)
- SetUInt16Value(PLAYER_VISIBLE_ITEM_1_ENCHANTMENT + (item->GetSlot() * 2), 1, apply ? item->GetEnchantmentId(slot) : 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement