getting_the_axe.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/Antonica/getting_the_axe.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.08 07:08:15
  5. Script Purpose :
  6. Zone : Antonica
  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 Sabertooth miners.", 10, 100, "I need to hunt Sabertooth miners inside of Blackburrow.", 1643, 170010)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. Dialog.AddDialog("Yes. You can help us. The Sabertooth clan is getting ore from somewhere in the hills and I need you to find out where. Bring me some mining picks to prove that you found the mine.")
  20. Dialog.AddVoiceover("voiceover/english/squire_kivan/antonica/squirekivan005.mp3", 1777480870, 844135854)
  21. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  22. Dialog.AddOption("Thank you, I will do my best.")
  23. Dialog.Start()
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is declined
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. -- Remove any quest specific items here when the quest is deleted
  30. end
  31. function Step1Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I have found ten Sabertooth mining picks.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I have found ten Sabertooth mining picks.")
  34. AddQuestStepChat(Quest, 2, "I need to return to Squire Kivan.", 1, "I need to return to Squire Kivan in Antonica.", 11, 120431)
  35. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 2, "I have given Squire Kivan the ten Sabertooth mining picks.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I have given Squire Kivan the ten Sabertooth mining picks.")
  41. UpdateQuestDescription(Quest, "I found the ten Sabertooth mining picks.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end