9
3

TheGnollCave.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : Quests/ThunderingSteppes/TheGnollCave.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.07.08 10:07:08
  5. Script Purpose :
  6. Zone : ThunderingSteppes
  7. Quest Giver: Tish Tickers (2490042)
  8. Preceded by: A Scrying Shame
  9. Followed by:
  10. --]]
  11. -- Quests
  12. local TheGnollCave = 106
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "Get cursed bone marrow from some skeletal troopers.", 5, 100, "I must collect some components for Tish Tickers.", 181, 2490218)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. AddQuestStepKill(Quest, 2, "Collect spirit essence from some spirited orbs.", 3, 100, "I must collect some components for Tish Tickers.", 343, 2490219)
  17. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  18. AddQuestStepKill(Quest, 3, "Gather some imbued bones from Varsoon apprentices.", 5, 100, "I must collect some components for Tish Tickers.", 418, 2490226)
  19. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  20. end
  21. function Step1Complete(Quest, QuestGiver, Player)
  22. UpdateQuestStepDescription(Quest, 1, "I have gathered some cursed bone marrow.")
  23. CheckProgress(Quest, Player)
  24. end
  25. function Step2Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 2, "I have collected some spirit essence.")
  27. CheckProgress(Quest, Player)
  28. end
  29. function Step3Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 3, "I have gathered some imbued bones.")
  31. CheckProgress(Quest, Player)
  32. end
  33. function CheckProgress(Quest, Player)
  34. if QuestStepIsComplete(Player, TheGnollCave, 1) and QuestStepIsComplete(Player, TheGnollCave, 2) and QuestStepIsComplete(Player, TheGnollCave, 3) then
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the necessary components for Tish Tickers.")
  36. AddQuestStepChat(Quest, 4, "Return to Tish Tickers.", 1, "I must bring these components I have collected back to Tish.", 11, 2490042)
  37. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  38. end
  39. end
  40. function Step4Complete(Quest, QuestGiver, Player)
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Accepted(Quest, QuestGiver, Player)
  44. FaceTarget(QuestGiver, Player)
  45. conversation = CreateConversation()
  46. AddConversationOption(conversation, "Okay.")
  47. StartConversation(conversation, QuestGiver, Player, "Great! The gnolls have taken my equipment to a cave near here, but they have used some of my own magic to seal the entrance. I'll need you to gather a few key components for me so that we can break in. Here is a list of items I will need in order to prepare a spell to counter their lock. Come see me once you've finished.")
  48. end
  49. function Deleted(Quest, QuestGiver, Player)
  50. end
  51. function Declined(Quest, QuestGiver, Player)
  52. end
  53. function Reload(Quest, QuestGiver, Player, Step)
  54. if Step == 1 then
  55. Step1Complete(Quest, QuestGiver, Player)
  56. elseif Step == 2 then
  57. Step2Complete(Quest, QuestGiver, Player)
  58. elseif Step == 3 then
  59. Step3Complete(Quest, QuestGiver, Player)
  60. elseif Step == 4 then
  61. Step4Complete(Quest, QuestGiver, Player)
  62. end
  63. end