9
3

FarSeasRequisitionWC002.lua 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : Quests/Commonlands/FarSeasRequisitionWC002.lua
  3. Script Purpose : Handles the quest, "Far Seas Requisition - WC 002"
  4. Script Author : premierio015
  5. Script Date : 25.02.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. SetQuestFeatherColor(Quest, 3)
  14. SetQuestRepeatable(Quest)
  15. AddQuestStepKill(Quest, 1, "Hunt lurid crawlers for their fangs", 4, 100, "This particular order calls for four lurid crawler fangs, four lurid creeper fangs, two lurid ripper fangs and one set of lurid feeder fangs. The location listed on the order slip points to the Wailing Caves.", 102, 2580004)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is accepted
  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've collected enough lurid crawler fangs.")
  29. AddQuestStepKill(Quest, 2, "Hunt lurid creepers for their fangs", 4, 100, "This particular order calls for four lurid crawler fangs, four lurid creeper fangs, two lurid ripper fangs and one set of lurid feeder fangs. The location listed on the order slip points to the Wailing Caves.", 102, 2580013)
  30. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  31. end
  32. function Step2Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I've collected enough lurid creeper fangs.")
  34. AddQuestStepKill(Quest, 3, "Hunt lurid rippers for their fangs", 2, 100, "This particular order calls for four lurid crawler fangs, four lurid creeper fangs, two lurid ripper fangs and one set of lurid feeder fangs. The location listed on the order slip points to the Wailing Caves.", 102, 2580011)
  35. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  36. end
  37. function Step3Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 3, "I've collected enough lurid ripper fangs.")
  39. AddQuestStepKill(Quest, 4, "Hunt a lurid feeder and get its fangs", 1, 100, "This particular order calls for four lurid crawler fangs, four lurid creeper fangs, two lurid ripper fangs and one set of lurid feeder fangs. The location listed on the order slip points to the Wailing Caves.", 157, 2580012)
  40. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  41. end
  42. function Step4Complete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 4, "I've colleced a lurid feeders fangs.")
  44. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered all of the items on the requisition. I should turn them in.")
  45. AddQuestStepChat(Quest, 5, "Find the Taskmaster at the Crossroads in the Commonlands", 1, "Deliver filled FSR order to the Taskmaster at the crossroads in the Commonlands.", 11, 330260)
  46. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  47. end
  48. function QuestComplete(Quest, QuestGiver, Player)
  49. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  50. UpdateQuestStepDescription(Quest, 5, "")
  51. UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the items on the FSR to the Taskmaster at the crossroads in the Commonlands.")
  52. UpdateQuestDescription(Quest, "I filled the Far Seas Requisition and delivered the goods to the Taskmaster at the crossroads in the Commonlands. I have been paid in full for this work.")
  53. GiveQuestReward(Quest, Player)
  54. end
  55. function Reload(Quest, QuestGiver, Player, Step)
  56. if Step == 1 then
  57. Step1Complete(Quest, QuestGiver, Player)
  58. elseif Step == 2 then
  59. Step2Complete(Quest, QuestGiver, Player)
  60. elseif Step == 3 then
  61. Step3Complete(Quest, QuestGiver, Player)
  62. elseif Step == 4 then
  63. Step4Complete(Quest, QuestGiver, Player)
  64. elseif Step == 5 then
  65. QuestComplete(Quest, QuestGiver, Player)
  66. end
  67. end