JanusFieri.lua 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/JanusFieri.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.24
  5. Script Purpose :
  6. Note : All dialog after step 2 is fabricated.
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. require "SpawnScripts/Generic/NPCModule"
  10. local DeliverHelptoJanusFieri = 5660
  11. function spawn(NPC, Spawn)
  12. NPCModule(NPC, Spawn)
  13. FreeportGuard(NPC)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. if not HasCompletedQuest(Spawn,DeliverHelptoJanusFieri) then
  20. Dialog1(NPC, Spawn)
  21. else
  22. Dialog11(NPC, Spawn)
  23. end
  24. end
  25. function Dialog1(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. Dialog.New(NPC, Spawn)
  28. Dialog.AddDialog("Greetings. Janus Fieri, at your service.")
  29. Dialog.AddVoiceover("voiceover/english/janus_fieri/commonlands/quests/janusfieri/janusfieri001.mp3", 2406224045, 2387293986)
  30. if GetQuestStep(Spawn,DeliverHelptoJanusFieri) ==1 then
  31. Dialog.AddOption("I have a note for you from Marcus Cantarius.","Dialog2")
  32. elseif GetQuestStep(Spawn,DeliverHelptoJanusFieri) ==2 then
  33. Dialog.AddOption("Remind me about your investigation.","Dialog3")
  34. elseif GetQuestStep(Spawn,DeliverHelptoJanusFieri) ==3 then
  35. Dialog.AddOption("I've found a tattered journal in the nomad's camp.","Dialog6")
  36. elseif GetQuestStep(Spawn,DeliverHelptoJanusFieri) ==5 then
  37. Dialog.AddOption("I've found a tattered journal in the nomad's camp.","Dialog10")
  38. end
  39. Dialog.AddOption("That's good to know. See you around!")
  40. Dialog.Start()
  41. end
  42. function Dialog2(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddDialog("A note from Marcus? Let me see it! Ah ... interesting. Very good. He writes that you're willing to help with my investigation. That's excellent news. Here's something to compensate you for your time. I have to remain at the Crossroads in case one of my assistants gets a good lead. Are you ready for this challenge?")
  46. Dialog.AddVoiceover("voiceover/english/janus_fieri/commonlands/quests/janusfieri/janusfieri002.mp3", 1036520282, 2045542405)
  47. PlayFlavor(NPC,"","","ponder",0,0,Spawn)
  48. Dialog.AddOption("I'm here, aren't I?","Dialog3")
  49. Dialog.AddOption("What should I know?","Dialog3")
  50. Dialog.Start()
  51. SetStepComplete(Spawn,DeliverHelptoJanusFieri,1)
  52. AddCoin(Spawn, 11)
  53. SendMessage(Spawn, "You receive 11 Copper from Janus Fieri.")
  54. end
  55. function Dialog3(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. Dialog.AddDialog("First, a brief background: Not a fortnight ago, a local farmhand was found slain not too far from here. At first, we thought it was simply a case of wrong place, wrong time. However, as his body was prepared for burial we noticed something ... unusual.")
  59. Dialog.AddVoiceover("voiceover/english/janus_fieri/commonlands/quests/janusfieri/janusfieri003.mp3", 3185527532, 167873804)
  60. PlayFlavor(NPC,"","","nod",0,0,Spawn)
  61. Dialog.AddOption("Unusual, how?","Dialog4")
  62. Dialog.Start()
  63. end
  64. function Dialog4(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. Dialog.New(NPC, Spawn)
  67. Dialog.AddDialog("Glyph-style marks were carved directly into the poor fellow's chest. In order to locate the murderer, I need to know who carved them. Marcus' note indicates that nomads here in the Commonlands might know.")
  68. Dialog.AddVoiceover("voiceover/english/janus_fieri/commonlands/quests/janusfieri/janusfieri004.mp3", 2109604446, 3373930418)
  69. Dialog.AddOption("I'll see what I can find at the nomad camps.","Dialog5")
  70. Dialog.Start()
  71. end
  72. function Dialog5(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. Dialog.New(NPC, Spawn)
  75. Dialog.AddDialog("Be very cautious. They might not give out much information if questioned directly. However, you might be able to gather clues at their campsite. They often pick up items they find to sell later; I hope they kept clues to this murder. Good luck. I will wait for word from you.")
  76. Dialog.AddVoiceover("voiceover/english/janus_fieri/commonlands/quests/janusfieri/janusfieri005.mp3",3131386048, 1502184408)
  77. PlayFlavor(NPC,"","","sniff",0,0,Spawn)
  78. Dialog.AddOption("I'll return when I find something.")
  79. Dialog.Start()
  80. end
  81. --Update 3
  82. function Dialog6(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. Dialog.New(NPC, Spawn)
  85. Dialog.AddDialog("Ah, this is a find! Let me look through it and see if anything can be gleaned from its pages.")
  86. Dialog.AddVoiceover("voiceover/english/janus_fieri/commonlands/quests/janusfieri/janusfieri006.mp3", 0, 0)
  87. PlayFlavor(NPC,"","","boggle",0,0,Spawn)
  88. Dialog.AddOption("Sure. Take a look.","Dialog7")
  89. Dialog.Start()
  90. end
  91. function Dialog7(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. Dialog.New(NPC, Spawn)
  94. Dialog.AddDialog("It says here... that there were skirmishes between the Dervish and Bloodskull orcs. Sightings, positions, movements- its all here... My brother kept very maticulous notes.")
  95. Dialog.AddVoiceover("voiceover/english/janus_fieri/commonlands/quests/janusfieri/janusfieri007.mp3", 0, 0)
  96. PlayFlavor(NPC,"","","ponder",0,0,Spawn)
  97. Dialog.AddOption("Your brother?","Dialog8")
  98. Dialog.Start()
  99. end
  100. function Dialog8(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. Dialog.New(NPC, Spawn)
  103. Dialog.AddDialog("Yes... it appears the last movements recorded were taking record of orcs gathering supplies for their war machines... Wait. It is hard to make out but, I think something scribbled here says \"SPOTTED\"... I knew he would get in over his head! I warned him!")
  104. Dialog.AddVoiceover("voiceover/english/janus_fieri/commonlands/quests/janusfieri/janusfieri008.mp3", 0, 0)
  105. PlayFlavor(NPC,"","","agree",0,0,Spawn)
  106. Dialog.AddOption("What does it mean? What can I do?")
  107. Dialog.Start()
  108. end
  109. function Dialog9(NPC, Spawn)
  110. FaceTarget(NPC, Spawn)
  111. Dialog.New(NPC, Spawn)
  112. Dialog.AddDialog("My brother deserved better than this! They most likely performed some sort of ritual on his body, marking deep into... No.... Go and kill those pig-nosed orcs, look for the ones gathering supplies! Lumberjacks most likely. You've helped me this far. Please, help me avenge my brother's death!")
  113. Dialog.AddVoiceover("voiceover/english/janus_fieri/commonlands/quests/janusfieri/janusfieri009.mp3", 0, 0)
  114. Dialog.AddOption("I'll see those orcs pay for what they've done.")
  115. Dialog.Start()
  116. SetStepComplete(Spawn,DeliverHelptoJanusFieri,3)
  117. end
  118. --Update 5
  119. function Dialog10(NPC, Spawn)
  120. FaceTarget(NPC, Spawn)
  121. Dialog.New(NPC, Spawn)
  122. Dialog.AddDialog("So you have... My heart still twists thinking of my loss, but its grip loosens slightly knowing his murderers have met their fate. Thank you. Please, take something of mine for all your work. You've earned it.")
  123. Dialog.AddVoiceover("voiceover/english/janus_fieri/commonlands/quests/janusfieri/janusfieri012.mp3", 0, 0)
  124. PlayFlavor(NPC,"","","agree",0,0,Spawn)
  125. Dialog.AddOption("I'm glad I could help. If only it hadn't cost your brother's life.","Dialog11")
  126. Dialog.Start()
  127. end
  128. function Dialog11(NPC, Spawn)
  129. FaceTarget(NPC, Spawn)
  130. Dialog.New(NPC, Spawn)
  131. Dialog.AddDialog("I appreciate what you've done, but I cannot dwell upon the past.")
  132. Dialog.AddVoiceover("voiceover/english/janus_fieri/commonlands/quests/janusfieri/janusfieri013.mp3", 1073842818, 1725876774)
  133. Dialog.AddOption("I understand.")
  134. Dialog.Start()
  135. SetStepComplete(Spawn,DeliverHelptoJanusFieri,5)
  136. end