far_seas_requisition_db0372.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : Quests/TheDownBelow/far_seas_requisition_db0372.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.20 10:09:42
  5. Script Purpose :
  6. Zone : TheDownBelow
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. SetQuestFeatherColor(Quest, 3)
  13. SetQuestRepeatable(Quest)
  14. AddQuestStepKill(Quest, 1, "I must kill some coiled burrowers.", 5, 100, "I must hunt down the creatures in The Down Below to fill the requisition.", 172, 8340020)
  15. AddQuestStepKill(Quest, 2, "I must kill some crypt substances.", 4, 100, "I must hunt down the creatures in The Down Below to fill the requisition.", 145, 8340022)
  16. AddQuestStepKill(Quest, 3, "I must kill some tomb foragers.", 3, 100, "I must hunt down the creatures in The Down Below to fill the requisition.", 99, 8340043)
  17. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  18. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  19. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  20. end
  21. function CheckProgress(Quest, QuestGiver, Player)
  22. if QuestStepIsComplete(Player, 5887, 1) and QuestStepIsComplete(Player, 5887, 2) and QuestStepIsComplete(Player, 5887, 3) then
  23. UpdateQuestTaskGroupDescription(Quest, 1, "I have hunted down all the resources to fill the requisition.")
  24. UpdateQuestZone(Quest,"Castleview")
  25. AddQuestStepChat(Quest, 4, "I must go to Bartender Bulurg.", 1, "I must go to Castleview Hamlet to seek out the client of this order.", 11, 2360021)
  26. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  27. end
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I have killed some coiled burrowers.")
  31. CheckProgress(Quest, QuestGiver, Player)
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I have killed some crypt substances.")
  35. CheckProgress(Quest, QuestGiver, Player)
  36. end
  37. function Step3Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 3, "I have killed some tomb foragers.")
  39. CheckProgress(Quest, QuestGiver, Player)
  40. end
  41. function QuestComplete(Quest, QuestGiver, Player)
  42. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  43. UpdateQuestStepDescription(Quest, 4, "I visited Bartender Bulurg.")
  44. UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the goods to Bartender Bulurg.")
  45. UpdateQuestDescription(Quest, "I filled the Far Seas Requisition and delivered the goods to the client in Castleview Hamlet. I have been paid in full for this work, but the order was late.")
  46. GiveQuestReward(Quest, Player)
  47. if HasItem(Player,7081) then
  48. RemoveItem(Player,7081,1)
  49. end
  50. end
  51. function Accepted(Quest, QuestGiver, Player)
  52. end
  53. function Declined(Quest, QuestGiver, 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. QuestComplete(Quest, QuestGiver, Player)
  64. end
  65. end