mirror of
https://github.com/araxiaonline/RandomScriptsforAzerothCore.git
synced 2026-06-13 02:22:19 -04:00
Add files via upload
This commit is contained in:
19
SWTrapQuestR.lua
Normal file
19
SWTrapQuestR.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
-- 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)
|
||||
Reference in New Issue
Block a user