AmrenTalbot.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. Dialog.New(NPC, Spawn)
  18. Dialog.AddDialog("Focus is the key to unlocking any illusion. The mind's eye can do many wondrous things, once it focuses.")
  19. Dialog.AddVoiceover("voiceover/english/amren_talbot/qey_south/amrentalbot000.mp3", 186833269, 2706325328)
  20. if GetQuestStep(Spawn, ACrumpledNote)==1 then
  21. Dialog.AddOption( "I found this note in the Down Below, I think the mages here at the towers could decipher it.", "quest_complete")
  22. end
  23. if GetQuestStep(Spawn, spellbookFrags)==1 then
  24. 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")
  25. end
  26. Dialog.AddOption("I'm not one for thinking about illusions. ")
  27. Dialog.Start()
  28. end
  29. function quest_complete2(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. Dialog.New(NPC, Spawn)
  32. 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.")
  33. Dialog.AddVoiceover("voiceover/english/amren_talbot/qey_south/amrentalbot001.mp3", 3750992893, 2423832468)
  34. Dialog.AddOption("Thank you.","Reward2")
  35. Dialog.Start()
  36. end
  37. function Reward2 (NPC,Spawn)
  38. SetStepComplete(Spawn, spellbookFrags, 1)
  39. end
  40. function Reward1 (NPC,Spawn)
  41. SetStepComplete(Spawn, spellbookFrags, 1)
  42. end
  43. function quest_complete(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. 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.")
  47. Dialog.AddVoiceover("voiceover/english/amren_talbot/qey_south/amrentalbot002.mp3", 2532326758, 3659967005)
  48. Dialog.AddOption("I would appreciate it if you would.","Reward1")
  49. Dialog.Start()
  50. end