ReportingForDuty.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : ReportingforDuty.lua
  3. Script Purpose : Handles the quest, "Reporting for Duty"
  4. Script Author : jakejp
  5. Script Date : 10/1/2018
  6. Script Notes :
  7. Zone : The Ruins
  8. Quest Giver : Captain Arellius
  9. Preceded by : None
  10. Followed by : Pawns in the Game
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Seek out Lieutenant Argosian", 1, "I have been ordered to speak to Lieutenant Argosian in the Ruins. I can reach the Ruins by using any of the bells in and around the City of Freeport.", 11, 1270019)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. end
  16. function QuestComplete(Quest, QuestGiver, Player)
  17. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  18. UpdateQuestStepDescription(Quest, 1, "I spoke to the lieutenant.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I have reported to Lieutenant Argosian.")
  20. UpdateQuestDescription(Quest, "I followed the orders of Captain Arellius, who had me report to Lieutenant Argosian at the first outpost in the Ruins. I will now be aiding him in his quest to battle the Brokentusk orcs.")
  21. GiveQuestReward(Quest, Player)
  22. end
  23. function Reload(Quest, QuestGiver, Player, Step)
  24. if Step == 1 then
  25. QuestComplete(Quest, QuestGiver, Player)
  26. end
  27. end
  28. function Accepted(Quest, QuestGiver, Player)
  29. FaceTarget(QuestGiver, Player)
  30. conversation = CreateConversation()
  31. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius017.mp3", "", "", 3161105606, 1921169647, Player)
  32. AddConversationOption(conversation, "Thank you for the advice.", "dlg_1_14")
  33. StartConversation(conversation, QuestGiver, Player, "Good. Oh, be sure to pay homage to the statue of our beloved Overlord. It would prove most beneficial for you to bask in the wisdom of his visage.")
  34. end
  35. function Declined(Quest, QuestGiver, Player)
  36. -- Add dialog here for when the quest is declined
  37. end