trust_must_be_earned_part_1.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : Quests/NektulosForest/trust_must_be_earned_part_1.lua
  3. Script Purpose : Handles the quest, "Trust Must Be Earned, Part 1"
  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. AddQuestStep(Quest, 1, "I need to find the attack plans", 1, 100, "I must steal the attack plans from the tent of the Nerius Pirate Tactician in Nektulos Forest. I can find the tent in one of the Nerius camps on the beach.", 374)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. AddConversationOption(conversation, "Of course.")
  20. StartConversation(conversation, QuestGiver, Player, "Good. Be quick about it.")
  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 found the attack plans")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have retrieved the plans from the Tactician's tent.")
  31. AddQuestStepChat(Quest, 2, "I should take these plans to Bruhn K'Viir", 1, "I need to take these plans to Bruhn K'Viir in Nektulos Forest.", 11, 1790260)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 2, "I gave the plans to Bruhn")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I have taken the plans to Bruhn K'Viir.")
  38. UpdateQuestDescription(Quest, "I have retrieved the plans and taken them to Bruhn K'Viir.")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end