proof_of_poachers.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/Oakmyst/proof_of_poachers.lua
  3. Script Purpose : Handles the quest, "Proof of Poachers"
  4. Script Author : Scatman
  5. Script Date : 2009.10.09
  6. Zone : Oakmyst Forest
  7. Quest Giver: Steward Tredo
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Slay two oakmyst poachers", 2, 100, "Slay oakmyst poachers. They can be found at night lurking the Oakmyst Forest.", 2468, 1950006,8300064)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledPoachers")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(NPC, Spawn)
  18. Dialog.New(NPC, Spawn)
  19. Dialog.AddDialog("A new defender of Oakmyst? Grand! Tracker Galera seeks proof of the poachers' existence. They say they lurk the shadows at night. Bring her proof, and I'm sure she'll be grateful.")
  20. PlayFlavor(NPC,"","","smile",0,0,Spawn)
  21. Dialog.AddVoiceover("voiceover/english/optional1/steward_tredo/qey_adv01_oakmyst/stewardtredo001.mp3", 3490306942, 2253910242)
  22. Dialog.AddOption("I'll keep my eyes out at night.")
  23. Dialog.Start()
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. end
  27. function Step1_Complete_KilledPoachers(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I have collected a poached deer pelt.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I slew two oakmyst poachers and retrieved poached pelts as proof of their invasion of the woods.")
  30. AddQuestStepChat(Quest, 2, "Speak to Tracker Galera.", 1, "Speak to Tracker Galera, a wood elf that walks the trails of Oakmyst Forest.", 0, 1950011,8300032)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I have spoken to Tracker Galera.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I spoke with Tracker Galera and gave her poached pelts as proof of the poaching activity going on in the forest.")
  36. UpdateQuestDescription(Quest, "I hunted down the oakmyst poachers and retrieved poached pelts of the Oakmyst creatures. I gave the pelts to Tracker Galera as proof of the poacher's activity within the woods.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1_Complete_KilledPoachers(Quest, QuestGiver, Player)
  42. end
  43. end