a_crude_gnoll_map.lua 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. --[[
  2. Script Name : Quests/Antonica/a_crude_gnoll_map.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.14 04:07:07
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver: a crude gnoll map
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "Speak to Walcott", 1, "I must find a person named Walcott in Antonica. The map suggests near the North Gates of Qeynos.", 11, 120078)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. if HasItem(Player,1468) then
  17. RemoveItem(Player,1468,1)
  18. SendMessage(Player,"You roll up the map and stuff it in your quest satchle.")
  19. end
  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, "Spoke to farmer Walcott")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I found farmer Walcott standing at his fields in Antonica.")
  30. AddQuestStepKill(Quest, 2, "Slay some witherstraw scarecrows", 1, 70, "I need a pristine witherstraw scarecrow cap.", 115, 120077)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "Slew some witherstraw scarecrows.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I found a pristine witherstraw scarecrow cap.")
  36. AddQuestStepKill(Quest, 3, "Slay Darkpaw mystics", 1, 60, "I need to hunt down Darkpaw mystics in hopes of finding a spool of Darkpaw sinew thread.", 781, 120015)
  37. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  38. end
  39. function Step3Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 3, "Found the spool.")
  41. UpdateQuestTaskGroupDescription(Quest, 3, "I found a spool of Darkpaw sinew thread on one of the Darkpaw mystics in Antonica.")
  42. AddQuestStep(Quest, 4, "Inspect a bale of hay for enchanted quiverstraw", 1, 100, "I need to find a hay bale of quiverstraw in Antonica. Who would be using enchanted straw?", 315)
  43. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  44. end
  45. function Step4Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 4, "I have some quiverstraw.")
  47. UpdateQuestTaskGroupDescription(Quest, 4, "I found a bundle of gnoll quiverstraw in Antonica.")
  48. AddQuestStepKill(Quest, 5, "Slay some sparrow hawks", 1, 66, "I need to slay some sparrow hawks in Antonica in hopes of finding a rare rainbow feather.", 150, 120064)
  49. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  50. end
  51. function Step5Complete(Quest, QuestGiver, Player)
  52. UpdateQuestStepDescription(Quest, 5, "Slew some sparrow hawks.")
  53. UpdateQuestTaskGroupDescription(Quest, 5, "I found a rare rainbow feather on a sparrow hawk in Antonica.")
  54. AddQuestStepChat(Quest, 6, "Speak to farmer Walcott", 1, "I need to return to farmer Walcott in Antonica to deliver his components.", 11, 120078)
  55. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  56. end
  57. function QuestComplete(Quest, QuestGiver, Player)
  58. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  59. UpdateQuestStepDescription(Quest, 6, "Spoke to farmer Walcott.")
  60. UpdateQuestTaskGroupDescription(Quest, 6, "I delivered the components to farmer Walcott.")
  61. UpdateQuestDescription(Quest, "I helped farmer Walcott gather the components necessary to construct a magical scarecrow that might help defend his crops from gnoll intrusions.")
  62. GiveQuestReward(Quest, Player)
  63. end
  64. function Reload(Quest, QuestGiver, Player, Step)
  65. if Step == 1 then
  66. Step1Complete(Quest, QuestGiver, Player)
  67. elseif Step == 2 then
  68. Step2Complete(Quest, QuestGiver, Player)
  69. elseif Step == 3 then
  70. Step3Complete(Quest, QuestGiver, Player)
  71. elseif Step == 4 then
  72. Step4Complete(Quest, QuestGiver, Player)
  73. elseif Step == 5 then
  74. Step5Complete(Quest, QuestGiver, Player)
  75. elseif Step == 6 then
  76. QuestComplete(Quest, QuestGiver, Player)
  77. end
  78. end