AnAcquisition.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : Quests/Commonlands/AnAcquisition.lua
  3. Script Purpose : Handles the quest, "An Acquisition"
  4. Script Author : premierio015
  5. Script Date : 17.04.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Ventar T'Kal
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to intercept the Ree runner and take his shipping receipt", 1, 100, "Ventar would like me to acquire the package the Ree orcs had shipped into the Commonlands.", 374, 330218)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. AddConversationOption(conversation, "All right.")
  20. StartConversation(conversation, QuestGiver, Player, "I know you will. Bring me the shipment as soon as you have it.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have acquired the shipping receipt.")
  30. AddQuestStepObtainItem(Quest, 2, "I need to travel to the Blackshield docks and exchange the shipping receipt for the package the runner was sent to get", 1, 100, "Ventar would like me to acquire the package the Ree orcs had shipped into the Commonlands.", 399, 2513)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I have acquired the package.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I have acquired the orcs' package.")
  36. AddQuestStepChat(Quest, 3, "I need to return to Ventar", 1, "Now that I have done as he asked, I should return to Ventar.", 11, 330214)
  37. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  38. end
  39. function QuestComplete(Quest, QuestGiver, Player)
  40. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  41. UpdateQuestStepDescription(Quest, 3, "I have spoken with Ventar.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken with Ventar.")
  43. UpdateQuestDescription(Quest, "I acquired the Ree package and brought it to Ventar. He was pleased.")
  44. GiveQuestReward(Quest, Player)
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. Step2Complete(Quest, QuestGiver, Player)
  51. elseif Step == 3 then
  52. QuestComplete(Quest, QuestGiver, Player)
  53. end
  54. end