Skip to content

Commit

Permalink
[11005] Finish structure of inspected item fields.
Browse files Browse the repository at this point in the history
Also restore items inspect show in case disabled talent inspection.
  • Loading branch information
VladimirMangos committed Jan 14, 2011
1 parent a9b936e commit f3e94ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/game/MiscHandler.cpp
Expand Up @@ -1090,18 +1090,16 @@ void WorldSession::HandleInspectOpcode(WorldPacket& recv_data)
data << plr->GetPackGUID();

if(sWorld.getConfig(CONFIG_BOOL_TALENTS_INSPECTING) || _player->isGameMaster())
{
plr->BuildPlayerTalentsInfoData(&data);
plr->BuildEnchantmentsInfoData(&data);
}
else
{
data << uint32(0); // unspentTalentPoints
data << uint8(0); // talentGroupCount
data << uint8(0); // talentGroupIndex
data << uint32(0); // slotUsedMask
}

plr->BuildEnchantmentsInfoData(&data);

SendPacket(&data);
}

Expand Down
6 changes: 3 additions & 3 deletions src/game/Player.cpp
Expand Up @@ -22078,9 +22078,9 @@ void Player::BuildEnchantmentsInfoData(WorldPacket *data)

data->put<uint16>(enchantmentMaskPos, enchantmentMask);

*data << uint16(0); // ?
*data << uint8(0); // PGUID!
*data << uint32(0); // seed?
*data << uint16(item->GetItemRandomPropertyId());
*data << item->GetGuidValue(ITEM_FIELD_CREATOR).WriteAsPacked();
*data << uint32(item->GetItemSuffixFactor());
}

data->put<uint32>(slotUsedMaskPos, slotUsedMask);
Expand Down

0 comments on commit f3e94ca

Please sign in to comment.