9
3

oakmyst_minerals.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/SouthQeynos/oakmyst_minerals.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.14 07:05:17
  5. Script Purpose :
  6. Zone : SouthQeynos
  7. Quest Giver: Hegrenn
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to hunt Oakmyst royal defenders in Oakmyst Forest.", 3, 75, "I need to go to the Oakmyst Forest and slay some Oakmyst royal defenders to try to find some type of mineral.", 187, 8300017)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. UpdateQuestZone(Quest,"Oakmyst Forest")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Spawn)
  18. PlayFlavor(QuestGiver, "voiceover/english/blacksmith_hegrenn/qey_south/blacksmithhegrenn002.mp3", "", "ponder", 986701836, 3811375684, Player)
  19. local conversation = CreateConversation()
  20. AddConversationOption(conversation, "Several pieces got it.")
  21. StartConversation(conversation, QuestGiver, Player, "Ahh, work. You don't say. I heard a bit of gossip over at the tavern. There's a rare stone mineral. The Oakmyst royal defenders out in the forest have it, and I need several pieces. Will you commit to this daring task, adventurer? Remember, I need several pieces!")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I've gathered three pieces of an unknown mineral.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered the mineral Blacksmith Hegrenn was interested in.")
  32. UpdateQuestZone(Quest,"South Qeynos")
  33. AddQuestStepChat(Quest, 2, "Deliver the mineral to Blacksmith Hegrenn.", 1, "Blacksmith Hegrenn will want to see these minerals. She was in the Bag 'n Barrel on the top floor in South Qeynos.", 187, 2310038)
  34. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  35. end
  36. function QuestComplete(Quest, QuestGiver, Player)
  37. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  38. UpdateQuestStepDescription(Quest, 2, "I've returned to Hegrenn with the minerals.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I've given Hegrenn the minerals she requested. She seemed quite pleased about the discorvery, but asked me to keep it to myself.")
  40. UpdateQuestDescription(Quest, "There was more to all of this than just gossip. Sure enough I found an unknown mineral. Hegrenn was quite pleased, but asked me to keep the news to myself.")
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1Complete(Quest, QuestGiver, Player)
  46. elseif Step == 2 then
  47. QuestComplete(Quest, QuestGiver, Player)
  48. end
  49. end