9
3

ShadySwashbucklerXVII.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/ShadySwashbucklerXVII.lua
  3. Script Author : dorbin
  4. Script Date : 2024.01.13 04:01:42
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Bard = 5855
  10. local Brawler = 5845
  11. local Cleric = 5848
  12. local Crusader = 5846
  13. local Druid = 5849
  14. local Enchanter = 5851
  15. local Predator = 5856
  16. local Rogue = 5857
  17. local Shaman = 5850
  18. local Summoner = 5854
  19. local Warrior = 5847
  20. function spawn(NPC)
  21. SetInfoStructString(NPC, "action_state", "ponder")
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. if HasQuest(Spawn,5858)then
  26. SetStepComplete(Spawn,5858,2)
  27. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_d38d1fff.mp3", "Ah, what have we here? Glad to see you endured the journey here adventurer.", "ponder", 2806352129, 3453714070, Spawn)
  28. elseif HasQuest(Spawn,Bard) or
  29. HasQuest(Spawn,Brawler) or
  30. HasQuest(Spawn,Cleric) or
  31. HasQuest(Spawn,Crusader) or
  32. HasQuest(Spawn,Druid) or
  33. HasQuest(Spawn,Enchanter) or
  34. HasQuest(Spawn,Predator) or
  35. HasQuest(Spawn,Rogue) or
  36. HasQuest(Spawn,Shaman) or
  37. HasQuest(Spawn,Summoner) or
  38. HasQuest(Spawn,Warrior)then
  39. Dialog.New(NPC, Spawn)
  40. Dialog.AddDialog("My apologies, friend. I did not see you there ... What is it you need?")
  41. Dialog.AddVoiceover("voiceover/english/scribe_duvo/qey_elddar/100_scribe_halfling_duvo_callout1_c6eaefe5.mp3", 3948051330, 1166584264)
  42. Dialog.AddOption("I hear you can get me some gear? Here are my papers","Gear")
  43. Dialog.AddOption("Good day to you!")
  44. Dialog.Start()
  45. else
  46. PlayFlavor(NPC, "voiceover/english/scribe_duvo/qey_elddar/100_scribe_halfling_duvo_callout1_c6eaefe5.mp3", "My apologies, friend. I did not see you there ... What is it you need?", "", 3948051330, 1166584264, Spawn)
  47. end
  48. end
  49. function Gear(NPC,Spawn)
  50. if HasQuest(Spawn,Bard) then
  51. SetStepComplete(Spawn,Bard,1)
  52. end
  53. if HasQuest(Spawn,Brawler) then
  54. SetStepComplete(Spawn,Brawler,1)
  55. end
  56. if HasQuest(Spawn,Cleric) then
  57. SetStepComplete(Spawn,Cleric,1)
  58. end
  59. if HasQuest(Spawn,Crusader) then
  60. SetStepComplete(Spawn,Crusader,1)
  61. end
  62. if HasQuest(Spawn,Druid) then
  63. SetStepComplete(Spawn,Druid,1)
  64. end
  65. if HasQuest(Spawn,Enchanter) then
  66. SetStepComplete(Spawn,Enchanter,1)
  67. end
  68. if HasQuest(Spawn,Predator) then
  69. SetStepComplete(Spawn,Predator,1)
  70. end
  71. if HasQuest(Spawn,Rogue) then
  72. SetStepComplete(Spawn,Rogue,1)
  73. end
  74. if HasQuest(Spawn,Shaman) then
  75. SetStepComplete(Spawn,Shaman,1)
  76. end
  77. if HasQuest(Spawn,Summoner) then
  78. SetStepComplete(Spawn,Summoner,1)
  79. end
  80. if HasQuest(Spawn,Warrior) then
  81. SetStepComplete(Spawn,Warrior,1)
  82. end
  83. end
  84. function respawn(NPC)
  85. spawn(NPC)
  86. end