9
3

Warland.lua 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. --[[
  2. Script Name : Warland.lua
  3. Script Purpose : Waypoint Path for Warland.lua
  4. Script Author : Auto Generated
  5. Script Date : 04/08/2020 10:30:14 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. dofile("SpawnScripts/Generic/ExpelNonCitizen.lua")
  9. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  10. function spawn(NPC)
  11. AddTimer(NPC,1900,"waypoints")
  12. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function InRange(NPC, Spawn)
  18. NonCitizen(NPC,Spawn)
  19. if GetFactionAmount(Spawn,11) >20000 then
  20. if math.random(1,100)<25 then
  21. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/guard/human_guard_service_good_1_hail_gm_ee473c11.mp3", "Good day to you, citizen. All preserve Queen Antonia.", "salute", 2997871263, 2912813719, Spawn, 0)
  22. end
  23. end
  24. end
  25. function LeaveRange(NPC, Spawn)
  26. end
  27. function hailed(NPC, Spawn)
  28. if GetFactionAmount(Spawn,11)<0 then
  29. else
  30. FaceTarget(NPC, Spawn)
  31. GenericGuardHail(NPC,Spawn)
  32. local Groban = GetSpawn(NPC,2210088)
  33. if Groban ~=nil then
  34. FaceTarget(Groban,Spawn)
  35. PlayFlavor(Groban, "", "", "attention", 0, 0, Spawn)
  36. end
  37. local Highgold = GetSpawn(NPC,2210087)
  38. if Highgold ~=nil then
  39. FaceTarget(Highgold,Spawn)
  40. PlayFlavor(Highgold, "", "", "attention", 0, 0, Spawn)
  41. end
  42. FaceTarget(NPC, Spawn)
  43. GenericGuardHail(NPC, Spawn)
  44. end
  45. end
  46. function respawn(NPC)
  47. spawn(NPC)
  48. end
  49. --[[Old path by Devnoob
  50. function waypoints(NPC)
  51. MovementLoopAddLocation(NPC, 705.82, -20.64, -22.54, 2, 0)
  52. MovementLoopAddLocation(NPC, 740.93, -21.44, -22.18, 2, 0)
  53. MovementLoopAddLocation(NPC, 757.61, -20.88, -35.3, 2, 0)
  54. MovementLoopAddLocation(NPC, 764.83, -21.84, -55.37, 2, 0)
  55. MovementLoopAddLocation(NPC, 727.1, -21.24, -63.05, 2, 0)
  56. MovementLoopAddLocation(NPC, 710.11, -21.06, -83.53, 2, 20)
  57. MovementLoopAddLocation(NPC, 727.1, -21.24, -63.05, 2, 0)
  58. MovementLoopAddLocation(NPC, 764.83, -21.84, -55.37, 2, 0)
  59. MovementLoopAddLocation(NPC, 757.61, -20.88, -35.3, 2, 0)
  60. MovementLoopAddLocation(NPC, 740.93, -21.44, -22.18, 2, 0)
  61. MovementLoopAddLocation(NPC, 705.82, -20.64, -22.54, 2, 0)
  62. end
  63. --]]
  64. function waypoints(NPC)
  65. MovementLoopAddLocation(NPC, 794.25, -21, -60.3, 2, 2)
  66. MovementLoopAddLocation(NPC, 772.27, -21.61, -59.66, 2, 0)
  67. MovementLoopAddLocation(NPC, 760.59, -21.7, -58.92, 2, 0)
  68. MovementLoopAddLocation(NPC, 739.71, -21.37, -57.96, 2, 0)
  69. MovementLoopAddLocation(NPC, 727.83, -21.35, -59.01, 2, 0)
  70. MovementLoopAddLocation(NPC, 713.7, -20.97, -78.42, 2, 0)
  71. MovementLoopAddLocation(NPC, 691.67, -21.46, -108.83, 2, 0)
  72. MovementLoopAddLocation(NPC, 687.81, -21.1, -115.14, 2, 0)
  73. MovementLoopAddLocation(NPC, 681.96, -21.03, -115.62, 2, 0)
  74. MovementLoopAddLocation(NPC, 679.39, -21.14, -112.78, 2, 0)
  75. MovementLoopAddLocation(NPC, 689.87, -21.54, -99.94, 2, 0)
  76. MovementLoopAddLocation(NPC, 705.26, -21.11, -81.33, 2, 0)
  77. MovementLoopAddLocation(NPC, 717.69, -21.08, -66.29, 2, 0)
  78. MovementLoopAddLocation(NPC, 716.74, -20.84, -25.46, 2, 0)
  79. MovementLoopAddLocation(NPC, 716.53, -20.65, -16.01, 2, 0)
  80. MovementLoopAddLocation(NPC, 709.19, -20.64, -13.58, 2, 0)
  81. MovementLoopAddLocation(NPC, 701.63, -20.64, -13.85, 2, 0)
  82. MovementLoopAddLocation(NPC, 698.89, -20.64, -17.24, 2, 0)
  83. MovementLoopAddLocation(NPC, 699.08, -20.64, -21.61, 2, 0)
  84. MovementLoopAddLocation(NPC, 699.75, -20.64, -23.81, 2, 0)
  85. MovementLoopAddLocation(NPC, 755.76, -20.89, -21.87, 2, 0)
  86. MovementLoopAddLocation(NPC, 760.66, -20.72, -25, 2, 0)
  87. MovementLoopAddLocation(NPC, 756.84, -21.5, -47.79, 2, 0)
  88. MovementLoopAddLocation(NPC, 715.26, -21.4, -50.18, 2, 0)
  89. MovementLoopAddLocation(NPC, 714.68, -21.06, -64.63, 2, 0)
  90. MovementLoopAddLocation(NPC, 754.6, -21.56, -59.25, 2, 0)
  91. MovementLoopAddLocation(NPC, 789.89, -21.15, -55.73, 2, 0)
  92. MovementLoopAddLocation(NPC, 796.71, -20.97, -56.55, 2, 0)
  93. MovementLoopAddLocation(NPC, 789.89, -21.15, -55.73, 2, 0)
  94. MovementLoopAddLocation(NPC, 754.6, -21.56, -59.25, 2, 0)
  95. MovementLoopAddLocation(NPC, 714.68, -21.06, -64.63, 2, 0)
  96. MovementLoopAddLocation(NPC, 715.26, -21.4, -50.18, 2, 0)
  97. MovementLoopAddLocation(NPC, 756.84, -21.5, -47.79, 2, 0)
  98. MovementLoopAddLocation(NPC, 760.66, -20.72, -25, 2, 0)
  99. MovementLoopAddLocation(NPC, 755.76, -20.89, -21.87, 2, 0)
  100. MovementLoopAddLocation(NPC, 699.75, -20.64, -23.81, 2, 0)
  101. MovementLoopAddLocation(NPC, 699.08, -20.64, -21.61, 2, 0)
  102. MovementLoopAddLocation(NPC, 698.89, -20.64, -17.24, 2, 0)
  103. MovementLoopAddLocation(NPC, 701.63, -20.64, -13.85, 2, 0)
  104. MovementLoopAddLocation(NPC, 709.19, -20.64, -13.58, 2, 0)
  105. MovementLoopAddLocation(NPC, 716.53, -20.65, -16.01, 2, 0)
  106. MovementLoopAddLocation(NPC, 716.74, -20.84, -25.46, 2, 0)
  107. MovementLoopAddLocation(NPC, 717.69, -21.08, -66.29, 2, 0)
  108. MovementLoopAddLocation(NPC, 705.26, -21.11, -81.33, 2, 0)
  109. MovementLoopAddLocation(NPC, 689.87, -21.54, -99.94, 2, 0)
  110. MovementLoopAddLocation(NPC, 679.39, -21.14, -112.78, 2, 0)
  111. MovementLoopAddLocation(NPC, 681.96, -21.03, -115.62, 2, 0)
  112. MovementLoopAddLocation(NPC, 687.81, -21.1, -115.14, 2, 0)
  113. MovementLoopAddLocation(NPC, 691.67, -21.46, -108.83, 2, 0)
  114. MovementLoopAddLocation(NPC, 713.7, -20.97, -78.42, 2, 0)
  115. MovementLoopAddLocation(NPC, 727.83, -21.35, -59.01, 2, 0)
  116. MovementLoopAddLocation(NPC, 739.71, -21.37, -57.96, 2, 0)
  117. MovementLoopAddLocation(NPC, 760.59, -21.7, -58.92, 2, 0)
  118. MovementLoopAddLocation(NPC, 772.27, -21.61, -59.66, 2, 0)
  119. MovementLoopAddLocation(NPC, 794.25, -21, -60.3, 2, 0)
  120. end