9
3

treeskipper.lua 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. --[[
  2. Script Name : treeskipper.lua
  3. Script Purpose : Waypoint Path for treeskipper.lua
  4. Script Author : Devn00b
  5. Script Date : 04/11/2020 04:12:39 PM
  6. Script Notes : Locations collected from Live - Dialog modified 2022.04.22 Dorbin
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. waypoints(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. if GetFactionAmount(Spawn,11) <0 then
  15. FaceTarget(NPC, Spawn)
  16. PlayFlavor(NPC, "", "", "noway", 0, 0, Spawn)
  17. else
  18. SaySomething(NPC, Spawn)
  19. end
  20. end
  21. function InRange(NPC, Spawn)
  22. if GetFactionAmount(Spawn,11) <0 then
  23. FaceTarget(NPC, Spawn)
  24. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  25. else
  26. chance = MakeRandomInt(1,100)
  27. if chance <=25 then
  28. SaySomething(NPC, Spawn)
  29. end
  30. end
  31. end
  32. function SaySomething(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. local choice = math.random(1,5)
  35. if choice == 1 then
  36. PlayFlavor(NPC, "voiceover/english/human_eco_good_tunarianalliance/ft/eco/good/human_eco_good_tunarianalliance_hail_gm_1bda6347.mp3", "The destructive methods of the Qeynos Guard will ravage that which it seeks to defend.", "nod", 421213855, 4168573173, Spawn)
  37. elseif choice == 2 then
  38. PlayFlavor(NPC, "voiceover/english/human_eco_good_tunarianalliance/ft/eco/good/human_eco_good_tunarianalliance_hail_gm_e274bc0f.mp3", "The mechanical beasts of the Ironforge Exchange belch forth black clouds to choke out life within the forests.", "", 1242578412, 4198131350, Spawn)
  39. elseif choice == 3 then
  40. PlayFlavor(NPC, "voiceover/english/human_eco_good_tunarianalliance/ft/eco/good/human_eco_good_tunarianalliance_hail_gm_c57df74b.mp3", "I fear that the Concordium is unable to control its disciples. If corrupted the sorcerers would surely bring harm to the woodlands and their creatures.", "ponder", 63339104, 2681140716, Spawn)
  41. elseif choice == 4 then
  42. PlayFlavor(NPC, "voiceover/english/human_eco_good_tunarianalliance/ft/eco/good/human_eco_good_tunarianalliance_hail_gm_2c2d0ef6.mp3", "The Tunarian Alliance preserves our memories of the breathing trees and singing streams of Jaggedpine.", "agree", 1912930054, 3530428976, Spawn)
  43. elseif choice == 5 then
  44. PlayFlavor(NPC, "voiceover/english/human_eco_good_tunarianalliance/ft/eco/good/human_eco_good_tunarianalliance_hail_gm_24723d84.mp3", "While the land suffers and cries out for immediate protection the Celestial Watch is content to look to myths and superstitions for our salvation.", "agree", 1704735533, 1025969438, Spawn)
  45. else
  46. end
  47. end
  48. function LeaveRange(NPC, Spawn)
  49. end
  50. function waypoints(NPC)
  51. MovementLoopAddLocation(NPC, 448.85, -20.75, 212.18, 2, 0)
  52. MovementLoopAddLocation(NPC, 448.56, -19.39, 195.8, 2, 1)
  53. MovementLoopAddLocation(NPC, 448.56, -19.39, 195.8, 2, 8,"EcologyEmotes")
  54. MovementLoopAddLocation(NPC, 462.67, -20.87, 199.08, 2, 0)
  55. MovementLoopAddLocation(NPC, 495.29, -11.85, 144.64, 2, 0)
  56. MovementLoopAddLocation(NPC, 527.8, -10.55, 150.67, 2, 0)
  57. MovementLoopAddLocation(NPC, 560.54, -10.58, 151.39, 2, 0)
  58. MovementLoopAddLocation(NPC, 617.98, -12.21, 143.91, 2, 0)
  59. MovementLoopAddLocation(NPC, 619.51, -12.47, 156.58, 2, 0)
  60. MovementLoopAddLocation(NPC, 621.44, -16.61, 198.37, 2, 0)
  61. MovementLoopAddLocation(NPC, 681.93, -19.52, 181.63, 2, 0)
  62. MovementLoopAddLocation(NPC, 691.43, -19.52, 195.66, 2, 0)
  63. MovementLoopAddLocation(NPC, 701.87, -19.53, 192.37, 2, 0)
  64. MovementLoopAddLocation(NPC, 704.66, -19.51, 184.42, 2, 0)
  65. MovementLoopAddLocation(NPC, 706.97, -19.45, 177.25, 2, 0)
  66. MovementLoopAddLocation(NPC, 710.37, -20.39, 164.85, 2, 0)
  67. MovementLoopAddLocation(NPC, 710.58, -20.57, 163.84, 2, 0)
  68. MovementLoopAddLocation(NPC, 713.44, -19.43, 175.98, 2, 0)
  69. MovementLoopAddLocation(NPC, 718.92, -19.62, 185.98, 2, 0)
  70. MovementLoopAddLocation(NPC, 721.15, -19.58, 192.81, 2, 0)
  71. MovementLoopAddLocation(NPC, 711.39, -19.53, 194.73, 2, 0)
  72. MovementLoopAddLocation(NPC, 707.3, -19.54, 193.15, 2, 0)
  73. MovementLoopAddLocation(NPC, 698.38, -19.52, 196.11, 2, 0)
  74. MovementLoopAddLocation(NPC, 688.66, -19.52, 199.3, 2, 0)
  75. MovementLoopAddLocation(NPC, 686.66, -19.52, 214.73, 2, 0)
  76. MovementLoopAddLocation(NPC, 670.13, -19.57, 221.33, 2, 0)
  77. MovementLoopAddLocation(NPC, 649.1, -19.17, 227.69, 2, 0)
  78. MovementLoopAddLocation(NPC, 612.44, -18.36, 236.41, 2, 0)
  79. MovementLoopAddLocation(NPC, 582.25, -17.94, 241.81, 2, 0)
  80. MovementLoopAddLocation(NPC, 559.17, -17.69, 243.04, 2, 0)
  81. MovementLoopAddLocation(NPC, 483.4, -20.64, 240.69, 2, 0)
  82. MovementLoopAddLocation(NPC, 461.95, -21.96, 232.57, 2, 0)
  83. MovementLoopAddLocation(NPC, 449.24, -20.76, 213.14, 2, 0)
  84. MovementLoopAddLocation(NPC, 449.13, -19.36, 195.78, 2, 0)
  85. MovementLoopAddLocation(NPC, 449.24, -20.76, 213.14, 2, 2)
  86. MovementLoopAddLocation(NPC, 449.24, -20.76, 213.14, 2, 8,"EcologyEmotes")
  87. MovementLoopAddLocation(NPC, 461.95, -21.96, 232.57, 2, 0)
  88. MovementLoopAddLocation(NPC, 483.4, -20.64, 240.69, 2, 0)
  89. MovementLoopAddLocation(NPC, 559.17, -17.69, 243.04, 2, 0)
  90. MovementLoopAddLocation(NPC, 582.25, -17.94, 241.81, 2, 0)
  91. MovementLoopAddLocation(NPC, 612.44, -18.36, 236.41, 2, 0)
  92. MovementLoopAddLocation(NPC, 649.1, -19.17, 227.69, 2, 0)
  93. MovementLoopAddLocation(NPC, 670.13, -19.57, 221.33, 2, 0)
  94. MovementLoopAddLocation(NPC, 686.66, -19.52, 214.73, 2, 0)
  95. MovementLoopAddLocation(NPC, 688.66, -19.52, 199.3, 2, 0)
  96. MovementLoopAddLocation(NPC, 698.38, -19.52, 196.11, 2, 0)
  97. MovementLoopAddLocation(NPC, 707.3, -19.54, 193.15, 2, 0)
  98. MovementLoopAddLocation(NPC, 711.39, -19.53, 194.73, 2, 0)
  99. MovementLoopAddLocation(NPC, 721.15, -19.58, 192.81, 2, 0)
  100. MovementLoopAddLocation(NPC, 718.92, -19.62, 185.98, 2, 0)
  101. MovementLoopAddLocation(NPC, 713.44, -19.43, 175.98, 2, 0)
  102. MovementLoopAddLocation(NPC, 710.58, -20.57, 163.84, 2, 0)
  103. MovementLoopAddLocation(NPC, 710.37, -20.39, 164.85, 2, 0)
  104. MovementLoopAddLocation(NPC, 706.97, -19.45, 177.25, 2, 0)
  105. MovementLoopAddLocation(NPC, 704.66, -19.51, 184.42, 2, 0)
  106. MovementLoopAddLocation(NPC, 701.87, -19.53, 192.37, 2, 0)
  107. MovementLoopAddLocation(NPC, 691.43, -19.52, 195.66, 2, 0)
  108. MovementLoopAddLocation(NPC, 681.93, -19.52, 181.63, 2, 0)
  109. MovementLoopAddLocation(NPC, 621.44, -16.61, 198.37, 2, 0)
  110. MovementLoopAddLocation(NPC, 619.51, -12.47, 156.58, 2, 0)
  111. MovementLoopAddLocation(NPC, 617.98, -12.21, 143.91, 2, 0)
  112. MovementLoopAddLocation(NPC, 560.54, -10.58, 151.39, 2, 0)
  113. MovementLoopAddLocation(NPC, 527.8, -10.55, 150.67, 2, 0)
  114. MovementLoopAddLocation(NPC, 495.29, -11.85, 144.64, 2, 0)
  115. MovementLoopAddLocation(NPC, 462.67, -20.87, 199.08, 2, 0)
  116. MovementLoopAddLocation(NPC, 448.56, -19.39, 195.8, 2, 0)
  117. MovementLoopAddLocation(NPC, 448.85, -20.75, 212.18, 2, 0)
  118. end