9
3

poaching_the_poachers.lua 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : Quests/TimorousDeep/poaching_the_poachers.lua
  3. Script Purpose : Handles the quest, "Poaching the Poachers"
  4. Script Author : Scatman
  5. Script Date : 2009.02.06
  6. Zone : Timorous Deep
  7. Quest Giver: Tykor Gi'Lok
  8. Preceded by: None
  9. Followed by: Curious Ore (curious_ore.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to kill four Haoaeran poachers.", 4, 100, "Tykor Gi'Lok wants me to kill the Haoaeran poachers that are moving in.", 611, 2630020)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/tykor_gi_lok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/gilok/gilok001.mp3", "", "", 611409560, 797692345, Player)
  19. AddConversationOption(conversation, "As good as done.")
  20. StartConversation(conversation, QuestGiver, Player, "No hesitation, I like it. You will kill the poachers, and they will know Gi'Lok knows how to delegate.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have slain the Haoaeran poachers.")
  30. AddQuestStepChat(Quest, 2, "I need to return to Tykor Gi'Lok.", 1, "Tykor Gi'Lok wants me to kill the Haoaeran poachers that are moving in.", 11, 2630021)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  35. UpdateQuestStepDescription(Quest, 2, "I have spoken with Tykor Gi'Lok.")
  36. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain the Haoaeran poachers for Tykor Gi'Lok.")
  37. UpdateQuestDescription(Quest, "I have slain the Haoaeran poachers for Tykor Gi'Lok.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. Step1Complete(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end