licha_dancing_queen.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : Quests/Antonica/licha_dancing_queen.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.16 06:08:58
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStep(Quest, 1, "I need to find a windstalker villager who will watch Licha dance.", 1, "Licha wants me to gather an audience for her, I should find at least three people to watch her.", 11)
  13. AddQuestStep(Quest, 2, "I need to find a windstalker villager who will watch Licha dance.", 1, "Licha wants me to gather an audience for her, I should find at least three people to watch her.", 11)
  14. AddQuestStep(Quest, 3, "I need to find a windstalker villager who will watch Licha dance.", 1, "Licha wants me to gather an audience for her, I should find at least three people to watch her.", 11 )
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  17. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. FaceTarget(QuestGiver, Player)
  21. local conversation = CreateConversation()
  22. AddConversationOption(conversation, "Maybe.")
  23. StartConversation(conversation, QuestGiver, Player, "They'll come, you'll see.")
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is declined
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. -- Remove any quest specific items here when the quest is deleted
  30. end
  31. function Step1Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I asked a villager to watch Licha.")
  33. CheckProgress(Quest, QuestGiver, Player)
  34. end
  35. function Step2Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 2, "I asked a villager to watch Licha.")
  37. CheckProgress(Quest, QuestGiver, Player)
  38. end
  39. function Step3Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 3, "I asked a villager to watch Licha.")
  41. CheckProgress(Quest, QuestGiver, Player)
  42. end
  43. function QuestComplete(Quest, QuestGiver, Player)
  44. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  45. UpdateQuestStepDescription(Quest, 4, "I spoke with Licha about her performance.")
  46. UpdateQuestTaskGroupDescription(Quest, 2, "I asked Licha about her dance.")
  47. UpdateQuestDescription(Quest, "I helped Licha's dreams come true.")
  48. GiveQuestReward(Quest, Player)
  49. end
  50. function CheckProgress(Quest, QuestGiver, Player)
  51. if QuestStepIsComplete(Player, 5342, 1) and QuestStepIsComplete(Player, 5342, 2) and QuestStepIsComplete(Player, 5342, 3) then
  52. UpdateQuestTaskGroupDescription(Quest, 1, "I have gathered an audience for Licha.")
  53. AddQuestStepChat(Quest, 4, "I should ask Licha about her dance.", 1, "I should speak with Licha about her upcoming performance.", 11, 121308)
  54. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  55. end
  56. end
  57. function Reload(Quest, QuestGiver, Player, Step)
  58. if Step == 1 then
  59. Step1Complete(Quest, QuestGiver, Player)
  60. elseif Step == 2 then
  61. Step2Complete(Quest, QuestGiver, Player)
  62. elseif Step == 3 then
  63. Step3Complete(Quest, QuestGiver, Player)
  64. elseif Step == 4 then
  65. QuestComplete(Quest, QuestGiver, Player)
  66. end
  67. end