AmrenTalbot.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/SouthQeynos/AmrenTalbot.lua
  3. Script Purpose : Amren Talbot
  4. Script Author : Cynnar, premierio015
  5. Script Date : 28.10.2021
  6. Script Notes : dialogues for quest "A Crumpled Note" and "Spellbook Fragments" (2022.02.22 - Dorbin)
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local ACrumpledNote = 5374 -- A Crumpled Note Mages Version
  10. local spellbookFrags = 5485
  11. function spawn(NPC)
  12. SetInfoStructString(NPC, "action_state", "cast_priest_buff_01")
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. Dialog.New(NPC, Spawn)
  19. Dialog.AddDialog("Focus is the key to unlocking any illusion. The mind's eye can do many wondrous things, once it focuses.")
  20. Dialog.AddVoiceover("voiceover/english/amren_talbot/qey_south/amrentalbot000.mp3", 186833269, 2706325328)
  21. if GetQuestStep(Spawn, ACrumpledNote)==1 then
  22. Dialog.AddOption( "I found this note in the Down Below, I think the mages here at the towers could decipher it.", "quest_complete")
  23. end
  24. if GetQuestStep(Spawn, spellbookFrags)==1 then
  25. Dialog.AddOption("I found this fragment of what appears to be a spell book. It came from the old mage tower in the forest ruins.", "quest_complete2")
  26. end
  27. Dialog.AddOption("I'm not one for thinking about illusions. ")
  28. Dialog.Start()
  29. end
  30. function quest_complete2(NPC, Spawn)
  31. SetStepComplete(Spawn, spellbookFrags, 1)
  32. FaceTarget(NPC, Spawn)
  33. Dialog.New(NPC, Spawn)
  34. Dialog.AddDialog("Have you? Let me take a look at that... Yes, this is what we are looking for! Allow me to defray any expenses you a incurred finding this piece. Here you are.")
  35. Dialog.AddVoiceover("voiceover/english/amren_talbot/qey_south/amrentalbot001.mp3", 3750992893, 2423832468)
  36. Dialog.AddOption("Thank you.")
  37. Dialog.Start()
  38. end
  39. function quest_complete(NPC, Spawn)
  40. SetStepComplete(Spawn, ACrumpledNote, 1)
  41. FaceTarget(NPC, Spawn)
  42. Dialog.New(NPC, Spawn)
  43. Dialog.AddDialog("An interesting find, though I doubt it bears much in the realm of truth. Nevertheless, I shall bring this to my superior's attention. I suppose I should grant you token for your time. Here you are.")
  44. Dialog.AddVoiceover("voiceover/english/amren_talbot/qey_south/amrentalbot002.mp3", 2532326758, 3659967005)
  45. Dialog.AddOption("I would appreciate it if you would.")
  46. Dialog.Start()
  47. end