SteppingUpTheOffensive.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SteppingUptheOffensive.lua
  3. Script Purpose : Handles the quest, "Stepping Up the Offensive"
  4. Script Author : jakejp
  5. Script Date : 10/4/2018
  6. Script Notes :
  7. Zone : The Ruins
  8. Quest Giver : Captain Arellius
  9. Preceded by : Requesting Further Orders
  10. Followed by : Knock the Fight Out of 'Em
  11. --]]
  12. -- NPC ID'S --
  13. local LieutenantImperidus = 1270031
  14. function Init(Quest)
  15. AddQuestStepChat(Quest, 1, "Speak to Lieutenant Imperidus", 1, "I have been ordered by the captain to report to Lieutenant Imperidus in the Ruins. I can reach the Ruins by using any of the bells in and around the City of Freeport.", 11, LieutenantImperidus)
  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 found Lieutenant Imperidus deep in the Ruins.")
  21. UpdateQuestTaskGroupDescription(Quest, 1, "I have reported to Lieutenant Imperidus.")
  22. UpdateQuestDescription(Quest, "I made my way through the Ruins and found the second Militia outpost, where I reported to Lieutenant Imperidus for duty.")
  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/captain_arellius/fprt_adv04_ruins/revamp/captain_arellius028.mp3", "", "", 11330989, 3299447227, Player)
  34. AddConversationOption(conversation, "I understand, Captain.")
  35. StartConversation(conversation, QuestGiver, Player, "Again, keep in mind that even travel to the second outpost will be dangerous. Travel with companions to ensure your safety. Do not report back to me until you have followed the lieutenant's orders.")
  36. end
  37. function Declined(Quest, QuestGiver, Player)
  38. -- Add dialog here for when the quest is declined
  39. end