[7378]~[7381] achievement code update. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-05 09:22:43 -06:00
parent c1ea842cf7
commit ae55745f2a
10 changed files with 311 additions and 235 deletions

View File

@@ -1204,7 +1204,8 @@ void WorldSession::HandleAlterAppearance( WorldPacket & recv_data )
SendPacket(&data);
}
_player->SetMoney(_player->GetMoney() - Cost); // it isn't free
_player->ModifyMoney(-int32(Cost)); // it isn't free
_player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_AT_BARBER, Cost);
_player->SetByteValue(PLAYER_BYTES, 2, uint8(bs_hair->hair_id));
_player->SetByteValue(PLAYER_BYTES, 3, uint8(Color));