9
3

OctaviusSyntral.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : SpawnScripts/NorthFreeport/OctaviusSyntral.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.19 12:06:53
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. if GetFactionAmount(Spawn,12)<0 then
  16. PlayFlavor(NPC, "","", "shakefist", 0, 0, Spawn)
  17. else
  18. Dialog3(NPC, Spawn)
  19. end
  20. end
  21. function Dialog1(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. Dialog.New(NPC, Spawn)
  24. Dialog.AddDialog("Well my services don't come cheap. The cost involved would equal roughly twice what the local vendors would pay to get rid of the spell.")
  25. Dialog.AddOption("Pricey, but better then letting it go to waste.")
  26. Dialog.AddOption("Maybe some other time.")
  27. Dialog.Start()
  28. end
  29. function Dialog2(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. Dialog.New(NPC, Spawn)
  32. Dialog.AddDialog("As a service to the Overlord, I can transcribe certain Master scrolls that would otherwise be useless to citizens of Freeport.")
  33. Dialog.AddOption("Which scrolls do you consider useless?", "Dialog4")
  34. Dialog.Start()
  35. end
  36. function Dialog3(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. Dialog.New(NPC, Spawn)
  39. Dialog.AddDialog("Greetings Citizen. Are you in need of my transcription services?")
  40. Dialog.AddOption("Transcription services?", "Dialog2")
  41. Dialog.AddOption("No thanks.")
  42. Dialog.Start()
  43. end
  44. function Dialog4(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. Dialog.New(NPC, Spawn)
  47. Dialog.AddDialog("My specialties include transcription of Conjuror, Illusionist, Mystic, Monk, Paladin, Ranger, Swashbuckler and Templar scrolls. The results deliver a scroll useable by a class in Freeport, of the equivalent skill level.")
  48. Dialog.AddOption("I assume there's a cost involved?", "Dialog1")
  49. Dialog.Start()
  50. end