9
3

JhosTsein.lua 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. --[[
  2. Script Name : SpawnScripts/Nektulos/JhosTsein.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.20 07:07:45
  5. Script Purpose :
  6. :
  7. --]]
  8. local JournalTranslationForTundisNoxyle = 5327
  9. local PrayerJournalRetrieval = 5328
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange")
  12. end
  13. function InRange(NPC, Spawn)
  14. if HasCompletedQuest(Spawn, JournalTranslationForTundisNoxyle) then
  15. ProvidesQuest(NPC, PrayerJournalRetrieval)
  16. SetInfoFlag(NPC)
  17. SetVisualFlag(NPC)
  18. end
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. local conversation = CreateConversation()
  23. PlayFlavor(NPC, "voiceover/english/jhos_t_sein/nektulos/qst_jhostsein.mp3", "", "", 4261884380, 1040953011, Spawn)
  24. if HasQuest(Spawn, JournalTranslationForTundisNoxyle) then
  25. AddConversationOption(conversation, "Guess you're not interested in this journal that Tundis N'oxyle wanted you to examine...", "Option1")
  26. elseif HasCompletedQuest(Spawn, JournalTranslationForTundisNoxyle) and not HasQuest(Spawn, PrayerJournalRetrieval) and not HasCompletedQuest(Spawn, PrayerJournalRetrieval) then
  27. AddConversationOption(conversation, "Have you finished the journal translation yet?", "Option3")
  28. elseif GetQuestStep(Spawn, PrayerJournalRetrieval) == 2 then
  29. AddConversationOption(conversation, "I've returned with a prayer book from the temple.", "Option5")
  30. end
  31. AddConversationOption(conversation, "If that's the way you want to be, I hope the forest consumes you and your research.")
  32. StartConversation(conversation, NPC, Spawn, "Bother me not, whelp! I've more pressing matters to attend. I'm sure whatever you wish to tell me is of little importance, so go away.")
  33. end
  34. function Option1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. local conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/jhos_t_sein/commonlands/quests/tundisnoxyle/qst_jhostsein_x2_initial.mp3", "", "", 3656399624, 405316062, Spawn)
  38. AddConversationOption(conversation, "That's right, he asked me to give you the journal to translate.", "Option2")
  39. StartConversation(conversation, NPC, Spawn, "So, that simpering fool sent you? I'll tolerate your presence long enough to examine this journal. It's likely that Tundis couldn't translate the text because of its ancient dialect.")
  40. end
  41. function Option2(NPC, Spawn)
  42. SetStepComplete(Spawn, JournalTranslationForTundisNoxyle, 1)
  43. FaceTarget(NPC, Spawn)
  44. local conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/jhos_t_sein/commonlands/quests/tundisnoxyle/qst_jhostsein_x2_finish.mp3", "", "", 2163683514, 665112678, Spawn)
  46. AddConversationOption(conversation, "I wasn't particularly anxious to return to Tundis anyway.")
  47. StartConversation(conversation, NPC, Spawn, "Of course, I am right. Now give it to me, and I'll return it to Tundis when I finish. Even a simple translation like this could take weeks depending on the dialect and writing style of the book's previous owner.")
  48. end
  49. function Option3(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. local conversation = CreateConversation()
  52. PlayFlavor(NPC, "voiceover/english/jhos_t_sein/nektulos/qst_jhostsein000.mp3", "", "", 1560403751, 3814848221, Spawn)
  53. AddConversationOption(conversation, "Keep talking if there's a reward involved.", "Option4")
  54. AddConversationOption(conversation, "I've had enough of that place. I'll not return to the Gate.")
  55. StartConversation(conversation, NPC, Spawn, "Not yet. In fact, I can use your help ... The journal you brought me tells of a temple erected to a fallen god or perhaps a pair of fallen gods. The text is unclear and I don't know either name in the book.")
  56. end
  57. function Option4(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. local conversation = CreateConversation()
  60. -- seems like this dialogue option doesn't have any playflavors, checked twice.
  61. AddConversationOption(conversation, "I still haven't heard anything about a reward.", "offer")
  62. AddConversationOption(conversation, "You're mad. I'll never return there.")
  63. StartConversation(conversation, NPC, Spawn, "I'm too busy with this journal to assist you. You'll find priestly documents in the area, provided it has not been disturbed. You need to search the temple and return with what you find.")
  64. end
  65. function Option5(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. local conversation = CreateConversation()
  68. -- seems like this dialogue option doesn't have any playflavors, checked twice.
  69. AddConversationOption(conversation, "If by exquisite you mean foul and demented, then yes.", "Option6")
  70. StartConversation(conversation, NPC, Spawn, "Excellent! This tome describes the rituals performed in honor of two fallen gods, the Twins of Torment. Thought to be Dymetreax and Byzola, they were the demigods of malice and fear. I imagine you found exquisite statues and adornments in the temple.")
  71. end
  72. function Option6(NPC, Spawn)
  73. SetStepComplete(Spawn, PrayerJournalRetrieval, 2 )
  74. FaceTarget(NPC, Spawn)
  75. local conversation = CreateConversation()
  76. PlayFlavor(NPC, "voiceover/english/jhos_t_sein/nektulos/quests/jhostsein/qst_jhostsein_x1_return2.mp3", "", "", 440180431, 3438279736, Spawn)
  77. AddConversationOption(conversation, "Very well, I will depart immediately for the Commonlands.")
  78. StartConversation(conversation, NPC, Spawn, "I must study this tome further. Return this journal to Tundis; I am certain he'll reward you well for the translation. I realize I said I would return the journal, but this prayer book warrants more attention. ")
  79. end
  80. function offer(NPC, Spawn)
  81. OfferQuest(NPC, Spawn, PrayerJournalRetrieval)
  82. end
  83. function respawn(NPC)
  84. spawn(NPC)
  85. end