forgotten_potion__into_the_hive.lua 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : Quests/TheCryptofBetrayal/forgotten_potion__into_the_hive.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.15 08:10:16
  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 collect deathly scarab antennae inside the Qeynos Catacombs.", 15, 100, "I need to collect deathly scarab antennae inside the Qeynos Catacombs and give them to Cryptkeeper Maglus.", 112, 2010002, 2010013)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "I will be back.")
  19. StartConversation(conversation, QuestGiver, Player, "Perfect! I'll just stand here, quietly hoping not to, you know, Ka-BOOM!")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I need to take these deathly scarab antennae to Cryptkeeper Maglus in the Crypt of Betrayal.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I need to take these deathly scarab antennae to Cryptkeeper Maglus in the Crypt of Betrayal.")
  30. AddQuestStepChat(Quest, 2, "Cryptkeeper Maglus is in the Crypt of Betrayal.", 1, "I must take these deathly scarab antennae to Cryptkeeper Maglus.", 11, 2010043)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I gave the deathly scarab antennae to Cryptkeeper Maglus.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I gave the deathly scarab antennae to Cryptkeeper Maglus.")
  36. AddQuestStepKill(Quest, 3, "I need to enter the lair of the deathly scarabs and slay their Queen.", 1, 100, "I need to enter the deathly scarab nest. Once there I need to collect five deathly scarab worker antennae and slay their queen.", 11, 2040008)
  37. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  38. end
  39. function Step3Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 3, "I have slain the Queen of the deathly scarabs.")
  41. AddQuestStepKill(Quest, 4, "I need to collect five deathly scarab antennae from inside the Queen's lair.", 5, 100, "I need to enter the deathly scarab nest. Once there I need to collect five deathly scarab worker antennae and slay their queen.", 112, 2040004)
  42. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  43. end
  44. function Step4Complete(Quest, QuestGiver, Player)
  45. UpdateQuestStepDescription(Quest, 4, "I have collect the five deathly scarab antennae from inside the Queen's lair.")
  46. UpdateQuestTaskGroupDescription(Quest, 3, "I have collected the five deathly scarab worker antennae and I have slain their Queen.")
  47. AddQuestStepChat(Quest, 5, "Cryptkeeper Maglus is in the Crypt of Betrayal.", 1, "I need to tell Cryptkeeper Maglus that the deathly scarab nest and its Queen are destroyed.", 11, 2010043)
  48. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  49. end
  50. function QuestComplete(Quest, QuestGiver, Player)
  51. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  52. UpdateQuestStepDescription(Quest, 5, "I have told Cryptkeeper Maglus that the deathly scarab nest and its queen are destroyed.")
  53. UpdateQuestTaskGroupDescription(Quest, 4, "I have told Cryptkeeper Maglus that the deathly scarab nest and its Queen are destroyed.")
  54. UpdateQuestDescription(Quest, "I've gotten the deathly scarab antennae for Cryptkeeper Maglus so that she can make her potion.")
  55. GiveQuestReward(Quest, Player)
  56. end
  57. function Reload(Quest, QuestGiver, Player, Step)
  58. if Step == 1 then
  59. Step1Complete(Quest, QuestGiver, Player)
  60. elseif Step == 2 then
  61. Step2Complete(Quest, QuestGiver, Player)
  62. elseif Step == 3 then
  63. Step3Complete(Quest, QuestGiver, Player)
  64. elseif Step == 4 then
  65. Step4Complete(Quest, QuestGiver, Player)
  66. elseif Step == 5 then
  67. QuestComplete(Quest, QuestGiver, Player)
  68. end
  69. end