stoneharry

Untitled

Jul 25th, 2013
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1.     QueryResult* result = CharacterDatabase.Query("SELECT COUNT(*) FROM `accounts` WHERE acct = '%u'", m_session->GetAccountId());
  2.  
  3.     if (!result)
  4.         return;
  5.  
  6.     Field* fields = result->Fetch();
  7.     uint32 count = fields[0].GetUInt32();
  8.  
  9.     if (count == 1)
  10.     {
  11.         AchievementMgr ach = m_session->GetPlayer()->GetAchievementMgr();
  12.         ach.GMCompleteAchievement(NULL, 60012);
  13.         ach.GMCompleteAchievement(NULL, 60016);
  14.     }
  15.  
  16.     delete result;
  17.     return true;
Advertisement
Add Comment
Please, Sign In to add comment