[7926] Implement loot roll achievement criteria types used in statistics Author: DonTomika

* ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED
    * ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED:

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-05-31 16:26:39 -05:00
1 parent 341101c171
commit 1a360a6a97
2 files changed
+14 -2

No files matched your search

+10
View File
@@ -409,6 +409,16 @@ void WorldSession::HandleLootRoll( WorldPacket &recv_data )
// everything's fine, do it
group->CountRollVote(GetPlayer()->GetGUID(), Guid, NumberOfPlayers, Choise);
switch (Choise)
{
case 1:
GetPlayer()->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED, 1);
break;
case 2:
GetPlayer()->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED, 1);
break;
}
}
void WorldSession::HandleMinimapPingOpcode(WorldPacket& recv_data)