9
3

DaylenaTelanthis.lua 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --[[
  2. Script Name : SpawnScripts/Castleview/DaylenaTelanthis.lua
  3. Script Purpose : Daylena Telanthis
  4. Script Author : Scatman\\Dorbin
  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. 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 math.random(0, 100) <= 25 then
  22. -- Talk(NPC, Spawn)
  23. -- end
  24. end
  25. end
  26. function hailed(NPC, Spawn)
  27. if GetFactionAmount(Spawn,11) <0 then
  28. FaceTarget(NPC, Spawn)
  29. FactionChecking(NPC, Spawn, faction)
  30. else
  31. FaceTarget(NPC, Spawn)
  32. Talk(NPC, Spawn)
  33. end
  34. end
  35. function Talk(NPC, Spawn)
  36. local ConcFac = GetFactionAmount(Spawn, 136)
  37. if ConcFac >=30000 then
  38. local choice = math.random(1, 7)
  39. elseif ConcFac >=10000 then
  40. local choice = math.random(1, 6)
  41. else
  42. local choice = math.random(1, 5)
  43. if choice == 1 then
  44. 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)
  45. elseif choice == 2 then
  46. 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)
  47. elseif choice == 3 then
  48. 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)
  49. elseif choice == 4 then
  50. 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)
  51. elseif choice == 5 then
  52. 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)
  53. elseif choice == 6 then
  54. FaceTarget(NPC, Spawn)
  55. 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)
  56. elseif choice == 7 then
  57. FaceTarget(NPC, Spawn)
  58. 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)
  59. end
  60. end
  61. end