sabertooth_battle_plans.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : Quests/Antonica/sabertooth_battle_plans.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.10 09:08:23
  5. Script Purpose :
  6. Zone : Antonica, Blackburrow
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to hunt down a captain of the gnolls that may hold the battle plans. ", 1, 100, "I need to find the Sabertooth battle plans deep in the heart of Blackburrow where canine tacticians mingle.", 75, 170046)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(NPC, Spawn)
  18. Dialog.New(NPC, Spawn)
  19. Dialog.AddDialog("As of late, the gnolls have become more organized. They are marching in formations and scouting the surrounding areas for places to attack.")
  20. Dialog.AddVoiceover("voiceover/english/sir_jeager/antonica/sirjeager002.mp3", 48860008, 510466598)
  21. Dialog.AddOption("What does this mean?", "Accept2")
  22. Dialog.Start()
  23. end
  24. function Accept2(Quest, QuestGiver, Player)
  25. FaceTarget(QuestGiver, Player)
  26. Dialog.New(QuestGiver, Player)
  27. Dialog.AddDialog("It means that they have a lead tactician. Return to the cave you found and bring me back their battle plans.")
  28. Dialog.AddVoiceover("voiceover/english/sir_jeager/antonica/sirjeager003.mp3", 3921562524, 1533728140)
  29. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  30. Dialog.AddOption("I will do this immediately.")
  31. Dialog.Start()
  32. end
  33. function Declined(Quest, QuestGiver, Player)
  34. -- Add dialog here for when the quest is declined
  35. end
  36. function Deleted(Quest, QuestGiver, Player)
  37. -- Remove any quest specific items here when the quest is deleted
  38. end
  39. function Step1Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 1, "I have found the Sabertooth battle plans.")
  41. UpdateQuestTaskGroupDescription(Quest, 1, "I have found the Sabertooth battle plans.")
  42. AddQuestStepChat(Quest, 2, "I need to return to Sir Jeager.", 1, "I need to return to Sir Jeager in Antonica.", 11, 120432)
  43. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  44. end
  45. function QuestComplete(Quest, QuestGiver, Player)
  46. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  47. UpdateQuestStepDescription(Quest, 2, "I have given Sir Jeager the Sabertooth battle plans.")
  48. UpdateQuestTaskGroupDescription(Quest, 2, "I have given Sir Jeager the Sabertooth battle plans.")
  49. UpdateQuestDescription(Quest, "I have found the Sabertooth battle plans.")
  50. GiveQuestReward(Quest, Player)
  51. end
  52. function Reload(Quest, QuestGiver, Player, Step)
  53. if Step == 1 then
  54. Step1Complete(Quest, QuestGiver, Player)
  55. elseif Step == 2 then
  56. QuestComplete(Quest, QuestGiver, Player)
  57. end
  58. end