ElspethAstley.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : SpawnScripts/QeynosCapitolDistrict/ElspethAstley.lua
  3. Script Purpose : Elspeth Astley
  4. Script Author : Shatou
  5. Script Date : 2020.01.06
  6. Script Notes : Modified w/ new format and VOs included.
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local ALABASTER_FOR_THE_MAGES_QUEST_ID = 501
  10. function spawn(NPC)
  11. SetInfoStructString(NPC, "action_state", "cast_priest_buff_01")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. if GetFactionAmount(Spawn,11)>0 then
  18. Dialog1(NPC, Spawn)
  19. else
  20. end
  21. end
  22. function Dialog1(NPC, Spawn)
  23. -- FaceTarget(NPC, Spawn)
  24. Dialog.New(NPC, Spawn)
  25. Dialog.AddDialog("The winds of time change many things. One thing remains the same, the might of the sorcerer.")
  26. Dialog.AddVoiceover("voiceover/english/elspeth_astley/qey_south/elspethastley000.mp3", 280090355, 624466296)
  27. if GetQuestStep(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID) == 2 then
  28. Dialog.AddOption("I have some alabaster you might be interested in.", "Dialog4")
  29. end
  30. Dialog.AddOption("Thanks for the information. ")
  31. Dialog.Start()
  32. end
  33. function Dialog2(NPC, Spawn)
  34. -- FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. Dialog.AddDialog("Perfect. I'll buy all of it.")
  37. SetStepComplete(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID, 2)
  38. Dialog.AddVoiceover("voiceover/english/elspeth_astley/qey_south/elspethastley002.mp3", 2497015346, 2351178305)
  39. Dialog.AddOption("Thank you.")
  40. Dialog.Start()
  41. end
  42. function Dialog3(NPC, Spawn)
  43. -- FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddDialog("The winds of time change many things. One thing remains the same, the might of the sorcerer.")
  46. Dialog.AddVoiceover("voiceover/english/elspeth_astley/qey_south/elspethastley000.mp3", 280090355, 624466296)
  47. Dialog.AddOption("Thanks for the information. ")
  48. Dialog.Start()
  49. end
  50. function Dialog4(NPC, Spawn)
  51. -- FaceTarget(NPC, Spawn)
  52. Dialog.New(NPC, Spawn)
  53. Dialog.AddDialog("Interesting ... how much are you selling? We can always use more alabaster to make wands.")
  54. Dialog.AddVoiceover("voiceover/english/elspeth_astley/qey_south/elspethastley001.mp3", 1116477690, 1540248539)
  55. Dialog.AddOption("I've five blocks worth.", "Dialog2")
  56. Dialog.Start()
  57. end