wings_of_a_feather_hiss_together.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : wings_of_a_feather_hiss_together.lua
  3. Script Purpose : Handles the quest, "Wings of a Feather Hiss Together"
  4. Script Author : Dorbin
  5. Script Date : 5/30/2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : The City of Qeynos
  8. Quest Giver : Gauldry
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must hunt flying snakes to get six wings.", 6, 60, "I've been charged to recover no less than six flying snake wings from the cave serpents in the Caves.", 140, 1970008)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"The Caves")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. local conversation = CreateConversation()
  20. AddConversationOption(conversation, "Alright. I'll do my best gathering these flying snake wings.")
  21. StartConversation(conversation, QuestGiver, Player, "You see, I need something delicate, yet supple. You'll need to head to the Caves outside of the Baubbleshire and collect wings... from flying snakes. Yes, yes, I know snakes are not always the most enjoyable things, but their wings are the most durable lining for my suits of armor. Bring me back just six wings and I'll pay you for your services. Be wary, they are delicate!")
  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)
  30. UpdateQuestStepDescription(Quest, 1, "I've obtained the snake wings.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I've beaten the winged snakes and taken their wings per my charge.")
  32. AddQuestStepChat(Quest, 2, "I must deliver these snake wings to Gauldry in South Qeynos.", 1 , "Gualdry will want to inspect these snake wings. His shop was in The Tin Soldier in South Qeynos.", 140, 2310037)
  33. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  34. UpdateQuestZone(Quest,"South Qeynos")
  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 Gauldry.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I've delivered the snake wings to Gauldry.")
  40. UpdateQuestDescription(Quest, "The winged snakes were no easy task, though I've learned much dealing with their twisted tactics. Merchant Gauldry was pleased with my efforts and the quality of the wings recovered.")
  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