9
3

WatcherMidasTurcotte.lua 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/WatcherMidasTurcotte.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.27 03:10:05
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 11, "InRange", "LeaveRange")
  10. waypoints(NPC)
  11. end
  12. function InRange(NPC,Spawn)
  13. if GetFactionAmount(Spawn,11) <0 then
  14. FaceTarget(NPC, Spawn)
  15. choice = math.random(1,2)
  16. if choice == 1 then
  17. PlayFlavor(NPC, "", "", "shakefist", 2088886924, 3736631596, Spawn)
  18. elseif choice == 2 then
  19. PlayFlavor(NPC, "", "", "heckno", 1584866727, 581589457, Spawn)
  20. end
  21. else
  22. if math.random(1, 100) <= 65 then
  23. FaceTarget(NPC,Spawn)
  24. RandomGreeting(NPC, Spawn)
  25. end
  26. end
  27. end
  28. function respawn(NPC)
  29. spawn(NPC)
  30. end
  31. function hailed(NPC, Spawn)
  32. if GetFactionAmount(Spawn,11) <0 then
  33. FaceTarget(NPC, Spawn)
  34. choice = math.random(1,2)
  35. if choice == 1 then
  36. PlayFlavor(NPC, "", "", "shakefist", 2088886924, 3736631596, Spawn)
  37. elseif choice == 2 then
  38. PlayFlavor(NPC, "", "", "heckno", 1584866727, 581589457, Spawn)
  39. end
  40. else
  41. FaceTarget(NPC,Spawn)
  42. RandomGreeting(NPC, Spawn)
  43. end
  44. end
  45. function RandomGreeting(NPC, Spawn)
  46. local choice = math.random(1, 5)
  47. if choice == 1 then
  48. 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)
  49. elseif choice == 2 then
  50. 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)
  51. elseif choice == 3 then
  52. 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)
  53. elseif choice == 4 then
  54. 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)
  55. elseif choice == 5 then
  56. 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)
  57. end
  58. end
  59. function waypoints(NPC)
  60. MovementLoopAddLocation(NPC, 781.84, -18.81, -79.99, 2, 22)
  61. MovementLoopAddLocation(NPC, 779.87, -20.98, -68.24, 2, 22)
  62. MovementLoopAddLocation(NPC, 788.28, -20.75, -67.48, 2, 22)
  63. MovementLoopAddLocation(NPC, 793.27, -20.81, -66.48, 2, 0)
  64. MovementLoopAddLocation(NPC, 795.7, -20.87, -65.55, 2, 22)
  65. MovementLoopAddLocation(NPC, 800.37, -20.75, -52.84, 2, 22)
  66. MovementLoopAddLocation(NPC, 789.11, -21.08, -62.6, 2, 0)
  67. MovementLoopAddLocation(NPC, 786.11, -19.2, -74.9, 2, 0)
  68. MovementLoopAddLocation(NPC, 788.55, -18.56, -77.81, 2, 22)
  69. MovementLoopAddLocation(NPC, 785.15, -19.94, -72.6, 2, 0)
  70. MovementLoopAddLocation(NPC, 791.92, -19.89, -73.06, 2, 0)
  71. MovementLoopAddLocation(NPC, 800.56, -19.39, -76.39, 2, 22)
  72. MovementLoopAddLocation(NPC, 798.73, -19.64, -74.33, 2, 0)
  73. MovementLoopAddLocation(NPC, 788.47, -18.5, -80.33, 2, 22)
  74. end