KethelinShadowcross.lua 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. --[[
  2. Script Name : SpawnScripts/Castleview/KethelinShadowcross.lua
  3. Script Purpose : Kethelin Shadowcross
  4. Script Author : Scatman
  5. Script Date : 2009.10.03
  6. Script Notes : Edited calling with Daylena Telanthis - Dorbin 4/18/2022
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 8, "InRange", "LeaveRange")
  11. SetInfoStructString(NPC, "action_state", "mood_angry")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. if GetFactionAmount(Spawn,11) <0 then
  18. FaceTarget(NPC, Spawn)
  19. FactionChecking(NPC, Spawn, faction)
  20. else
  21. if MakeRandomInt(0, 100) <= 66 then
  22. choice = MakeRandomInt(1,2)
  23. if choice==1 then
  24. TalkCheck(NPC, Spawn)
  25. elseif choice==2 then
  26. zone = GetZone(NPC)
  27. Daylena = GetSpawnByLocationID(zone,418702)
  28. DaylenaTalkCheck(Daylena,Spawn)
  29. end
  30. end
  31. end
  32. end
  33. function LeaveRange(NPC, Spawn)
  34. end
  35. function hailed(NPC, Spawn)
  36. if GetFactionAmount(Spawn,11) <0 then
  37. FaceTarget(NPC, Spawn)
  38. FactionChecking(NPC, Spawn, faction)
  39. else
  40. FaceTarget(NPC, Spawn)
  41. TalkHail(NPC, Spawn)
  42. end
  43. end
  44. function TalkCheck(NPC, Spawn)
  45. local choice = math.random(1, 5)
  46. if choice == 1 then
  47. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_celestialwatch/ft/eco/good/highelf_eco_good_celestialwatch_hail_gm_1a077d47.mp3", "The Qeynos Guard blindly strikes at the darkness rather than see the opportunity for redemption that lies within even the most lost of us.", "", 970013852, 575367438, Spawn)
  48. elseif choice == 2 then
  49. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_celestialwatch/ft/eco/good/highelf_eco_good_celestialwatch_hail_gm_3af79ac9.mp3", "While their fellow citizens struggle against the tides of evil, the Tunarian Alliance worries itself with the plight of soulless plants and animals.", "", 3394764444, 3959777727, Spawn)
  50. elseif choice == 3 then
  51. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_celestialwatch/ft/eco/good/highelf_eco_good_celestialwatch_hail_gm_87dd538b.mp3", "Were they to encounter a god, the Concordium would drop their staves and bow before the might of a true power.", "", 3531845971, 679110479, Spawn)
  52. elseif choice == 4 then
  53. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_celestialwatch/ft/eco/good/highelf_eco_good_celestialwatch_hail_gm_d1a0f4da.mp3", "The Celestial Watch preserves the rituals of servitude to the gods so that all might experience through worship the return of the ancient deities.", "", 3161458185, 1498528167, Spawn)
  54. elseif choice == 5 then
  55. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_celestialwatch/ft/eco/good/highelf_eco_good_celestialwatch_hail_gm_e796f41.mp3", "The Ironforge Exchange neglects the spiritual through its devotion to the physical materials and pleasures of this world.", "", 1452894482, 3882311847, Spawn, 0)
  56. end
  57. end
  58. function TalkHail(NPC, Spawn)
  59. local choice = math.random(1, 4)
  60. if choice == 1 then
  61. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_celestialwatch/ft/eco/good/highelf_eco_good_celestialwatch_hail_gm_1a077d47.mp3", "The Qeynos Guard blindly strikes at the darkness rather than see the opportunity for redemption that lies within even the most lost of us.", "", 970013852, 575367438, Spawn)
  62. elseif choice == 2 then
  63. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_celestialwatch/ft/eco/good/highelf_eco_good_celestialwatch_hail_gm_3af79ac9.mp3", "While their fellow citizens struggle against the tides of evil, the Tunarian Alliance worries itself with the plight of soulless plants and animals.", "", 3394764444, 3959777727, Spawn)
  64. elseif choice == 3 then
  65. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_celestialwatch/ft/eco/good/highelf_eco_good_celestialwatch_hail_gm_87dd538b.mp3", "Were they to encounter a god, the Concordium would drop their staves and bow before the might of a true power.", "", 3531845971, 679110479, Spawn)
  66. elseif choice == 4 then
  67. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_celestialwatch/ft/eco/good/highelf_eco_good_celestialwatch_hail_gm_d1a0f4da.mp3", "The Celestial Watch preserves the rituals of servitude to the gods so that all might experience through worship the return of the ancient deities.", "", 3161458185, 1498528167, Spawn)
  68. end
  69. end
  70. function DaylenaTalkCheck(Daylena, Spawn)
  71. local ConcFac = GetFactionAmount(Spawn, 136)
  72. if ConcFac >=30000 then
  73. local choice = math.random(1, 7)
  74. elseif ConcFac >=10000 then
  75. local choice = math.random(1, 6)
  76. else
  77. local choice = math.random(1, 5)
  78. if choice == 1 then
  79. PlayFlavor(Daylena, "voiceover/english/highelf_eco_good_concordium/ft/eco/good/highelf_eco_good_concordium_hail_gf_15aa4eed.mp3", "Those who have neither the abilities nor the aspirations to pursue the intellectual arts will find a home at the Ironforge Exchange.", "", 523104392, 3732258776, Spawn)
  80. elseif choice == 2 then
  81. PlayFlavor(Daylena, "voiceover/english/highelf_eco_good_concordium/ft/eco/good/highelf_eco_good_concordium_hail_gf_4121a9b2.mp3", "The Concordium uses ancient and forgotten knowledge to protect us from the shadows that surround Qeynos.", "", 1945306751, 352506246, Spawn)
  82. elseif choice == 3 then
  83. PlayFlavor(Daylena, "voiceover/english/highelf_eco_good_concordium/ft/eco/good/highelf_eco_good_concordium_hail_gf_88bbd1aa.mp3", "The Tunarian Alliance does not see the greater issues beyond individual evils. Their forests might be scorched wastelands and they would still be fending off poachers.", "", 3133325899, 3316523299, Spawn)
  84. elseif choice == 4 then
  85. PlayFlavor(Daylena, "voiceover/english/highelf_eco_good_concordium/ft/eco/good/highelf_eco_good_concordium_hail_gf_987a9a3c.mp3", "While the Celestial Watch futilely awaits word from its forgotten gods the Concordium has harnessed the true power that blazes within each of us.", "", 3806603086, 3205979382, Spawn)
  86. elseif choice == 5 then
  87. PlayFlavor(Daylena, "voiceover/english/highelf_eco_good_concordium/ft/eco/good/highelf_eco_good_concordium_hail_gf_b52cd580.mp3", "The Qeynos Guard cannot defend us from dark forces it neither sees nor understands.", "", 1941375851, 1104708565, Spawn)
  88. elseif choice == 6 then
  89. FaceTarget(Daylena, Spawn)
  90. PlayFlavor(Daylena, "voiceover/english/highelf_eco_good_concordium/ft/eco/good/highelf_eco_good_concordium_10_gf_f5fd7a50.mp3", "To aid the Concordium is to unleash the force for good that burns within us all!", "thank", 3469670242, 3251902799, Spawn)
  91. elseif choice == 7 then
  92. FaceTarget(Daylena, Spawn)
  93. PlayFlavor(Daylena, "voiceover/english/highelf_eco_good_concordium/ft/eco/good/highelf_eco_good_concordium_30_gf_1e49a37f.mp3", "Your couragous actions have assisted the Concordium in its quest for all knowledge!", "cheer", 1170821333, 3893107670, Spawn)
  94. end
  95. end
  96. end