DivekLNarr.lua 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : SpawnScripts/LongshadowAlley/DivekLNarr.lua
  3. Script Purpose : Divek L`Narr
  4. Script Author : torsten\\Dorbin - Added Dialog (Mostly fabricated)
  5. Script Date : 2022.07.18
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. dofile("SpawnScripts/Generic/UnknownLanguage.lua")
  10. local DeadManEyes = 5674
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, DeadManEyes)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. if GetFactionAmount(Spawn,12) <0 then
  19. FaceTarget(NPC, Spawn)
  20. PlayFlavor(NPC, "","","shakefist",0,0, Spawn)
  21. else
  22. if not HasLanguage(Spawn,2)then
  23. Garbled(NPC,Spawn)
  24. else
  25. Dialog1(NPC,Spawn)
  26. end
  27. end
  28. end
  29. function Dialog1(NPC, Spawn)
  30. Dialog.New(NPC, Spawn)
  31. Dialog.AddDialog("Can't you see I'm busy organizing my collections of wisdom? I've no time for chatting. Leave me alone!")
  32. Dialog.AddVoiceover("voiceover/english/scribe_ommanoden/qey_village02/100_scribe_ommanoden_multhail1_becd50b2.mp3", 3010394589, 1905118172)
  33. Dialog.AddLanguage(2)
  34. if CanReceiveQuest(Spawn, DeadManEyes) then
  35. Dialog.AddOption("What are you going on about?", "Dialog2")
  36. elseif GetQuestStep(Spawn, DeadManEyes) == 2 then
  37. Dialog.AddOption("Here are the eyes you requested.", "Dialog5")
  38. end
  39. Dialog.AddOption("Perhaps you should lock your door then!")
  40. Dialog.Start()
  41. end
  42. function Dialog2(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. Dialog.AddDialog("You must be offering your soul, because there is no other reason you should be pestering me while I try to avenge my brother's death. Even after four centuries, his untimely murder still haunts my waking thoughts. I MUST have answers!")
  45. Dialog.AddOption("Sitting in this filth won't help. Go dig him up!", "Dialog3")
  46. Dialog.AddOption("You pathetic fool. Centuries?! Get over it!")
  47. Dialog.Start()
  48. end
  49. function Dialog3(NPC, Spawn)
  50. Dialog.New(NPC, Spawn)
  51. Dialog.AddDialog("That advice is precisely what I'd expect from a lowborn such as yourself. However, my methods are more subtle. After years of tracking down the murderer, I've concluded that his secret indeed lies within the ancient ruins of Neriak. If I can gain passage into its depths, I should be able to catch the murderer unaware and avenge my brother.")
  52. Dialog.AddOption("So, crawl through the rubble and look for it rather than crying to me!", "Dialog4")
  53. Dialog.AddOption("After all this time? Doubtful. You've wasted your life.")
  54. Dialog.Start()
  55. end
  56. function Dialog4(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. Dialog.AddDialog("You have an impertinent manner. Still, I may be able to use you. I have applied myself to the dark arts so that I may one day channel my departed brother's spirit for further clues. There is a special reagent I need to perform the channeling ritual. If you gather it for me, you will be handsomely paid.")
  59. Dialog.AddOption("Dark arts? I'm intrigued. What do you need?", "Offer")
  60. Dialog.AddOption("You pathetic fool. Centuries?! Get over it!")
  61. Dialog.Start()
  62. end
  63. function Offer(NPC,Spawn)
  64. OfferQuest(NPC, Spawn, DeadManEyes)
  65. end
  66. function Dialog5(NPC, Spawn)
  67. SetStepComplete(Spawn, DeadManEyes, 2)
  68. Dialog.New(NPC, Spawn)
  69. Dialog.AddDialog("Allow me to inspect them ... yes, these will suffice. Now, take your coin and go. I must perform this ritual undisturbed. If you hear any screams, do not attempt to interfere. If you disrupt the delicate procedure, I will use you as my next source of Dead Man's Eyes. Do you understand?")
  70. Dialog.AddOption("Thanks. Screams in the Alley? Sounds like a normal night to me.")
  71. Dialog.Start()
  72. end