9
3

journal_translation_for_tundis_noxyle.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/TheCommonlands/journal_translation_for_tundis_noxyle.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.20 07:07:49
  5. Script Purpose :
  6. Zone : TheCommonlands
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to find Jhos T'sein", 1, "I'm searching for Jhos T'sein in the Nektulos forest to deliver an ancient Teir'dal journal.", 11, 1790190)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tundis_n_oxyle/commonlands/quests/tundisnoxyle/qst_tundisnoxyle_x2_accept.mp3", "", "", 2745385588, 116783313, Player)
  19. AddConversationOption(conversation, "That's not much help, but it'll have to do. I'll take the journal to him to translate.")
  20. StartConversation(conversation, QuestGiver, Player, "Money is not an issue here. Time is of the essence, I am on the verge of re-discovering our ancient homeland. You would dare put a price on the importance of the Teir'Dal ancestral homeland? I suppose I shall dig into the coffers to pay you. I am not certain where Jhos is in Nektulos, save for a recent letter mentioning ancient spires he was investigating.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function QuestComplete(Quest, QuestGiver, Player)
  29. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  30. UpdateQuestStepDescription(Quest, 1, "I've delivered the journal to Jhos T'sein.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I found Jhos T'sein and delivered the book that Tundis N'oxyle bid me to.")
  32. UpdateQuestDescription(Quest, "Jhos T'sein has explained that the translation process could take up to several weeks, and that he will take the book back to Tundis. I also get the feeling he doesn't fully trust me...")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. QuestComplete(Quest, QuestGiver, Player)
  38. end
  39. end