Code:
local Call = nil
function OnQuestAccept(event, plr, questId, pUnit)
if (questId == 94000) then
plr:SetMount(1) -- Mount(displayID) - ArcEmu does not support vehicles by default
pUnit:SpawnCreature(94003, x, y, z, o, faction, 0) -- Fill this in
pUnit:SpawnCreature(94010, x, y, z, o, faction, 0) -- Fill this in
pUnit:SpawnCreature(94011, x, y, z, o, faction, 0) -- Fill this in
pUnit:SpawnCreature(94006, x, y, z, o, faction, 0) -- Fill this in
pUnit:PlaySoundToSet(soundID) -- Fill this in
RegisterTimedEvent("Check_If_Player_On_Quest", 120000, 0, plr) -- 120000 = 120 seconds = 2mins, change to duration of song
Call:SendChatMessage(12,0,"Alliance scouted, prepare for battle!")
RegisterTimedEvent("Let_The_Main_Guy_Talk_quest", 4000, 1, pUnit)
elseif (questId == 94001) then
pUnit:SpawnCreature(94012, x, y, z, o, faction, 0) -- Fill this in
end
end
function zzz_OnQuestFinished(event, plr, QuestId, pQuestGiver)
if (QuestId == 94000) then
plr:Dismount() -- Reset
end
end
RegisterServerHook(14, "zzz_OnQuestAccept")
RegisterServerHook(22, "zzz_OnQuestFinished")
function OnSpawn_Define_ToCall(pUnit, Event)
Call = pUnit
end
RegisterUnitEvent(94004, 18, "OnSpawn_Define_ToCall")
function Check_If_Player_On_Quest(plr)
if plr ~= nil then
if plr:HasQuest(94000) then
plr:PlaySoundToSet(soundID) -- Play Sound
else
RemoveTimedEvents()
end
else
RemoveTimedEvents()
end
end
function Let_The_Main_Guy_Talk_quest(pUnit)
pUnit:SendChatMessage(12,0,"Go recruit, help us fight off the Alliance from Durotar.")
end
--[[
Mounting of a Horde Demolisher upon accepting quest id 94000.
Spawn one npc in multipule places (Battle feeling) Npc Ids: 94003, 94010,94011, 94006
Dismount Player from Demolisher after quest 94000 is complete. Keep army spawned
After quest id 94001 is accepted, Alliance Catapults appear, npc id: 94012
Army respawns over and over. -- NOT DONE
Upon accepting quest id: 94000, a song starts playing: Put a sign in the song numbers place and put a note what I need to replace.
Song repeats playing untill forced to stop at the end of completeing quest id: 94001
At beginning of quest accept 94000, npc 94004 says: Scouting of Alliance Forces, prepare for battle!
After npc 94004 says his line, npc 94000 says: Go recruit, help us fight off the Alliance from Durotar.
Npc 94003, 94010,94011, 94006 are suppose to disappear after quest complete 94001.
]]
I highly recommend the use of phasing! Without it this quest would be messy and buggy, however with it, it would be fluent and look good.