Add files via upload

This commit is contained in:
Dinkledork
2023-03-16 03:44:34 -06:00
committed by GitHub
parent 27aa9b7e61
commit b0a3c479e8
7 changed files with 319 additions and 96 deletions

30
LakeshireLoremaster1.lua Normal file
View 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)