9
3

RequestingFurtherOrders.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : RequestingFurtherOrders.lua
  3. Script Purpose : Handles the quest, "Requesting Further Orders"
  4. Script Author : jakejp
  5. Script Date : 10/4/2018
  6. Script Notes :
  7. Zone : The Ruins
  8. Quest Giver : Lieutenant Argosian
  9. Preceded by : Prophet and Loss
  10. Followed by : Stepping Up the Offensive
  11. --]]
  12. -- NPC ID'S --
  13. local CaptainArellius = 1270000
  14. function Init(Quest)
  15. AddQuestStepChat(Quest, 1, "Return to Captain Arellius", 1, "I have been ordered to return to Captain Arellius in the Ruins. I can reach the Ruins by using any of the bells in and around the City of Freeport.", 11, CaptainArellius)
  16. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  17. end
  18. function QuestComplete(Quest, QuestGiver, Player)
  19. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  20. UpdateQuestStepDescription(Quest, 1, "I have spoken to Captain Arellius.")
  21. UpdateQuestTaskGroupDescription(Quest, 1, "I returned to the captain for further orders.")
  22. UpdateQuestDescription(Quest, "I followed the orders of Lieutenant Argosian, who told me to report back to Captain Arellius at the docks in the Ruins. I will now see if I can be of further assistance in the defense of Freeport.")
  23. GiveQuestReward(Quest, Player)
  24. end
  25. function Reload(Quest, QuestGiver, Player, Step)
  26. if Step == 1 then
  27. QuestComplete(Quest, QuestGiver, Player)
  28. end
  29. end
  30. function Accepted(Quest, QuestGiver, Player)
  31. FaceTarget(QuestGiver, Player)
  32. conversation = CreateConversation()
  33. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/lieutenant_argosian/fprt_adv04_ruins/revamp/lieutenant_argosian027b.mp3", "", "", 3190269915, 3618413640, Player)
  34. AddConversationOption(conversation, "I will.")
  35. StartConversation(conversation, QuestGiver, Player, "Travel safely, citizen of Freeport.")
  36. end
  37. function Declined(Quest, QuestGiver, Player)
  38. -- Add dialog here for when the quest is declined
  39. end