private static function LoadAchievements() { if (self::IsLoaded()) { return true; } self::$achievements_storage = DB::Characters()->select("SELECT * FROM `character_achievement` WHERE `guid` = %d ORDER BY `date` DESC", self::$guid); if (!self::$achievements_storage) { WoW_Log::WriteError('%s : achievements for character %s (GUID: %d) were not found!', __METHOD__, WoW_Characters::GetName(), WoW_Characters::GetGUID()); return false; } self::$criterias_storage = DB::Characters()->select("SELECT * FROM `character_achievement_progress` WHERE `guid` = %d", self::$guid); if (!self::$criterias_storage) { WoW_Log::WriteError('%s : criterias for character %s (GUID: %d) were not found!', __METHOD__, WoW_Characters::GetName(), WoW_Characters::GetGUID()); } self::$isAchievementsLoaded = true; return true; }