the_ends_justify_the_means.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/TimorousDeep/the_ends_justify_the_means.lua
  3. Script Purpose : Handles the quest, "The Ends Justify the Means"
  4. Script Author : Scatman
  5. Script Date : 2009.02.07
  6. Zone : Timorous Deep
  7. Quest Giver: Civ-Parser Di'Xin
  8. Preceded by: Chrykori Relics (chrykori_relics.lua)
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. -- Layered Scale Mantle
  13. -- Lightfoot Gloves
  14. -- Timeworn Helm
  15. -- Timeworn Hoop
  16. -- Timeworn Stud
  17. AddQuestStepKill(Quest, 1, "I need to collect some scavenged relics from the Haoaeran scavengers in the Timeworn Pools to the west.", 4, 100, ".", 368, 2630086)
  18. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotRelics")
  19. end
  20. function Accepted(Quest, QuestGiver, Player)
  21. FaceTarget(QuestGiver, Player)
  22. conversation = CreateConversation()
  23. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/civ-parser_di_xin/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dixin/dixin008.mp3", "", "", 76732508, 856374115, Player)
  24. AddConversationOption(conversation, "I will return.")
  25. StartConversation(conversation, QuestGiver, Player, "That would be wonderful. It is a shame that any sentient can be so careless when it comes to something as important as history.")
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function step1_complete_gotRelics(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I have collected the scavenged relics.")
  31. AddQuestStepChat(Quest, 2, "I need to bring these relics back to Civ-Parser Di'Xin.", 1, ".", 368, 2630045)
  32. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  33. end
  34. function quest_complete(Quest, QuestGiver, Player)
  35. UpdateQuestDescription(Quest, "I brought relics obtained from the Haoaeran scavengers back to Civ-Parser Di'Xin.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. step1_complete_gotRelics(Quest, QuestGiver, Player)
  41. end
  42. end