a_bow_for_a_beauty.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : Quests/Antonica/a_bow_for_a_beauty.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.09.15 03:09:32
  5. Script Purpose : Item reward "Gnoll-hide Pouch" is missing in Database
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "Landwyn has asked me to collect earthcrawler leg joints.", 5, 30, "I need to gather perfectly polished earthcrawler leg joints for Landwyn.", 1908, 120121, 121267)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "I shall do so graciously.")
  19. StartConversation(conversation, QuestGiver, Player, "Then go, please, and find the best, most polished limbs possible!")
  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 have gathered all the earthcrawler leg joints.")
  29. AddQuestStepZoneLoc(Quest, 2, "I should polish these earthcrawler leg joints for Landwyn. The water in Crater pond should work well.", 50, "I need to polish the earthcrawler leg joints for Landwyn.", 2514,128.12, -24.96, 481.58, 12 )
  30. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  31. end
  32. function Step2Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I have polished the earthcrawler leg joints, and should return them to Landwyn.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected earthcrawler leg joints for Landwyn.")
  35. AddQuestStepChat(Quest, 3, "I need to return to Landwyn.", 1, "I should return these parts to Landwyn.", 1908, 121388)
  36. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  37. end
  38. function QuestComplete(Quest, QuestGiver, Player)
  39. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  40. UpdateQuestStepDescription(Quest, 3, "I have helped Landwyn once again.")
  41. UpdateQuestTaskGroupDescription(Quest, 2, "I have given Landwyn what he requested.")
  42. UpdateQuestDescription(Quest, "I have collected all of the earthcrawler leg joints for Landwyn.")
  43. GiveQuestReward(Quest, Player)
  44. end
  45. function Reload(Quest, QuestGiver, Player, Step)
  46. if Step == 1 then
  47. Step1Complete(Quest, QuestGiver, Player)
  48. elseif Step == 2 then
  49. Step2Complete(Quest, QuestGiver, Player)
  50. elseif Step == 3 then
  51. QuestComplete(Quest, QuestGiver, Player)
  52. end
  53. end