AmrenTalbot.lua 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. local ACrumpledNote = 5374 -- A Crumpled Note Mages Version
  9. local spellbookFrags = 5485
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "voiceover/english/amren_talbot/qey_south/amrentalbot000.mp3", "", "", 186833269, 2706325328, Spawn)
  19. AddConversationOption(conversation, "I'm not one for thinking about illusions.")
  20. if HasQuest(Spawn, ACrumpledNote) then
  21. AddConversationOption(conversation, "I found this note, I think the mages here at the towers could decipher it.", "quest_complete")
  22. end
  23. if HasQuest(Spawn, spellbookFrags) then
  24. AddConversationOption(conversation, "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. StartConversation(conversation, NPC, Spawn, "Focus is the key to unlocking any illusion. The mind's eye can do many wondrous things, once it focuses.")
  27. end
  28. function quest_complete2(NPC, Spawn)
  29. conversation = CreateConversation()
  30. PlayFlavor(NPC, "voiceover/english/amren_talbot/qey_south/amrentalbot001.mp3", "", "", 3750992893, 2423832468, Spawn)
  31. AddConversationOption(conversation, "Thank you.","Reward2")
  32. StartConversation(conversation, NPC, Spawn, "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. end
  34. function Reward2 (NPC,Spawn)
  35. SetStepComplete(Spawn, spellbookFrags, 1)
  36. end
  37. function Reward1 (NPC,Spawn)
  38. SetStepComplete(Spawn, spellbookFrags, 1)
  39. end
  40. function quest_complete(NPC, Spawn)
  41. conversation = CreateConversation()
  42. PlayFlavor(NPC, "voiceover/english/amren_talbot/qey_south/amrentalbot002.mp3", "", "ponder", 2532326758, 3659967005, Spawn)
  43. AddConversationOption(conversation, "I would appreciate it if you would.","Reward1")
  44. StartConversation(conversation, NPC, Spawn, "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.")
  45. end