9
3

lukurs_antiques.lua 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. --[[
  2. Script Name : LukursAntiques.lua
  3. Script Purpose : Handles the quest, "Lukur's Antiques"
  4. Script Author : Neatz09
  5. Script Date : 12/27/2018
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Sunken City
  8. Quest Giver : Lukur
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. local Lukur = 1240020
  13. local BloodMask
  14. local ShadowedMask
  15. local DawnMask
  16. require "SpawnScripts/Generic/DialogModule"
  17. function Init(Quest)
  18. AddQuestStepObtainItem(Quest, 1, "I need to find the Blood Mask.", 1, 100, "I need to find three ceremonial masks in the Sunken City. I can reach the Sunken City by using any of the bells in and around the City of Freeport.", 878, BloodMask)
  19. AddQuestStepObtainItem(Quest, 2, "I need to find the Shadowed Mask.", 1, 100, "I need to find three ceremonial masks in the Sunken City. I can reach the Sunken City by using any of the bells in and around the City of Freeport.", 879, ShadowedMask)
  20. AddQuestStepObtainItem(Quest, 3, "I need to find the Dawn Mask.", 1, 100, "I need to find three ceremonial masks in the Sunken City. I can reach the Sunken City by using any of the bells in and around the City of Freeport.", 880, DawnMask)
  21. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  22. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  23. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  24. --BoxCheck(Quest,Player)
  25. end
  26. function Accepted(Quest, QuestGiver, Player)
  27. FaceTarget(QuestGiver, Player)
  28. Dialog.New(QuestGiver, Player)
  29. Dialog.AddDialog("I need to add a few specific relics to my collection. Return when you fulfill my order.")
  30. Dialog.AddVoiceover("voiceover/english/optional1/lukur/fprt_adv01_sunken/lukur002.mp3", 2636400793, 1337735741)
  31. PlayFlavor(QuestGiver,"","","agree",0,0,Player)
  32. Dialog.AddOption("Thanks, I'll start searching the area.")
  33. Dialog.Start()
  34. end
  35. function Declined(Quest, QuestGiver, Player)
  36. -- Add dialog here for when the quest is declined
  37. end
  38. function Deleted(Quest, QuestGiver, Player)
  39. -- Remove any quest specific items here when the quest is deleted
  40. end
  41. function Step1Complete(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 1, "I found the Blood Mask.")
  43. QuestCheck(Quest, QuestGiver, Player)
  44. end
  45. function Step2Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 2, "I found the Shadowed Mask.")
  47. QuestCheck(Quest, QuestGiver, Player)
  48. end
  49. function Step3Complete(Quest, QuestGiver, Player)
  50. UpdateQuestStepDescription(Quest, 3, "I found the Dawn Mask.")
  51. QuestCheck(Quest, QuestGiver, Player)
  52. end
  53. function QuestCheck(Quest, QuestGiver, Player)
  54. if QuestStepIsComplete(Player,374,1) and QuestStepIsComplete(Player,374,2) and QuestStepIsComplete(Player,374,3) then
  55. UpdateQuestTaskGroupDescription(Quest, 1, "I found three ceremonial masks.")
  56. AddQuestStepChat(Quest, 4, "I need to return to Lukur.", 1, "I need to return to Lukur in the Sunken City. I can reach the Sunken City by using any of the bells in and around the City of Freeport.", 11, Lukur,8410015)
  57. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  58. end
  59. end
  60. function QuestComplete(Quest, QuestGiver, Player)
  61. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  62. UpdateQuestStepDescription(Quest, 4, "I returned to Lukur.")
  63. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Lukur.")
  64. UpdateQuestDescription(Quest, "I found the three ceremonial masks that Lukur needed.")
  65. GiveQuestReward(Quest, Player)
  66. end
  67. function Reload(Quest, QuestGiver, Player, Step)
  68. if Step == 1 then
  69. Step1Complete(Quest, QuestGiver, Player)
  70. elseif Step == 2 then
  71. Step2Complete(Quest, QuestGiver, Player)
  72. elseif Step == 3 then
  73. Step3Complete(Quest, QuestGiver, Player)
  74. elseif Step == 4 then
  75. QuestComplete(Quest, QuestGiver, Player)
  76. end
  77. end