far_seas_requisition_okf063.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : Quests/Oakmyst/far_seas_requisition_okf063.lua
  3. Script Purpose : Handles the quest, "Far Seas Requisition #OKF063"
  4. Script Author : ememjr
  5. Script Date : 5/9/2017
  6. Script Notes :
  7. Zone : Oakmyst Forest
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must collect five Oakmyst fawn pelts.", 5, 100, "To fill the requisition, I must hunt down the creatures in Oakmyst Forest, reachable by any number of mariner bells in the City of Qeynos.", 138, 1950001)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have collected five Oakmyst fawn pelts.")
  18. AddQuestStepKill(Quest, 2, "I must collect five badger cub pelts.", 5, 100, "To fill the requisition, I must hunt down the creatures in Oakmyst Forest, reachable by any number of mariner bells in the City of Qeynos.", 129, 1950035)
  19. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  20. end
  21. function Step2Complete(Quest, QuestGiver, Player)
  22. UpdateQuestStepDescription(Quest, 2, "I have collected five badger cub pelts.")
  23. AddQuestStepKill(Quest, 3, "I must collect a single bear cub pelt.", 1, 100, "To fill the requisition, I must hunt down the creatures in Oakmyst Forest, reachable by any number of mariner bells in the City of Qeynos.", 128, 1950000)
  24. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  25. end
  26. function Step3Complete(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 3, "I have collected a single bear cub pelt.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected all of the items listed in the requisition.")
  29. AddQuestStepChat(Quest, 4, "I need to talk to Diggin Diggs", 1, "I must go to the province district of Qeynos to seek out the client for this order.", 10, 6600085)
  30. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 4, "I talked to Diggin Diggs.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the goods to Diggin Diggs.")
  36. UpdateQuestDescription(Quest, "I filled the Far Seas Requisition and delivered the goods to the client in the Qeynos Province District. I have been paid in full for this work, but the order was late.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. Step2Complete(Quest, QuestGiver, Player)
  44. elseif Step == 3 then
  45. Step3Complete(Quest, QuestGiver, Player)
  46. elseif Step == 4 then
  47. QuestComplete(Quest, QuestGiver, Player)
  48. end
  49. end
  50. function Accepted(Quest, QuestGiver, Player)
  51. -- Add dialog here for when the quest is accepted
  52. end
  53. function Declined(Quest, QuestGiver, Player)
  54. -- Add dialog here for when the quest is declined
  55. end