Highgold.lua 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. --[[
  2. Script Name : Highgold.lua
  3. Script Purpose : Waypoint Path for Highgold.lua
  4. Script Author : Auto Generated
  5. Script Date : 04/08/2020 08:13:18 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. waypoints(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. CheckFaction(NPC, Spawn, "Qeynos")
  18. end
  19. function hailed(NPC, Spawn)
  20. if GetFactionAmount(Spawn,11)<0 then
  21. else
  22. FaceTarget(NPC, Spawn)
  23. local Warland = GetSpawn(NPC,2210266)
  24. if Warland ~=nil then
  25. FaceTarget(Warland,Spawn)
  26. PlayFlavor(Warland, "", "", "attention", 0, 0, Spawn)
  27. end
  28. local Groban = GetSpawn(NPC,2210088)
  29. FaceTarget(NPC, Spawn)
  30. if Groban ~=nil then
  31. FaceTarget(Groban,Spawn)
  32. PlayFlavor(Groban, "", "", "attention", 0, 0, Spawn)
  33. end
  34. FaceTarget(NPC, Spawn)
  35. GenericGuardHail(NPC, Spawn)
  36. end
  37. end
  38. function waypoints(NPC)
  39. MovementLoopAddLocation(NPC, 794.25, -21, -60.3, 2, 0)
  40. MovementLoopAddLocation(NPC, 772.27, -21.61, -59.66, 2, 0)
  41. MovementLoopAddLocation(NPC, 760.59, -21.7, -58.92, 2, 0)
  42. MovementLoopAddLocation(NPC, 739.71, -21.37, -57.96, 2, 0)
  43. MovementLoopAddLocation(NPC, 727.83, -21.35, -59.01, 2, 0)
  44. MovementLoopAddLocation(NPC, 713.7, -20.97, -78.42, 2, 0)
  45. MovementLoopAddLocation(NPC, 691.67, -21.46, -108.83, 2, 0)
  46. MovementLoopAddLocation(NPC, 687.81, -21.1, -115.14, 2, 0)
  47. MovementLoopAddLocation(NPC, 681.96, -21.03, -115.62, 2, 0)
  48. MovementLoopAddLocation(NPC, 679.39, -21.14, -112.78, 2, 0)
  49. MovementLoopAddLocation(NPC, 689.87, -21.54, -99.94, 2, 0)
  50. MovementLoopAddLocation(NPC, 705.26, -21.11, -81.33, 2, 0)
  51. MovementLoopAddLocation(NPC, 717.69, -21.08, -66.29, 2, 0)
  52. MovementLoopAddLocation(NPC, 716.74, -20.84, -25.46, 2, 0)
  53. MovementLoopAddLocation(NPC, 716.53, -20.65, -16.01, 2, 0)
  54. MovementLoopAddLocation(NPC, 709.19, -20.64, -13.58, 2, 0)
  55. MovementLoopAddLocation(NPC, 701.63, -20.64, -13.85, 2, 0)
  56. MovementLoopAddLocation(NPC, 698.89, -20.64, -17.24, 2, 0)
  57. MovementLoopAddLocation(NPC, 699.08, -20.64, -21.61, 2, 0)
  58. MovementLoopAddLocation(NPC, 699.75, -20.64, -23.81, 2, 0)
  59. MovementLoopAddLocation(NPC, 755.76, -20.89, -21.87, 2, 0)
  60. MovementLoopAddLocation(NPC, 760.66, -20.72, -25, 2, 0)
  61. MovementLoopAddLocation(NPC, 756.84, -21.5, -47.79, 2, 0)
  62. MovementLoopAddLocation(NPC, 715.26, -21.4, -50.18, 2, 0)
  63. MovementLoopAddLocation(NPC, 714.68, -21.06, -64.63, 2, 0)
  64. MovementLoopAddLocation(NPC, 754.6, -21.56, -59.25, 2, 0)
  65. MovementLoopAddLocation(NPC, 789.89, -21.15, -55.73, 2, 0)
  66. MovementLoopAddLocation(NPC, 796.71, -20.97, -56.55, 2, 0)
  67. MovementLoopAddLocation(NPC, 789.89, -21.15, -55.73, 2, 0)
  68. MovementLoopAddLocation(NPC, 754.6, -21.56, -59.25, 2, 0)
  69. MovementLoopAddLocation(NPC, 714.68, -21.06, -64.63, 2, 0)
  70. MovementLoopAddLocation(NPC, 715.26, -21.4, -50.18, 2, 0)
  71. MovementLoopAddLocation(NPC, 756.84, -21.5, -47.79, 2, 0)
  72. MovementLoopAddLocation(NPC, 760.66, -20.72, -25, 2, 0)
  73. MovementLoopAddLocation(NPC, 755.76, -20.89, -21.87, 2, 0)
  74. MovementLoopAddLocation(NPC, 699.75, -20.64, -23.81, 2, 0)
  75. MovementLoopAddLocation(NPC, 699.08, -20.64, -21.61, 2, 0)
  76. MovementLoopAddLocation(NPC, 698.89, -20.64, -17.24, 2, 0)
  77. MovementLoopAddLocation(NPC, 701.63, -20.64, -13.85, 2, 0)
  78. MovementLoopAddLocation(NPC, 709.19, -20.64, -13.58, 2, 0)
  79. MovementLoopAddLocation(NPC, 716.53, -20.65, -16.01, 2, 0)
  80. MovementLoopAddLocation(NPC, 716.74, -20.84, -25.46, 2, 0)
  81. MovementLoopAddLocation(NPC, 717.69, -21.08, -66.29, 2, 0)
  82. MovementLoopAddLocation(NPC, 705.26, -21.11, -81.33, 2, 0)
  83. MovementLoopAddLocation(NPC, 689.87, -21.54, -99.94, 2, 0)
  84. MovementLoopAddLocation(NPC, 679.39, -21.14, -112.78, 2, 0)
  85. MovementLoopAddLocation(NPC, 681.96, -21.03, -115.62, 2, 0)
  86. MovementLoopAddLocation(NPC, 687.81, -21.1, -115.14, 2, 0)
  87. MovementLoopAddLocation(NPC, 691.67, -21.46, -108.83, 2, 0)
  88. MovementLoopAddLocation(NPC, 713.7, -20.97, -78.42, 2, 0)
  89. MovementLoopAddLocation(NPC, 727.83, -21.35, -59.01, 2, 0)
  90. MovementLoopAddLocation(NPC, 739.71, -21.37, -57.96, 2, 0)
  91. MovementLoopAddLocation(NPC, 760.59, -21.7, -58.92, 2, 0)
  92. MovementLoopAddLocation(NPC, 772.27, -21.61, -59.66, 2, 0)
  93. MovementLoopAddLocation(NPC, 794.25, -21, -60.3, 2, 0)
  94. end
  95. --[[ Old Path by Devnoob
  96. function waypoints(NPC)
  97. MovementLoopAddLocation(NPC, 679.82, -21.04, -115.09, 2, 0)
  98. MovementLoopAddLocation(NPC, 708.6, -20.89, -66.2, 2, 2)
  99. MovementLoopAddLocation(NPC, 698.37, -20.64, -15.85, 2, 5)
  100. MovementLoopAddLocation(NPC, 739.96, -21.2, -14.13, 2, 8)
  101. MovementLoopAddLocation(NPC, 755.77, -20.81, 7.22, 2, 1)
  102. MovementLoopAddLocation(NPC, 762.62, -21.48, -45.59, 2, 0)
  103. MovementLoopAddLocation(NPC, 779.17, -21.13, -45.52, 2, 0)
  104. MovementLoopAddLocation(NPC, 795.39, -21, -58.93, 2, 12)
  105. MovementLoopAddLocation(NPC, 745.01, -21.46, -58.01, 2, 0)
  106. MovementLoopAddLocation(NPC, 715.91, -21.27, -61.53, 2, 0)
  107. MovementLoopAddLocation(NPC, 676.46, -20.65, -124.59, 2, 17)
  108. MovementLoopAddLocation(NPC, 715.91, -21.27, -61.53, 2, 0)
  109. MovementLoopAddLocation(NPC, 745.01, -21.46, -58.01, 2, 0)
  110. MovementLoopAddLocation(NPC, 793.71 -21.05 -58.65, 2, 9)
  111. MovementLoopAddLocation(NPC, 779.17, -21.13, -45.52, 2, 0)
  112. MovementLoopAddLocation(NPC, 762.62, -21.48, -45.59, 2, 0)
  113. MovementLoopAddLocation(NPC, 757.77, -20.81, 7.22, 2, 0)
  114. MovementLoopAddLocation(NPC, 741.96, -21.2, -14.13, 2, 0)
  115. MovementLoopAddLocation(NPC, 698.37, -20.64, -15.85, 2, 0)
  116. MovementLoopAddLocation(NPC, 710.6, -20.89, -66.2, 2, 0)
  117. MovementLoopAddLocation(NPC, 679.82, -21.04, -115.09, 2, 0)
  118. end
  119. --]]