9
3

FarSeasDirectRequisitionCVS0431.lua 2.2 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,8260074,8260003)
  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. UpdateQuestZone(Quest, "Nettleville")
  22. 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)
  23. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  24. end
  25. function QuestComplete(Quest, QuestGiver, Player)
  26. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  27. UpdateQuestStepDescription(Quest, 3, "I spoke to Garion Dunam.")
  28. UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the goods to Alchemist Garion Dunam.")
  29. 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.")
  30. GiveQuestReward(Quest, Player)
  31. end
  32. function Reload(Quest, QuestGiver, Player, Step)
  33. if Step == 1 then
  34. Step1Complete(Quest, QuestGiver, Player)
  35. elseif Step == 2 then
  36. QuestComplete(Quest, QuestGiver, Player)
  37. end
  38. end
  39. function Accepted(Quest, QuestGiver, Player)
  40. -- Add dialog here for when the quest is accepted
  41. end
  42. function Declined(Quest, QuestGiver, Player)
  43. -- Add dialog here for when the quest is declined
  44. end