Updated ScriptMgr with new function to favorite transmog module

This commit is contained in:
Yehonal
2016-11-17 10:28:08 +01:00
committed by GitHub
parent 1ec1d16554
commit d53b5522f9
6 changed files with 64 additions and 7 deletions

View File

@@ -12682,7 +12682,7 @@ void Player::QuickEquipItem(uint16 pos, Item* pItem)
}
void Player::SetVisibleItemSlot(uint8 slot, Item* pItem)
{
{
if (pItem)
{
SetUInt32Value(PLAYER_VISIBLE_ITEM_1_ENTRYID + (slot * 2), pItem->GetEntry());
@@ -12694,6 +12694,8 @@ void Player::SetVisibleItemSlot(uint8 slot, Item* pItem)
SetUInt32Value(PLAYER_VISIBLE_ITEM_1_ENTRYID + (slot * 2), 0);
SetUInt32Value(PLAYER_VISIBLE_ITEM_1_ENCHANTMENT + (slot * 2), 0);
}
sScriptMgr->OnAfterPlayerSetVisibleItemSlot(this, slot, pItem);
}
void Player::VisualizeItem(uint8 slot, Item* pItem)