Skip to content

Conversation

@0xCiBeR
Copy link

@0xCiBeR 0xCiBeR commented Jun 5, 2023

Added OnBattlegroundDesertion hook.

Sample Lua code to test:

local function onDeserter(event, player, type)
    player:SendAreaTriggerMessage( "It works!" )
    print("it works")
end
RegisterPlayerEvent(57, onDeserter)

@0xCiBeR
Copy link
Author

0xCiBeR commented Jun 5, 2023

Hey @r-o-b-o-t-o just leaving a ping here so you can check the PR when you have the time.. Thanks!

@0xCiBeR 0xCiBeR force-pushed the feat/OnBgDesertion branch from 23f1436 to 80a9bed Compare June 6, 2023 16:22
@0xCiBeR
Copy link
Author

0xCiBeR commented Jun 9, 2023

Hey! Is there anything else required on my side to merge the PR? Seems tests passed fine :)

@55Honey
Copy link

55Honey commented Jun 9, 2023

Please be patient until it's reviewed. I can't think of anything missing from a quick glance.

@r-o-b-o-t-o
Copy link
Member

Thanks for the PR!

Sorry for taking this long, I needed to remove another player hook first. This also resulted in your event being changed from 59 to 57. I edited your sample Lua code in your first message.

@r-o-b-o-t-o r-o-b-o-t-o merged commit 1abf244 into azerothcore:master Jun 11, 2023
@0xCiBeR 0xCiBeR deleted the feat/OnBgDesertion branch July 20, 2023 21:24
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