9
3

targeting_corruption.lua 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/Castleview/targeting_corruption.lua
  3. Script Purpose : Handles the quest, "Targeting Corruption"
  4. Script Author : Scatman
  5. Script Date : 2009.10.02
  6. Zone : Castleview Hamlet
  7. Quest Giver: Vindain Greenfaith
  8. Preceded by: Sowing Beauty (sowing_beauty.lua)
  9. Followed by: The Commune (the_commune.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to speak with Shae'Ahla northeast of the entrance to Qeynos Harbor.", 1, "I need to speak with Shae'Ahla and learn how to cleanse the corrupted Green Wisp plant.", 0, 2360035)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_talkedToShae")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/vindain_greenfaith/qey_village04/quests/vindain/vindain024.mp3", "", "", 4092684103, 86187879, Player)
  19. AddConversationOption(conversation, "I will do this.")
  20. StartConversation(conversation, QuestGiver, Player, "I thought you would say yes. Find her, cleanse the plant, and then return to me.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function step1_complete_talkedToShae(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have spoken with Shae'Ahla.")
  26. AddQuestStep(Quest, 2, "I need to attempt to cleanse the corrupted Green Wisp northwest of the scribe's shop.", 1, 100, "I need to speak with Shae'Ahla and learn how to cleanse the corrupted Green Wisp plant.", 0)
  27. AddQuestStepCompleteAction(Quest, 2, "step2_complete_cleansedWisp")
  28. end
  29. function step2_complete_cleansedWisp(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I have cleansed the corrupted Green Wisp northwest of the scribe's shop. A sprite attacked me after I did so.")
  31. AddQuestStepChat(Quest, 3, "I need to return to Vindain Greenfaith near The Fountain of Valor.", 1, "I need to speak with Shae'Ahla and learn how to cleanse the corrupted Green Wisp plant.", 0, 2360007)
  32. AddQuestStepCompleteAction(Quest, 3, "quest_complete")
  33. end
  34. function quest_complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 3, "I have spoken with Vindain Greenfaith.")
  36. UpdateQuestTaskGroupDescription(Quest, 1, "I have healed the Green Wisp.")
  37. UpdateQuestDescription(Quest, "I have cured the Green Wisp, but was attacked by a sprite when I did so.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. step1_complete_talkedToShae(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. step2_complete_cleansedWisp(Quest, QuestGiver, Player)
  45. end
  46. end