9
3

barbaric_chores.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/SouthQeynos/barbaric_chores.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.09.25 10:09:26
  5. Script Purpose :
  6. Zone : SouthQeynos, QeynosProvinceDistrict, Caves
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "Hunt white spiders in the Caves for undamaged venom sacs.", 3, 60, "I need to go to the Caves by mariner bell within the City of Qeynos and slay spiders for their venom sacs, but I must be careful not to damage them.", 109, 1970012,8260019)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. UpdateQuestZone(Quest,"Caves")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "All right.")
  20. StartConversation(conversation, QuestGiver, Player, "Good! Bring them back here as soon as you have them.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I've gathered the undamaged venom sacs.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered all of the venom sacs Feodra wanted.")
  31. UpdateQuestZone(Quest,"South Qeynos")
  32. AddQuestStepChat(Quest, 2, "Return to Feodra Iceslayer.", 1, "I should return to Feodra Iceslayer with the undamaged venom sacs I've gathered. I last saw Feodra in Qeynos South.", 109, 2310100, 5890328)
  33. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  37. UpdateQuestStepDescription(Quest, 2, "I've spoken with Feodra.")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "I've given Feodra the undamaged venom sacs from the spiders of the Caves.")
  39. UpdateQuestDescription(Quest, "Feodra Iceslayer was pleased with the spider venom sacs I returned with and paid me for my effort.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. QuestComplete(Quest, QuestGiver, Player)
  47. end
  48. end