BloodskullIntentions.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --[[
  2. Script Name : Quests/Commonlands/BloodskullIntentions.lua
  3. Script Purpose : Handles the quest, "Bloodskull Intentions"
  4. Script Author : premierio015
  5. Script Date : 01.03.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Rainus Canton
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to kill 4 Bloodskull tower guards", 4, 100, "I need to kill some orc tower guards and get a copy of the orcish orders.", 611, 330323)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. AddConversationOption(conversation, "Thanks.")
  20. StartConversation(conversation, QuestGiver, Player, "While you do that maybe we can figure out how better to unlock the power of this root. Good luck!")
  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 slain 4 Bloodskull tower guards.")
  30. AddQuestStepObtainItem(Quest, 2, "I need to collect the Bloodskull standing orders", 1, 100, "I need to kill some orc tower guards and get a copy of the orcish orders.", 75, 4404)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I have collected the Bloodskull standing orders.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I killed the orcs and obtained a copy of their orders.")
  36. AddQuestStepChat(Quest, 3, "I need to return to Rainus", 1, "Now that I have done as he asked, I should return to Rainus Canton.", 11, 330246)
  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 Rainus.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken with Rainus Canton.")
  43. UpdateQuestDescription(Quest, "I slew the tower guards, collected the orders, and returned them to Rainus.")
  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