OrcsoftheRee.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : orcs_of_the_ree.lua
  3. Script Purpose : Handles the quest, "Orcs of the Ree"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 22.03.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Ventar T'Kal
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I need to place some Bloodskull Frenzy Root near 5 living Ree orcs", 5, 100, "I need to use the treated root samples to corrupt some Ree orcs. I also need a current copy of their orders.", 197)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. AddItem(Player, 46427, 6)
  18. FaceTarget(QuestGiver, Player)
  19. local conversation = CreateConversation()
  20. AddConversationOption(conversation, "I will return.")
  21. StartConversation(conversation, QuestGiver, Player, "If they get as addicted as Rainus claims the Bloodskull orcs are, this may be the key to drawing the strength of the Ree orcs out from underground. Press your advantages, "..GetName(Player)..", that's what I always say. Speaking of which, while you're there I would like you to find the Ree encampment. Once there, find a current copy of their orders. I'd like to be as up to date as possible.")
  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 let 5 orcs taste the Bloodskull Frenzy Root.")
  31. AddQuestStepObtainItem(Quest, 2, "I need to obtain a recent copy of the orders for the Ree orcs west of Dog Trapper Lake", 1, 100, "I need to use the treated root samples to corrupt some Ree orcs. I also need a current copy of their orders.", 75, 11357)
  32. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  33. end
  34. function Step2Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I have obtained a copy of the Ree orders.")
  36. UpdateQuestTaskGroupDescription(Quest, 1, "I have corrupted the Ree orcs and obtained the orders.")
  37. AddQuestStepChat(Quest, 3, "I need to return to Ventar", 1, "Now that I have done as he asked, I should return to Ventar.", 11, 330214)
  38. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  39. end
  40. function QuestComplete(Quest, QuestGiver, Player)
  41. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  42. UpdateQuestStepDescription(Quest, 3, "I have spoken with Ventar.")
  43. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken with Ventar.")
  44. UpdateQuestDescription(Quest, "I corrupted the Ree orcs with the frenzy root. I also gave Ventar the up to date orders he wanted.")
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. Step1Complete(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. Step2Complete(Quest, QuestGiver, Player)
  52. elseif Step == 3 then
  53. QuestComplete(Quest, QuestGiver, Player)
  54. end
  55. end