9
3

more_luxuries.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : Quests/Darklight/more_luxuries.lua
  3. Script Purpose : Handles the quest, "More Luxuries"
  4. Script Author : Scatman
  5. Script Date : 2009.02.02
  6. Zone : Darklight Wood
  7. Quest Giver: Ilmtar D'Viervs
  8. Preceded by: Luxuries for the Rich (luxuries_for_the_rich.lua)
  9. Followed by: The Mother Lode (the_mother_lode.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to collect the scales from eight scar wurms for Ilmtar D'Viervs.", 8, 100, "Ilmtar D'Viervs needs more snake scales, this time from the scar wurms in Innoruuk's Scar. He also wants pheromone sacs from the male scar wurms.", 172, 340104, 340101, 340102, 340103)
  13. AddQuestStepKill(Quest, 2, "I need to collect pheromone sacs from the scar wurms.", 4, 35, "Ilmtar D'Viervs needs more snake scales, this time from the scar wurms in Innoruuk's Scar. He also wants pheromone sacs from the male scar wurms.", 187, 340104, 340101, 340102, 340103)
  14. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotScales")
  15. AddQuestStepCompleteAction(Quest, 2, "step2_complete_gotSacs")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "voiceover/english/neriak/ilmtar_d_viervs/darklight_wood/tvatar_post/ilmtar/ilmtar024.mp3", "", "", 3218544480, 2129552018, Player)
  21. AddConversationOption(conversation, "I'll return.", "dlg_11_6")
  22. StartConversation(conversation, QuestGiver, Player, "Great. I'll be here working on a method of distributing the pheromone to use once you've collected the sacs.")
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. end
  26. function step1_complete_gotScales(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I have collected the scales.")
  28. if QuestIsComplete(Player, 95) then
  29. multiple_steps_complete(Quest, QuestGiver, Player)
  30. end
  31. end
  32. function step2_complete_gotSacs(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I have collected the pheromone.")
  34. if QuestIsComplete(Player, 95) then
  35. multiple_steps_complete(Quest, QuestGiver, Player)
  36. end
  37. end
  38. function multiple_steps_complete(Quest, QuestGiver, Player)
  39. UpdateQuestTaskGroupDescription(Quest, 1, "I need to give Ilmtar the scar wurm scales and pheromone sacs.")
  40. AddQuestStepChat(Quest, 3, "I need to bring these scales and sacs back to Ilmtar D'Viervs.", 1, "I need to bring these items back to Ilmtar D'Viervs", 172, 340123)
  41. AddQuestStepCompleteAction(Quest, 3, "quest_complete")
  42. end
  43. function quest_complete(Quest, QuestGiver, Player)
  44. UpdateQuestDescription(Quest, "I have given Ilmatar the scales and pheromone sacs from the scar wurms.")
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. step1_complete_gotScales(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. step2_complete_gotSacs(Quest, QuestGiver, Player)
  52. end
  53. end