Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QueryResult* result = CharacterDatabase.Query("SELECT COUNT(*) FROM `accounts` WHERE acct = '%u'", m_session->GetAccountId());
- if (!result)
- return;
- Field* fields = result->Fetch();
- uint32 count = fields[0].GetUInt32();
- if (count == 1)
- {
- AchievementMgr ach = m_session->GetPlayer()->GetAchievementMgr();
- ach.GMCompleteAchievement(NULL, 60012);
- ach.GMCompleteAchievement(NULL, 60016);
- }
- delete result;
- return true;
Advertisement
Add Comment
Please, Sign In to add comment