news_for_germain.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : Quests/ForestRuins/news_for_germain.lua
  3. Script Purpose : Handles the quest, "News for Germain"
  4. Script Author : Scatman
  5. Script Date : 2009.04.25
  6. Zone : The Forest Ruins
  7. Quest Giver: Acting Lieutenant Germain
  8. Preceded by: None
  9. Followed by: Favors (favors.lua)
  10. --]]
  11. function Init(Quest)
  12. -- machine parts
  13. AddQuestStepObtainItem(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.", 0, DEL_VARUNS_PACK)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_FoundPack")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "All right.")
  20. StartConversation(conversation, QuestGiver, Player, "Don't be foolish. Don't get yourself hurt, but if you notice anything that might lead us to him, please let me know.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_FoundPack(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have found Del Varun's pack.")
  26. AddQuestStepChat(Quest, 2, "I should see what I can find in Del Varun's pack (Dev note: Speak to Germain for now).", 1, "Lieutenant Germain has asked that I search for Del Varun, a scout assigned to the Forest Ruins.", 0, 1960011)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2_Complete_InspectedPack")
  28. end
  29. function Step2_Complete_InspectedPack(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I have read Del Varun's log.")
  31. AddQuestStepChat(Quest, 3, "I should investigate the strange plants north of the pond that Del Varun spoke of.", 1, "Lieutenant Germain has asked that I search for Del Varun, a scout assigned to the Forest Ruins.", 0, 1960011)
  32. AddQuestStepCompleteAction(Quest, 3, "Step3_Complete_InvestigatedPlants")
  33. end
  34. function Step3_Complete_InvestigatedPlants(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 3, "I witnessed the strange plants that Del Varun spoke of. I collected a leaf sample from one of them.")
  36. 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.", 2102, 1960011)
  37. AddQuestStepCompleteAction(Quest, 4, "Quest_Complete")
  38. end
  39. function Quest_Complete(Quest, QuestGiver, Player)
  40. --remove pack
  41. UpdateQuestDescription(Quest, "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.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player)
  45. if Step == 1 then
  46. Step1_Complete_GotMachineParts(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. Step2_Complete_InspectedPack(Quest, QuestGiver, Player)
  49. elseif Step == 3 then
  50. Step3_Complete_InvestigatedPlants(Quest, QuestGiver, Player)
  51. end
  52. end