9
3

trust_must_be_earned_part_2.lua 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : Quests/NektulosForest/trust_must_be_earned_part_2.lua
  3. Script Purpose : Handles the quest, "Trust Must Be Earned, Part 2"
  4. Script Author : premierio015
  5. Script Date : 20.06.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Nektulos Forest
  8. Quest Giver : Bruhn K'Viir
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to kill the Nerius Commander", 1, 100, "I need to kill the Nerius Commander and Tactician in Nektulos Forest.", 11, 1790272)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. AddConversationOption(conversation, "Okay.")
  20. StartConversation(conversation, QuestGiver, Player, "Go quickly, before they begin to move.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have killed the Nerius Commander")
  30. AddQuestStepKill(Quest, 2, "I need to kill the Nerius Tactician", 1, 100, "I need to kill the Nerius Commander and Tactician in Nektulos Forest.", 11, 1790354)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I have killed the Nerius Tactician")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I have killed the Nerius Commander and Tactician.")
  36. AddQuestStepChat(Quest, 3, "I must speak with Bruhn K'Viir", 1, "I need to return to Bruhn to let him know I've killed the Nerius Tactician and Commander.", 11, 1790260)
  37. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  38. end
  39. function QuestComplete(Quest, QuestGiver, Player)
  40. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  41. UpdateQuestStepDescription(Quest, 3, "I have spoken with Bruhn")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken with Bruhn.")
  43. UpdateQuestDescription(Quest, "I have killed the Nerius Commander and Tactician for Bruhn K'Viir.")
  44. GiveQuestReward(Quest, Player)
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. Step2Complete(Quest, QuestGiver, Player)
  51. elseif Step == 3 then
  52. QuestComplete(Quest, QuestGiver, Player)
  53. end
  54. end