9
3

sabertooth_battle_plans.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. function Init(Quest)
  12. 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)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/sir_jeager/antonica/sirjeager002.mp3", "", "", 48860008, 510466598, Player)
  19. AddConversationOption(conversation, "What does this mean?", "dlg2")
  20. StartConversation(conversation, QuestGiver, Player, "As of late, the gnolls have become more organized. They are marching in formations and scouting the surrounding areas for places to attack.")
  21. end
  22. function dlg2(Quest, QuestGiver, Player)
  23. FaceTarget(QuestGiver, Player)
  24. local conversation = CreateConversation()
  25. PlayFlavor(QuestGiver, "voiceover/english/sir_jeager/antonica/sirjeager003.mp3", "", "", 3921562524, 1533728140, Player)
  26. AddConversationOption(conversation, "I will do this immediately.", "Option20")
  27. StartConversation(conversation, QuestGiver, Player, "It means that they have a lead tactician. Return to the cave you found and bring me back their battle plans.")
  28. end
  29. function Declined(Quest, QuestGiver, Player)
  30. -- Add dialog here for when the quest is declined
  31. end
  32. function Deleted(Quest, QuestGiver, Player)
  33. -- Remove any quest specific items here when the quest is deleted
  34. end
  35. function Step1Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 1, "I have found the Sabertooth battle plans.")
  37. UpdateQuestTaskGroupDescription(Quest, 1, "I have found the Sabertooth battle plans.")
  38. AddQuestStepChat(Quest, 2, "I need to return to Sir Jeager.", 1, "I need to return to Sir Jeager in Antonica.", 11, 120432)
  39. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  40. end
  41. function QuestComplete(Quest, QuestGiver, Player)
  42. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  43. UpdateQuestStepDescription(Quest, 2, "I have given Sir Jeager the Sabertooth battle plans.")
  44. UpdateQuestTaskGroupDescription(Quest, 2, "I have given Sir Jeager the Sabertooth battle plans.")
  45. UpdateQuestDescription(Quest, "I have found the Sabertooth battle plans.")
  46. GiveQuestReward(Quest, Player)
  47. end
  48. function Reload(Quest, QuestGiver, Player, Step)
  49. if Step == 1 then
  50. Step1Complete(Quest, QuestGiver, Player)
  51. elseif Step == 2 then
  52. QuestComplete(Quest, QuestGiver, Player)
  53. end
  54. end