9
3

TimothusYelrow.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : SpawnScripts/Antonica/TimothusYelrow.lua
  3. Script Author : Premierio015
  4. Script Date : 2023.04.01 10:04:44
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local CorroboratingTheExistenceOfTheStormholdLibrary = 5794 -- quest ID
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, CorroboratingTheExistenceOfTheStormholdLibrary)
  12. SetInfoStructString(NPC, "action_state", "ponder")
  13. end
  14. function hailed(NPC, Spawn)
  15. Option0(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. end
  18. function Option0(NPC, Spawn)
  19. Dialog.New(NPC, Spawn)
  20. Dialog.AddDialog("You ... you interrupted my meditation! Do you not know the importance of my work here?")
  21. PlayFlavor(NPC,"","","glare",0,0,Spawn)
  22. Dialog.AddVoiceover("voiceover/english/timothus_yerlow/antonica/timothusyelrow000.mp3", 3793699974, 4104951669)
  23. if CanReceiveQuest(Spawn, CorroboratingTheExistenceOfTheStormholdLibrary) then
  24. Dialog.AddOption("I just wanted to know why you were out here by yourself.", "Option1")
  25. elseif GetQuestStep(Spawn, CorroboratingTheExistenceOfTheStormholdLibrary)==2 then
  26. Dialog.AddOption("I found the library in Stormhold. Almost all the books had \"Karana\" in the title in one form or another.", "Option3")
  27. end
  28. Dialog.AddOption("I'm sorry, I didn't mean to disturb you. I'll be going now.")
  29. Dialog.Start()
  30. end
  31. function Option1(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. Dialog.New(NPC, Spawn)
  34. Dialog.AddDialog("To avoid obnoxious individuals like you from disturbing me! Well ... if you must know, I am waiting here for my associate to confirm some rumors.")
  35. Dialog.AddVoiceover("voiceover/english/timothus_yerlow/antonica/timothusyelrow001.mp3", 1639140719, 2392770436)
  36. PlayFlavor(NPC,"","","scold",0,0,Spawn)
  37. Dialog.AddOption("What rumors have you heard?", "Option2")
  38. Dialog.AddOption("One of you seems bad enough, I don't think I'll stay around to meet an associate. ")
  39. Dialog.Start()
  40. end
  41. function Option2(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. Dialog.AddDialog("Aren't you inquisitive! Not that it does you any good. I have received information that Stormhold - the hidden fortress of the Knights of Thunder - has been found. Anyone remotely knowledgeable knows that the Knights kept a cache of large magical books of spells and incantations called tomes. But I never trust rumors. I am a man of learning, and I require a reliable witness. Therefore, I wait.")
  45. Dialog.AddVoiceover("voiceover/english/timothus_yerlow/antonica/timothusyelrow002.mp3", 3652823892, 4095654623)
  46. PlayFlavor(NPC,"","","agree",0,0,Spawn)
  47. Dialog.AddOption("I can find this library for you, but it'll cost you.", "offer")
  48. Dialog.AddOption("I hope your friend can back up the story. ")
  49. Dialog.Start()
  50. end
  51. function Option3(NPC, Spawn)
  52. SetStepComplete(Spawn, CorroboratingTheExistenceOfTheStormholdLibrary, 2)
  53. FaceTarget(NPC, Spawn)
  54. Dialog.New(NPC, Spawn)
  55. Dialog.AddDialog("Hmm ... this indeed verifies what I was previously told. Here is your coin, I have much thinking to do.")
  56. Dialog.AddVoiceover("voiceover/english/timothus_yerlow/antonica/timothusyelrow004.mp3", 919338533, 415565513)
  57. PlayFlavor(NPC,"","","ponder",0,0,Spawn)
  58. Dialog.AddOption("Thanks for the money.")
  59. Dialog.Start()
  60. end
  61. function offer(NPC, Spawn)
  62. OfferQuest(NPC, Spawn, CorroboratingTheExistenceOfTheStormholdLibrary)
  63. end
  64. function respawn(NPC)
  65. spawn(NPC)
  66. end