mirror of
https://github.com/mangoszero/LuaScripts
synced 2026-08-22 02:29:02 -04:00
12 lines
277 B
Lua
12 lines
277 B
Lua
|
|
local NpcId =
|
||
|
|
local QuestId =
|
||
|
|
|
||
|
|
local SAY_01 = "Example OnQuestAccept Works"
|
||
|
|
|
||
|
|
local function OnQuestAccept(event, player, creature, quest)
|
||
|
|
if (quest:GetId() == QuestId) then
|
||
|
|
creature:SendUnitSay(SAY_01, 0)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
RegisterCreatureEvent(NpcId, 31, OnQuestAccept)
|