delivering_news.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/StarcrestCommune/delivering_news.lua
  3. Script Purpose : Handles the quest, "Delivering News"
  4. Script Author : Jabantiz
  5. Script Date : 6/15/2018
  6. Script Notes :
  7. Zone : Starcrest Commune
  8. Quest Giver : Maareona Ludimintium (2340006)
  9. Preceded by : Confrontation (confrontation.lua)
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to speak with Rujiarmo Oolamein in the Peat Bog.", 1, "Maareona has asked that I speak with Rujiarmo Oolamein in the Peat Bog.", 11, 1980024)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. end
  16. function QuestComplete(Quest, QuestGiver, Player)
  17. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  18. UpdateQuestStepDescription(Quest, 1, "I have spoken with Rujiarmo Oolamein.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken with Rujiarmo as Maareona asked.")
  20. UpdateQuestDescription(Quest, "I have found Rujiarmo Oolamein and delivered the news.")
  21. GiveQuestReward(Quest, Player)
  22. end
  23. function Reload(Quest, QuestGiver, Player, Step)
  24. if Step == 1 then
  25. QuestComplete(Quest, QuestGiver, Player)
  26. end
  27. end
  28. function Accepted(Quest, QuestGiver, Player)
  29. FaceTarget(QuestGiver, Player)
  30. local conversation = CreateConversation()
  31. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/maareona_ludimintium/qey_village02/quests/maareona/maareona036a.mp3", "", "", 625407969, 2282669599, Player)
  32. AddConversationOption(conversation, "Thank you.")
  33. StartConversation(conversation, QuestGiver, Player, "One more thing, " .. GetName(Player) .. ". It was nice working with you.")
  34. end
  35. function Declined(Quest, QuestGiver, Player)
  36. -- Add dialog here for when the quest is declined
  37. end
  38. function Deleted(Quest, QuestGiver, Player)
  39. end