NewsForGermain.lua 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. 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.", 11)
  22. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  23. end
  24. function Step2Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 2, "I have read Del Varun's log.")
  26. 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)
  27. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  28. end
  29. function Step3Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 3, "I witnessed the strange plants that Del Varun spoke of. I collected a leaf sample from one of them.")
  31. 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)
  32. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 4, "I have given Germain the plant sample.")
  37. 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.")
  38. 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.")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. Step2Complete(Quest, QuestGiver, Player)
  46. elseif Step == 3 then
  47. Step3Complete(Quest, QuestGiver, Player)
  48. elseif Step == 4 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end
  52. function Accepted(Quest, QuestGiver, Player)
  53. -- Add dialog here for when the quest is accepted
  54. end
  55. function Declined(Quest, QuestGiver, Player)
  56. -- Add dialog here for when the quest is declined
  57. end