9
3

GeologistFribden.lua 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/GeologistFribden.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.07.12 08:07:46
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local RareRocksLost = 5640
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, RareRocksLost)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. if not HasQuest(Spawn, RareRocksLost) and not HasCompletedQuest(Spawn, RareRocksLost) then
  16. Option0(NPC, Spawn)
  17. elseif GetQuestStep(Spawn, RareRocksLost) == 1 or GetQuestStep(Spawn, RareRocksLost) == 2 or GetQuestStep(Spawn, RareRocksLost) == 3 or GetQuestStep(Spawn, RareRocksLost) == 4 then
  18. Progress(NPC, Spawn)
  19. elseif GetQuestStep(Spawn, RareRocksLost) == 5 then
  20. Option3(NPC, Spawn)
  21. elseif HasCompletedQuest(Spawn, RareRocksLost) then
  22. Finished(NPC, Spawn)
  23. end
  24. end
  25. function Progress(NPC, Spawn)
  26. Dialog.New(NPC, Spawn)
  27. Dialog.AddVoiceover("voiceover/english/geologist_fribden/blackburrow/geologist_fribden008.mp3", 3978965868, 3637464686)
  28. Dialog.AddOption("Not yet.")
  29. Dialog.AddDialog("Well then. You recovered the rock samples I lost?")
  30. Dialog.Start()
  31. end
  32. function Option0(NPC, Spawn)
  33. Dialog.New(NPC, Spawn)
  34. Dialog.AddDialog("I've found such amazing rock formation in these caves. They're dangerous, indeed, but the sights are worth the treacherous journey.")
  35. Dialog.AddVoiceover("voiceover/english/geologist_fribden/blackburrow/geologist_fribden001.mp3", 2146454780, 3217102942)
  36. Dialog.AddOption("What are you doing down here?", "Option1")
  37. Dialog.AddOption("I'll keep an eye out.")
  38. Dialog.Start()
  39. end
  40. function Option1(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. Dialog.New(NPC, Spawn)
  43. Dialog.AddDialog("Why, isn't it obvious? Wilabus and I are studying the structure and mineral constitution of Antonica ... Perhaps it's not so obvious, you appear to be one of those adventuring types, am I right?")
  44. Dialog.AddVoiceover("voiceover/english/geologist_fribden/blackburrow/geologist_fribden005.mp3", 4214643568, 2530978770)
  45. Dialog.AddOption("[continue]", "Option2")
  46. Dialog.Start()
  47. end
  48. function Option2(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. Dialog.New(NPC, Spawn)
  51. Dialog.AddDialog("Why, yes, of course you are. Say! I need someone with your unique credentials. While in the upper mines, I lost some rather rare samples that I had been collecting. Would you venture to the mines and recover them for me?")
  52. Dialog.AddVoiceover("voiceover/english/geologist_fribden/blackburrow/geologist_fribden006.mp3", 2444720403, 3772890138)
  53. Dialog.AddOption("I can for a price.", "offer")
  54. Dialog.AddOption("No can do. ")
  55. Dialog.Start()
  56. end
  57. function Option3(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. Dialog.New(NPC, Spawn)
  60. Dialog.AddDialog("Good to see you again, my adventurous friend. I see you've recovered my samples. It would have taken me weeks to replace them. I'm truly in your debt.")
  61. Dialog.AddVoiceover("voiceover/english/geologist_fribden/blackburrow/geologist_fribden010.mp3", 2842935841, 2634256248)
  62. Dialog.AddOption("Pay me and we'll be square. ", "Option4")
  63. Dialog.Start()
  64. end
  65. function Option4(NPC, Spawn)
  66. SetStepComplete(Spawn, RareRocksLost, 5)
  67. FaceTarget(NPC, Spawn)
  68. Dialog.New(NPC, Spawn)
  69. Dialog.AddDialog("Of course, accept these gems as compensation for your efforts. It has been an honor to make your acquaintance. May whatever faith guide you, shine evermore brightly.")
  70. Dialog.AddVoiceover("voiceover/english/geologist_fribden/blackburrow/geologist_fribden011.mp3", 3464640416, 2538518646)
  71. Dialog.AddOption("Thanks.")
  72. Dialog.Start()
  73. end
  74. function Finished(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. Dialog.New(NPC, Spawn)
  77. Dialog.AddDialog("These gnolls are quite adept at mining. I would even venture to say their mining skills surpass those of the dwarves.")
  78. Dialog.AddVoiceover("voiceover/english/geologist_fribden/blackburrow/geologist_fribden012.mp3", 293315046, 2022548794)
  79. Dialog.AddOption("You don't say.")
  80. Dialog.Start()
  81. end
  82. function offer(NPC, Spawn)
  83. OfferQuest(NPC, Spawn, RareRockskLost)
  84. end
  85. function respawn(NPC)
  86. spawn(NPC)
  87. end