I recently cooked up a small script to have timed taking. Once you accept the quest, the Instructor talks instantly. Then in a timed event of 3 secs later, a Watchguard yells out ( dont no number for yell) In another timed event the instructor gives you a bunch of guards all different levels to show variety in experience. Though for some reason it doesn't work. Also if anyone can add a despawn to the guards once quest is complete I'd appreciate it. I'm just beginning to script so it may have 2-100000 flaws in it.
[spoiler]local entry_id = 94000
function InstructorChat(event, pPlayer, questId, pQuestGiver)
if pPlayer:HasQuest(94004) then
Unit:SendChatMessage(12, 0, "Your services are well appreciated $c. Though our time together is......")
end
end
RegisterServerHook(14, "InstructorChat")
local entry_id = 94004
function WatchGuardYell(event, pPlayer, questId, pQuestGiver)
if pPlayer:HasQuest(94004) then
Unit:EventChat(12, 0, "Alliance forces scouted across the river! To arms!", 3000)
end
end
RegisterServerHook(14, "WatchGuardYell")
local entry_id = 94000
function InstructorWar(event, pPlayer, questId, pQuestGiver)
if pPlayer:HasQuest(94004) then
Unit:EventChat(12, 0, "I suppose I spoke too soon. Quick $c, take some of my men and fight off the Alliance Invaders from across the river!", 10000)
pPlayer:CreateGuardian(94003, 6000000000, 270, 43)
pPlayer:CreateGuardian(94003, 6000000000, 90, 37)
pPlayer:CreateGuardian(94003, 6000000000, 160, 54)
pPlayer:CreateGuardian(94003, 6000000000, 260, 36)
pPlayer:CreateGuardian(94003, 6000000000, 80, 12)
pPlayer:CreateGuardian(94003, 6000000000, 290, 28)
pPlayer:CreateGuardian(94003, 6000000000, 175, 65)
end
end
end
RegisterServerHook(14, "InstructorWar")
[/spoiler]