barbaric_chores.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.", 5, 100, "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)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "All right.")
  19. StartConversation(conversation, QuestGiver, Player, "Good! Bring them back here as soon as you have them.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I've gathered the undamaged venom sacs.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered all of the venom sacs Feodra wanted.")
  30. 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)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  35. UpdateQuestStepDescription(Quest, 2, "I've spoken with Feodra.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I've given Feodra the undamaged venom sacs from the spiders of the Caves.")
  37. UpdateQuestDescription(Quest, "Feodra Iceslayer was pleased with the spider venom sacs I returned with and paid me for my effort.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. Step1Complete(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end