lukurs_antiques.lua 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. function Init(Quest)
  17. 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)
  18. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  19. end
  20. function Accepted(Quest, QuestGiver, Player)
  21. FaceTarget(QuestGiver, Player)
  22. conversation = CreateConversation()
  23. PlayFlavor(QuestGiver, "voiceover/english/optional1/lukur/fprt_adv01_sunken/lukur002.mp3", "", "", 2636400793, 1337735741, Player)
  24. AddConversationOption(conversation, "Thanks, I'll start searching the area.")
  25. StartConversation(conversation, QuestGiver, Player, "I need to add a few specific relics to my collection. Return when you fulfill my order.")
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. -- Add dialog here for when the quest is declined
  29. end
  30. function Deleted(Quest, QuestGiver, Player)
  31. -- Remove any quest specific items here when the quest is deleted
  32. end
  33. function Step1Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 1, "I found the Blood Mask.")
  35. 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)
  36. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  37. end
  38. function Step2Complete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 2, "I found the Shadowed Mask.")
  40. 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)
  41. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  42. end
  43. function Step3Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 3, "I found the Dawn Mask.")
  45. UpdateQuestTaskGroupDescription(Quest, 1, "I found three ceremonial masks.")
  46. 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)
  47. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  48. end
  49. function QuestComplete(Quest, QuestGiver, Player)
  50. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  51. UpdateQuestStepDescription(Quest, 4, "I returned to Lukur.")
  52. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Lukur.")
  53. UpdateQuestDescription(Quest, "I found the three ceremonial masks that Lukur needed.")
  54. GiveQuestReward(Quest, Player)
  55. end
  56. function Reload(Quest, QuestGiver, Player, Step)
  57. if Step == 1 then
  58. Step1Complete(Quest, QuestGiver, Player)
  59. elseif Step == 2 then
  60. Step2Complete(Quest, QuestGiver, Player)
  61. elseif Step == 3 then
  62. Step3Complete(Quest, QuestGiver, Player)
  63. elseif Step == 4 then
  64. QuestComplete(Quest, QuestGiver, Player)
  65. end
  66. end