disrupting_haoaeran_studies.lua 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : Quests/TimorousDeep/disrupting_haoaeran_studies.lua
  3. Script Purpose : Handles the quest, "Disrupting Haoaeran Studies"
  4. Script Author : Scatman
  5. Script Date : 2009.02.06
  6. Zone : Timorous Deep
  7. Quest Giver: Primary Conzuk Zum'Ha
  8. Preceded by: Report to the Primary (report_to_the_primary.lua)
  9. Followed by: Disrupting Haoaeran Rituals (disrupting_haoaeran_rituals.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to kill the Haoaerans excavating the tunnel northwest across the sand.", 4, 100, "I need to travel to the cave to the west of Chrykori Village and kill the Haoaerans excavating the cave, and gather a sample of what they are digging up.", 611, 2630882, 2630881, 2630958)
  13. -- inscribed pottery
  14. AddQuestStepObtainItem(Quest, 2, "I need a sample of whatever the Haoaerans are digging up.", 1, 100, "I need to travel to the cave to the west of Chrykori Village and kill the Haoaerans excavating the cave and gather a sample of what they are digging up.", 1085, 8346)
  15. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedBirds")
  16. AddQuestStepCompleteAction(Quest, 2, "step2_complete_gotOre")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. FaceTarget(QuestGiver, Player)
  20. conversation = CreateConversation()
  21. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/primary_conzuk_zum_ha/_exp04/exp04_rgn_timorous_deep/chrykori_tie/zumha/zumha002.mp3", "", "", 4256377624, 3387696567, Player)
  22. AddConversationOption(conversation, "All right. I owe him no loyalty.")
  23. StartConversation(conversation, QuestGiver, Player, "Then you will return to me as soon as you have found something. Oh, and we should leave Tykor out of this from here on out. He has done his part, but just in case his supposed incompetence has nothing to do with his griffon riding skills... let's leave this to those better qualified.")
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. end
  27. function step1_complete_killedBirds(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I have slain the Haoaerans.")
  29. if QuestIsComplete(Player, 112) then
  30. multiple_steps_complete(Quest, QuestGiver, Player)
  31. end
  32. end
  33. function step2_complete_gotOre(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I found some inscribed pottery.")
  35. if QuestIsComplete(Player, 112) then
  36. multiple_steps_complete(Quest, QuestGiver, Player)
  37. end
  38. end
  39. function multiple_steps_complete(Quest, QuestGiver, Player)
  40. UpdateQuestTaskGroupDescription(Quest, 1, "I have killed the Haoaerans and obtained a sample of what they're digging up.")
  41. AddQuestStepChat(Quest, 3, "I must speak with Primary Conzuk Zum'Ha in Chrykori Village.", 1, "I must show Primary Conzuk Zum'Ha in Chrykori Village these ore samples.", 0, 2630460)
  42. AddQuestStepCompleteAction(Quest, 3, "quest_complete")
  43. end
  44. function quest_complete(Quest, QuestGiver, Player)
  45. -- remove 'inscribed pottery'
  46. UpdateQuestDescription(Quest, "I have brought the inscribed pottery back to Primary Conzuk Zum'Ha.")
  47. GiveQuestReward(Quest, Player)
  48. end
  49. function Reload(Quest, QuestGiver, Player, Step)
  50. if Step == 1 then
  51. step1_complete_killedBirds(Quest, QuestGiver, Player)
  52. elseif Step == 2 then
  53. step2_complete_gotOre(Quest, QuestGiver, Player)
  54. end
  55. end