rise_and_shine_wine.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : Quests/Antonica/rise_and_shine_wine.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.09.04 08:09:45
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I must gather some goo.", 5, 50, "I must kill risen protectors.", 8, 120449, 121497)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "Okay.")
  19. StartConversation(conversation, QuestGiver, Player, "Bring it straight back to me.")
  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 some goo.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I have gathered enough goo.")
  30. AddQuestStepChat(Quest, 2, "I should speak with Haddek again.", 1, "I must speak to Haddek.", 8, 120281)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  35. UpdateQuestStepDescription(Quest, 2, "I have spoken with Haddek.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken to Haddek.")
  37. UpdateQuestDescription(Quest, "I have gathered enough goo for Haddek's wine. He was quite grateful and is very excited to complete his brew.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. Step1Complete(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end