9
3

FarSeasDirectRequisitionCVS0276.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : FarSeasDirectRequisitionCVS0276.lua
  3. Script Purpose : Handles the quest, "Far Seas Direct Requisition CVS0276"
  4. Script Author : Shatou
  5. Script Date : 1/6/2020
  6. Script Notes :
  7. Zone : Caves
  8. Quest Giver : Far Seas Direct Requisition CVS0276 (examine item)
  9. Preceded by : none
  10. Followed by : none
  11. --]]
  12. local WHITE_SPIDER_ID = 1970012
  13. local WHITE_SPIDERLING_ID = 1970002
  14. local ALBINO_ARACHNID = 1970010
  15. local ALCHEMIST_GARION_DUNAM_ID = 2330027
  16. function Init(Quest)
  17. AddQuestStepKill(Quest, 1, "Gather white spiderling chitin.", 10, 100, "I must hunt down the creatures in the Caves to fill the requisition.", 11, WHITE_SPIDERLING_ID)
  18. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  19. end
  20. function Step1Complete(Quest, QuestGiver, Player)
  21. UpdateQuestStepDescription(Quest, 1, "I have gathered enough white spiderling chitin.")
  22. AddQuestStepKill(Quest, 2, "Gather white spider silk.", 6, 25, "I must hunt down the creatures in the Caves to fill the requisition.", 11, WHITE_SPIDER_ID, WHITE_SPIDERLING_ID, ALBINO_ARACHNID)
  23. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  24. end
  25. function Step2Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 2, "I have gathered enough white spider silk.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have hunted down all the resources to fill the requisition.")
  28. AddQuestStepChat(Quest, 3, "I must talk to Garion Dunam.", 1, "I must go to Nettleville to seek out Alchemist Garion Dunam.", 11, ALCHEMIST_GARION_DUNAM_ID)
  29. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  33. UpdateQuestStepDescription(Quest, 3, "I spoke to Garion Dunam.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the goods to Alchemist Garion Dunam.")
  35. 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.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. Step1Complete(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. Step2Complete(Quest, QuestGiver, Player)
  43. elseif Step == 3 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end
  47. function Accepted(Quest, QuestGiver, Player)
  48. -- Add dialog here for when the quest is accepted
  49. end
  50. function Declined(Quest, QuestGiver, Player)
  51. -- Add dialog here for when the quest is declined
  52. end