mirror of
https://github.com/araxiaonline/RandomScriptsforAzerothCore.git
synced 2026-06-13 10:22:22 -04:00
20 lines
620 B
Lua
20 lines
620 B
Lua
-- Quest ID for the quest that should trigger the sound
|
|
local QUEST_ID = 30004
|
|
|
|
-- Creature ID for the creature that gives the quest
|
|
local CREATURE_ID = 12480
|
|
|
|
-- Sound ID for the sound that should play when the quest is rewarded
|
|
local SOUND_ID = 20427
|
|
|
|
-- Emote ID for the emote that should play when the quest is rewarded
|
|
local EMOTE_ID = 113
|
|
|
|
-- Register the event for quest reward
|
|
RegisterCreatureEvent(CREATURE_ID, 34, function(event, player, creature, quest)
|
|
if quest:GetId() == QUEST_ID then
|
|
creature:PlayDistanceSound(SOUND_ID)
|
|
creature:PerformEmote(EMOTE_ID)
|
|
end
|
|
end)
|