9
3

ElspethAstley.lua 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. local ALABASTER_FOR_THE_MAGES_QUEST_ID = 501
  9. function respawn(NPC)
  10. spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. conversation = CreateConversation()
  15. PlayFlavor(NPC, "voiceover/english/elspeth_astley/qey_south/elspethastley000.mp3", "", "", 280090355, 624466296, Spawn)
  16. if HasQuest(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID) then
  17. if GetQuestStep(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID) == 2 then
  18. AddConversationOption(conversation, "I have some alabaster you might be interested in.", "dlg_0_1")
  19. end
  20. end
  21. AddConversationOption(conversation, "Thanks for the information.")
  22. StartConversation(conversation, NPC, Spawn, "The winds of time change many things. One thing remains the same, the might of the sorcerer.")
  23. end
  24. --[[ QUEST ALABASTER FOR THE MAGES (501) ]]--
  25. function dlg_0_1(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. conversation = CreateConversation()
  28. AddConversationOption(conversation, "I've five blocks worth.", "dlg_0_2")
  29. StartConversation(conversation, NPC, Spawn, "Interesting ... how much are you selling? We can always use more alabaster to make wands.")
  30. end
  31. function dlg_0_2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. conversation = CreateConversation()
  34. SetStepComplete(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID, 2)
  35. AddConversationOption(conversation, "Thank you.")
  36. StartConversation(conversation, NPC, Spawn, "Perfect. I'll buy all of it.")
  37. end
  38. --[[ QUEST END]]--
  39. require "SpawnScripts/Generic/DialogModule"
  40. function spawn(NPC)
  41. end
  42. function respawn(NPC)
  43. spawn(NPC)
  44. end
  45. function hailed(NPC, Spawn)
  46. if GetFactionAmount(Spawn,11)>0 then
  47. Dialog1(NPC, Spawn)
  48. else
  49. end
  50. end
  51. function Dialog1(NPC, Spawn)
  52. -- FaceTarget(NPC, Spawn)
  53. Dialog.New(NPC, Spawn)
  54. Dialog.AddDialog("The winds of time change many things. One thing remains the same, the might of the sorcerer.")
  55. Dialog.AddVoiceover("voiceover/english/elspeth_astley/qey_south/elspethastley000.mp3", 280090355, 624466296)
  56. if GetQuestStep(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID) == 2 then
  57. Dialog.AddOption("I have some alabaster you might be interested in.", "Dialog4")
  58. end
  59. Dialog.AddOption("Thanks for the information. ")
  60. Dialog.Start()
  61. end
  62. function Dialog2(NPC, Spawn)
  63. -- FaceTarget(NPC, Spawn)
  64. Dialog.New(NPC, Spawn)
  65. Dialog.AddDialog("Perfect. I'll buy all of it.")
  66. SetStepComplete(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID, 2)
  67. Dialog.AddVoiceover("voiceover/english/elspeth_astley/qey_south/elspethastley002.mp3", 2497015346, 2351178305)
  68. Dialog.AddOption("Thank you.")
  69. Dialog.Start()
  70. end
  71. function Dialog3(NPC, Spawn)
  72. -- FaceTarget(NPC, Spawn)
  73. Dialog.New(NPC, Spawn)
  74. Dialog.AddDialog("The winds of time change many things. One thing remains the same, the might of the sorcerer.")
  75. Dialog.AddVoiceover("voiceover/english/elspeth_astley/qey_south/elspethastley000.mp3", 280090355, 624466296)
  76. Dialog.AddOption("Thanks for the information. ")
  77. Dialog.Start()
  78. end
  79. function Dialog4(NPC, Spawn)
  80. -- FaceTarget(NPC, Spawn)
  81. Dialog.New(NPC, Spawn)
  82. Dialog.AddDialog("Interesting ... how much are you selling? We can always use more alabaster to make wands.")
  83. Dialog.AddVoiceover("voiceover/english/elspeth_astley/qey_south/elspethastley001.mp3", 1116477690, 1540248539)
  84. Dialog.AddOption("I've five blocks worth.", "Dialog2")
  85. Dialog.Start()
  86. end