substance_extract_for_yanari.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : Quests/CastleviewHamlet/substance_extract_for_yanari.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.28 11:01:09
  5. Script Purpose :
  6. Zone : CastleviewHamlet
  7. Quest Giver: Yanari
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must kill some crypt substances.", 6, 80, "I need to slay six crypt substances in the Down Below.", 329, 8340022)
  14. AddQuestStepCompleteAction(Quest, 1, "Turnin")
  15. UpdateQuestZone(Quest,"The Down Below")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("Go to the Down Below in the catacombs. In the Down Below, you must slay several gunks and fill my vials with their extract. Leave immediately! I need these ingredients to complete my research.")
  21. Dialog.AddVoiceover("voiceover/english/yanari_cyellann/qey_village04/yanaricyellan005.mp3",3750763447,1479813412)
  22. PlayFlavor(QuestGiver, "", "", "tapfoot", 0,0 , Player)
  23. Dialog.AddOption("I will be back with your substance extract.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  31. end
  32. function Turnin(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 1, "I have killed some crypt substances.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain six crypt substances and filled the vials.")
  36. UpdateQuestZone(Quest,"Castleview Hamlet")
  37. AddQuestStepChat(Quest, 2, "I need to return to Yanari.", 1,"I need give Yanari these vials of crypt substance claws in Castleview.", 174, 2360047)
  38. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  39. end
  40. function QuestComplete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 2, "I have returned to Yanari.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I have delievered the filled vials to Yanari Cyellann.")
  43. UpdateQuestDescription(Quest, "I have collected six vials of crypt substance extract and returned them to Yanari. She has paid me for my service.")
  44. GiveQuestReward(Quest, Player)
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Turnin(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end