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:
30
LakeshireLoremaster1.lua
Normal file
30
LakeshireLoremaster1.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
-- Creature ID for the creature that gives the quests
|
||||
local CREATURE_ID = 400096
|
||||
|
||||
-- Quest and sound IDs for the quests that should trigger the sounds
|
||||
local QUEST_ACCEPT = {
|
||||
[30015] = 20439,
|
||||
[30016] = 20441
|
||||
}
|
||||
|
||||
local QUEST_COMPLETE = {
|
||||
[30014] = 20438,
|
||||
[30015] = 20440,
|
||||
[30016] = 20442
|
||||
}
|
||||
|
||||
-- Register the event for quest accept
|
||||
RegisterCreatureEvent(CREATURE_ID, 31, function(event, player, creature, quest)
|
||||
local soundID = QUEST_ACCEPT[quest:GetId()]
|
||||
if soundID then
|
||||
player:PlayDistanceSound(soundID)
|
||||
end
|
||||
end)
|
||||
|
||||
-- Register the event for quest reward
|
||||
RegisterCreatureEvent(CREATURE_ID, 34, function(event, player, creature, quest)
|
||||
local soundID = QUEST_COMPLETE[quest:GetId()]
|
||||
if soundID then
|
||||
creature:PlayDistanceSound(soundID)
|
||||
end
|
||||
end)
|
||||
Reference in New Issue
Block a user