Skip to content

Conversation

@noisiver
Copy link

  • Added AchievementMethods
  • Added GetId to AchievementMethods
  • Added OnAchiComplete to PlayerHooks

Tested with:

local PLAYER_ON_ACHIEVEMENT_COMPLETE = 45

local function OnAchiComplete(event, player, achievement)
    print(player:GetName()..' has completed achievement with id '..achievement:GetId())
end
RegisterPlayerEvent(PLAYER_ON_ACHIEVEMENT_COMPLETE, OnAchiComplete)

Note: I wanted to add GetName() to AchievementMethods but locale kept causing a segmentation fault so I'm holding off on that for now

@noisiver noisiver changed the title Feat: Achievements feat(Core): Achievements Jun 26, 2022
@55Honey
Copy link

55Honey commented Jul 5, 2022

Tested, works as intended.

@55Honey 55Honey merged commit efba901 into azerothcore:master Jul 5, 2022
mostlynick3 pushed a commit to mostlynick3/mod-eluna that referenced this pull request Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants