9
3

FarSeasDirectRequisitionCVS0431.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : FarSeasDirectRequisitionCVS0431.lua
  3. Script Purpose : Handles the quest, "Far Seas Direct Requisition CVS0431
  4. Script Author : Shatou
  5. Script Date : 1/6/2020
  6. Script Notes :
  7. Zone : Caves
  8. Quest Giver : Far Seas Direct Requisition CVS0431 (examine item)
  9. Preceded by : none
  10. Followed by : none
  11. --]]
  12. local A_CAVE_SERPENT_ID = 1970008
  13. local ALCHEMIST_GARION_DUNAM_ID = 2330027
  14. function Init(Quest)
  15. AddQuestStepKill(Quest, 1, "Collect cave serpent dorsal fins.", 10, 100, "I must hunt down the creatures in the Caves to fill the requisition.", 11, A_CAVE_SERPENT_ID)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have found a cave serpent dorsal fin.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I have hunted down all the resources to fill the requisition.")
  21. AddQuestStepChat(Quest, 2, "I must talk to Garion Dunam.", 1, "I must go to Nettleville to seek out Alchemist Garion Dunam.", 11, ALCHEMIST_GARION_DUNAM_ID)
  22. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  23. end
  24. function QuestComplete(Quest, QuestGiver, Player)
  25. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  26. UpdateQuestStepDescription(Quest, 3, "I spoke to Garion Dunam.")
  27. UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the goods to Alchemist Garion Dunam.")
  28. UpdateQuestDescription(Quest, "I filled the Far Seas Requisition and delivered the goods to the client in Nettleville. I have been paid in full for this work, but the order was late.")
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Reload(Quest, QuestGiver, Player, Step)
  32. if Step == 1 then
  33. Step1Complete(Quest, QuestGiver, Player)
  34. elseif Step == 2 then
  35. QuestComplete(Quest, QuestGiver, Player)
  36. end
  37. end
  38. function Accepted(Quest, QuestGiver, Player)
  39. -- Add dialog here for when the quest is accepted
  40. end
  41. function Declined(Quest, QuestGiver, Player)
  42. -- Add dialog here for when the quest is declined
  43. end