azerothcore/mod-eluna

Feature request: achievement checkall

Closed this issue · 3 comments

icaca commented

There is a ".achievement checkall" in the GM command.
Can this method be added to eluna to check the user's achievements?

You can use RunCommand

RunCommand("achievement checkall " .. playerName)

You can also use https://www.azerothcore.org/pages/eluna/Player/HasAchieved.html and iterate over the achievement IDs that you need. Or https://www.azerothcore.org/pages/eluna/Player/GetAchievementCriteriaProgress.html and do the same for specific criteria.

icaca commented

You can also use https://www.azerothcore.org/pages/eluna/Player/HasAchieved.html and iterate over the achievement IDs that you need. Or https://www.azerothcore.org/pages/eluna/Player/GetAchievementCriteriaProgress.html and do the same for specific criteria.

".achievement checkall" can be used to check the achievement status of all achievements. If the achievement has actually been completed, but it is not displayed normally, this method will allow the player to get the achievement.
RunCommand has been tested and it does work.