9
3

little_lost_minotaur.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : Quests/TheCryptofBetrayal/little_lost_minotaur.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.30 11:10:06
  5. Script Purpose :
  6. Zone : TheCryptofBetrayal
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to kill ten crypt tempests inside the Crypt of Betrayal and then tell Torg Bramblehair.", 10, 100, "I need to kill ten crypt tempests inside the Crypt of Betrayal and then tell Torg Bramblehair.", 611, 2010007, 2010008)
  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/torg_bramblehair/qey_catacomb03/torg_bramblehair005.mp3", "", "", 2717154418, 3548014875, Player)
  19. AddConversationOption(conversation, "No problem. Ten crypt tempests it is.")
  20. AddConversationOption(conversation, "I'm sorry, I can't help you.")
  21. StartConversation(conversation, QuestGiver, Player, "I hand raised him, see? Kind of shy of folks and all. He'll come back to his Papa if he feels safe.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I have killed ten crypt tempests. Now I need to tell Torg Bramblehair.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I have killed ten crypt tempests. Now I need to tell Torg Bramblehair.")
  32. AddQuestStepChat(Quest, 2, "I need to tell Torg Bramblehair in the Crypt of Betrayal that I've killed ten crypt tempests.", 1, "I need to tell Torg Bramblehair in the Crypt of Betrayal that I've killed ten crypt tempests.", 11, 2010009)
  33. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  37. UpdateQuestStepDescription(Quest, 2, "I have told Torg Bramblehair in the Crypt of Betrayal that I've killed ten crypt tempests.")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "I have told Torg Bramblehair in the Crypt of Betrayal that I've killed ten crypt tempests.")
  39. UpdateQuestDescription(Quest, "I have killed ten crypt tempests and need to tell Torg Bramblehair in the Crypt of Betrayal. With any luck, his pet minotaur Spike should be home soon.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. QuestComplete(Quest, QuestGiver, Player)
  47. end
  48. end