9
3

NewsForGermain.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : NewsforGermain.lua
  3. Script Purpose : Handles the quest, "News for Germain"
  4. Script Author : Shatou
  5. Script Date : 1/10/2020
  6. Script Notes :
  7. Zone : Forest Ruins
  8. Quest Giver : Acting Lieutenant Germain
  9. Preceded by : None
  10. Followed by : Favors
  11. --]]
  12. local LIEUTENAT_GERMAIN_ID = 1960005
  13. local DEL_VARUN_PACK_ID = 6375
  14. local COLLECT_LEAF_SAMPLE_SPELL_ID = 1323
  15. function Init(Quest)
  16. AddQuestStepHarvest(Quest, 1, "I need to check west of the ruins for any sign of Del Varun. He was supposed to be near the pond on the western end of the ruins.", 1, 100, "Lieutenant Germain has asked that I search for Del Varun, a scout assigned to the Forest Ruins.", 11, DEL_VARUN_PACK_ID)
  17. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  18. end
  19. function Step1Complete(Quest, QuestGiver, Player)
  20. UpdateQuestStepDescription(Quest, 1, "I have found Del Varun's pack.")
  21. GiveQuestItem(Quest, Player, "You found a pack near the water's edge.", 6375)
  22. AddQuestStep(Quest, 2, "I should see what I can find in Del Varun's pack.", 1, 100, "Lieutenant Germain has asked that I search for Del Varun, a scout assigned to the Forest Ruins.", 399)
  23. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  24. end
  25. function Step2Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 2, "I have read Del Varun's log.")
  27. AddQuestStepSpell(Quest, 3, "I should investigate the strange plants north of the pond that Del Varun spoke of.", 1, 100, "Lieutenant Germain has asked that I search for Del Varun, a scout assigned to the Forest Ruins.", 11, COLLECT_LEAF_SAMPLE_SPELL_ID)
  28. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  29. end
  30. function Step3Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 3, "I witnessed the strange plants that Del Varun spoke of. I collected a leaf sample from one of them.")
  32. AddQuestStepChat(Quest, 4, "I should take this plant sample back to Lieutenant Germain.", 1, "Lieutenant Germain has asked that I search for Del Varun, a scout assigned to the Forest Ruins.", 2098, LIEUTENAT_GERMAIN_ID)
  33. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  37. UpdateQuestStepDescription(Quest, 4, "I have given Germain the plant sample.")
  38. UpdateQuestTaskGroupDescription(Quest, 1, "I found Del Varun's satchel and log. The log led me to a strange phenomenon north of the pond on the western side of the ruins.")
  39. UpdateQuestDescription(Quest, "I found Del Varun's satchel. In it there was a log that detailed a strange area north of the pond near where Del Varun was. At this location there were some plants shrouded by a strange, colorful aura.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. Step2Complete(Quest, QuestGiver, Player)
  47. elseif Step == 3 then
  48. Step3Complete(Quest, QuestGiver, Player)
  49. elseif Step == 4 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end
  53. function Accepted(Quest, QuestGiver, Player)
  54. -- Add dialog here for when the quest is accepted
  55. end
  56. function Declined(Quest, QuestGiver, Player)
  57. -- Add dialog here for when the quest is declined
  58. end