9
3

DaylenaTelanthis.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : SpawnScripts/Castleview/DaylenaTelanthis.lua
  3. Script Purpose : Daylena Telanthis
  4. Script Author : Scatman
  5. Script Date : 2009.10.03
  6. Script Notes : Added faction check - 2022.04.18 Dorbin
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. if GetFactionAmount(Spawn,11) <0 then
  17. FaceTarget(NPC, Spawn)
  18. FactionChecking(NPC, Spawn, faction)
  19. -- else
  20. -- if math.random(0, 100) <= 25 then
  21. -- Talk(NPC, Spawn)
  22. -- end
  23. end
  24. end
  25. function hailed(NPC, Spawn)
  26. if GetFactionAmount(Spawn,11) <0 then
  27. FaceTarget(NPC, Spawn)
  28. FactionChecking(NPC, Spawn, faction)
  29. else
  30. FaceTarget(NPC, Spawn)
  31. Talk(NPC, Spawn)
  32. end
  33. end
  34. function Talk(NPC, Spawn)
  35. local ConcFac = GetFactionAmount(Spawn, 136)
  36. if ConcFac >=30000 then
  37. local choice = math.random(1, 7)
  38. elseif ConcFac >=10000 then
  39. local choice = math.random(1, 6)
  40. else
  41. local choice = math.random(1, 5)
  42. if choice == 1 then
  43. PlayFlavor(NPC, "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)
  44. elseif choice == 2 then
  45. PlayFlavor(NPC, "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)
  46. elseif choice == 3 then
  47. PlayFlavor(NPC, "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)
  48. elseif choice == 4 then
  49. PlayFlavor(NPC, "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)
  50. elseif choice == 5 then
  51. PlayFlavor(NPC, "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)
  52. elseif choice == 6 then
  53. FaceTarget(NPC, Spawn)
  54. PlayFlavor(NPC, "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)
  55. elseif choice == 7 then
  56. FaceTarget(NPC, Spawn)
  57. PlayFlavor(NPC, "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)
  58. end
  59. end
  60. end