9
3

FileaFinalReport.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : FileaFinalReport.lua
  3. Script Purpose : Handles the quest, "File a Final Report"
  4. Script Author : jakejp
  5. Script Date : 12/29/2018
  6. Script Notes :
  7. Zone : The Ruins
  8. Quest Giver : Lieutenant Imperidus
  9. Preceded by : Identifying the Lonetusk Ally
  10. Followed by : A Journey Outside the City
  11. --]]
  12. local CaptainArellius = 1270000
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "Speak to Captain Arellius", 1, "I must report to Captain Arellius on the docks of the Ruins. I can reach the Ruins by using any of the bells in and around the City of Freeport.", 11, CaptainArellius)
  15. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  16. end
  17. function QuestComplete(Quest, QuestGiver, Player)
  18. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  19. UpdateQuestStepDescription(Quest, 1, "I have informed the captain that the Rujarkians are supplying the orcs in the Ruins with weapons and armor.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I have reported back to Captain Arellius.")
  21. UpdateQuestDescription(Quest, "I informed Captain Arellius that the Rujarkian orcs are supplying the Brokentusk and Lonetusk orcs in the Ruins with improved weapons and armor. The captain was very pleased with my work and rewarded me well. I will now read the note she gave me to lead me to my next adventure.")
  22. GiveQuestReward(Quest, Player)
  23. end
  24. function Reload(Quest, QuestGiver, Player, Step)
  25. if Step == 1 then
  26. QuestComplete(Quest, QuestGiver, Player)
  27. end
  28. end
  29. function Accepted(Quest, QuestGiver, Player)
  30. FaceTarget(QuestGiver, Player)
  31. conversation = CreateConversation()
  32. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/lieutenant_imperidus/fprt_adv04_ruins/revamp/lieutenant_imperidus022.mp3", "", "", 3956036992, 4003496180, Player)
  33. AddConversationOption(conversation, "Thank you, lieutenant. You have earned mine as well.", "dlg_37_3")
  34. StartConversation(conversation, QuestGiver, Player, "Report back to the captain. She will take word of this discovery back to our superiors in the Militia. This is extremely valuable information, my friend. You just might have given Freeport the edge it needs to ensure its safety. You have earned my respect.")
  35. end
  36. function Declined(Quest, QuestGiver, Player)
  37. -- Add dialog here for when the quest is declined
  38. end