refill_the_oakmyst_spider_silk_jars.lua 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/Nettleville/refill_the_oakmyst_spider_silk_jars.lua
  3. Script Purpose : Handles the quest, "Refill the Oakmyst Spider Silk Jars"
  4. Script Author : Jabantiz
  5. Script Date : 6/13/2018
  6. Script Notes :
  7. Zone : The City of Qeynos
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must slay some Oakmyst spiders in Oakmyst Forest", 8, 100, "I must slay Oakmyst spiders and collect their silk in the local Oakmyst Forest, reachable by any mariner bell within the City of Qeynos.", 354,1950014,8300018)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have slain some Oakmyst spiders.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I have refilled the Oakmyst spider silk jars.")
  19. AddQuestStepChat(Quest, 2, "I must return to Varion Smitelin", 1, "I must return the spider silk jars to Varion Smitelin, a sage within the Concordium in the Qeynos Capitol District", 354, 2330056)
  20. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  21. end
  22. function QuestComplete(Quest, QuestGiver, Player)
  23. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  24. UpdateQuestStepDescription(Quest, 2, "I gave Smitelin the jars of spider silk.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Smitelin the jars of spider silk.")
  26. UpdateQuestDescription(Quest, "I refilled the Oakmyst spider silk jars and gave them to Sage Varion Smitelin. Having not had the time to do it himself, he was very thankful.")
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Reload(Quest, QuestGiver, Player, Step)
  30. if Step == 1 then
  31. Step1Complete(Quest, QuestGiver, Player)
  32. elseif Step == 2 then
  33. QuestComplete(Quest, QuestGiver, Player)
  34. end
  35. end
  36. function Accepted(Quest, QuestGiver, Player)
  37. AddConversationOption(conversation, "[Exit]", "CloseConversation")
  38. StartDialogConversation(conversation, 1, QuestGiver, Player, "This jar is filled with spider silk but looks rather low, I should help Varion out by gathering some more.")
  39. end
  40. function Declined(Quest, QuestGiver, Player)
  41. -- Add dialog here for when the quest is declined
  42. end
  43. function Deleted(Quest, QuestGiver, Player)
  44. end