erwin.lua 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. --[[
  2. Script Name : erwin.lua
  3. Script Purpose : Waypoint Path for erwin.lua
  4. Script Author : Devn00b
  5. Script Date : 04/11/2020 02:39:02 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. dofile("SpawnScripts/Generic/ExpelNonCitizen.lua")
  10. function spawn(NPC)
  11. AddTimer(NPC,2000,"waypoints")
  12. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  13. end
  14. function InRange(NPC, Spawn)
  15. NonCitizen(NPC,Spawn)
  16. if math.random(0, 100) <= 25 and GetFactionAmount(Spawn,11) >20000 then
  17. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/guard/human_guard_service_good_1_hail_gm_c865a827.mp3", "Duty above all else, citizen, except honor!", "scold", 4141262779, 4227030045, Spawn, 0)
  18. else
  19. CheckFaction(NPC, Spawn, "Qeynos")
  20. end
  21. end
  22. function hailed(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. GenericGuardHail(NPC, Spawn)
  25. end
  26. function respawn(NPC)
  27. spawn(NPC)
  28. end
  29. function waypoints(NPC)
  30. MovementLoopAddLocation(NPC, 456.43, -21.01, 215.59, 2, 0)
  31. MovementLoopAddLocation(NPC, 456.63, -21.75, 229.75, 2, 0)
  32. MovementLoopAddLocation(NPC, 452.71, -21.92, 243.31, 2, 0)
  33. MovementLoopAddLocation(NPC, 447.6, -21.83, 254.94, 2, 6)
  34. MovementLoopAddLocation(NPC, 450.17, -21.77, 248.25, 2, 0)
  35. MovementLoopAddLocation(NPC, 457.59, -21.63, 228.65, 2, 0)
  36. MovementLoopAddLocation(NPC, 472.52, -21.05, 193.91, 2, 0)
  37. MovementLoopAddLocation(NPC, 489.21, -13.79, 154.34, 2, 0)
  38. MovementLoopAddLocation(NPC, 486.95, -11.61, 147.57, 2, 6)
  39. MovementLoopAddLocation(NPC, 488.3, -13.58, 153.83, 2, 0)
  40. MovementLoopAddLocation(NPC, 474.7, -20.59, 187.88, 2, 0)
  41. MovementLoopAddLocation(NPC, 473.42, -20.94, 192.16, 2, 0)
  42. MovementLoopAddLocation(NPC, 476.75, -20.94, 195.61, 2, 0)
  43. MovementLoopAddLocation(NPC, 514.13, -15.61, 206.43, 2, 0)
  44. MovementLoopAddLocation(NPC, 535.08, -15.41, 209.16, 2, 0)
  45. MovementLoopAddLocation(NPC, 571.87, -15.69, 207.42, 2, 0)
  46. MovementLoopAddLocation(NPC, 606.84, -15.73, 203.11, 2, 0)
  47. MovementLoopAddLocation(NPC, 650.97, -16.96, 191.6, 2, 0)
  48. MovementLoopAddLocation(NPC, 680.39, -19.44, 185.63, 2, 6)
  49. MovementLoopAddLocation(NPC, 655.94, -17.33, 190.57, 2, 0)
  50. MovementLoopAddLocation(NPC, 595.2, -15.89, 204.5, 2, 0)
  51. MovementLoopAddLocation(NPC, 558.82, -15.42, 208.86, 2, 0)
  52. MovementLoopAddLocation(NPC, 506.33, -15.57, 205.78, 2, 0)
  53. MovementLoopAddLocation(NPC, 492.54, -17.13, 202.42, 2, 0)
  54. MovementLoopAddLocation(NPC, 473.19, -21.14, 195.01, 2, 0)
  55. MovementLoopAddLocation(NPC, 470.75, -21.14, 196.68, 2, 0)
  56. MovementLoopAddLocation(NPC, 463.51, -21.2, 209.14, 2, 0)
  57. end
  58. --[[Attempt1 of Patrol (too broad)
  59. function waypoints(NPC)
  60. MovementLoopAddLocation(NPC, 454.74, -20.93, 213.81, 2, 0)
  61. MovementLoopAddLocation(NPC, 466.9, -21.19, 202.46, 2, 0)
  62. MovementLoopAddLocation(NPC, 471.23, -21.11, 195.84, 2, 0)
  63. MovementLoopAddLocation(NPC, 475.29, -21.06, 195.68, 2, 0)
  64. MovementLoopAddLocation(NPC, 491.39, -17.34, 200.47, 2, 0)
  65. MovementLoopAddLocation(NPC, 501.53, -15.79, 205.01, 2, 0)
  66. MovementLoopAddLocation(NPC, 519.53, -15.61, 207.07, 2, 0)
  67. MovementLoopAddLocation(NPC, 536.01, -15.34, 210.78, 2, 0)
  68. MovementLoopAddLocation(NPC, 570.85, -15.66, 208.71, 2, 0)
  69. MovementLoopAddLocation(NPC, 614.71, -16.09, 201.55, 2, 0)
  70. MovementLoopAddLocation(NPC, 650.02, -16.93, 191.85, 2, 0)
  71. MovementLoopAddLocation(NPC, 669.25, -18.71, 186.5, 2, 0)
  72. MovementLoopAddLocation(NPC, 682.46, -19.52, 183.74, 2, 0)
  73. MovementLoopAddLocation(NPC, 686.8, -19.52, 188.12, 2, 0)
  74. MovementLoopAddLocation(NPC, 689.5, -19.52, 193.53, 2, 0)
  75. MovementLoopAddLocation(NPC, 694.3, -19.52, 194.77, 2, 0)
  76. MovementLoopAddLocation(NPC, 704.89, -19.54, 191.44, 2, 0)
  77. MovementLoopAddLocation(NPC, 704.3, -19.47, 180.97, 2, 0)
  78. MovementLoopAddLocation(NPC, 703.94, -19.47, 176.94, 2, 0)
  79. MovementLoopAddLocation(NPC, 686.62, -20.13, 166.55, 2, 0)
  80. MovementLoopAddLocation(NPC, 678.22, -20.82, 156.41, 2, 0)
  81. MovementLoopAddLocation(NPC, 669.82, -21.29, 140.37, 2, 0)
  82. MovementLoopAddLocation(NPC, 665.59, -21.22, 103.62, 2, 0)
  83. MovementLoopAddLocation(NPC, 667.42, -21.31, 123.11, 2, 0)
  84. MovementLoopAddLocation(NPC, 670.61, -21.26, 143.62, 2, 0)
  85. MovementLoopAddLocation(NPC, 682.76, -20.38, 163.53, 2, 0)
  86. MovementLoopAddLocation(NPC, 702.26, -19.55, 174.34, 2, 0)
  87. MovementLoopAddLocation(NPC, 720.78, -19.64, 183.64, 2, 0)
  88. MovementLoopAddLocation(NPC, 724.47, -19.62, 193.34, 2, 0)
  89. MovementLoopAddLocation(NPC, 717.08, -19.52, 195.13, 2, 0)
  90. MovementLoopAddLocation(NPC, 709.49, -19.53, 196.2, 2, 0)
  91. MovementLoopAddLocation(NPC, 703.74, -19.53, 192.74, 2, 0)
  92. MovementLoopAddLocation(NPC, 692.03, -19.52, 196.09, 2, 0)
  93. MovementLoopAddLocation(NPC, 689.23, -19.52, 196.91, 2, 0)
  94. MovementLoopAddLocation(NPC, 683.03, -19.49, 215.78, 2, 0)
  95. MovementLoopAddLocation(NPC, 677.54, -19.73, 221.69, 2, 0)
  96. MovementLoopAddLocation(NPC, 655.7, -19.04, 228.28, 2, 0)
  97. MovementLoopAddLocation(NPC, 628.85, -18.75, 234.62, 2, 0)
  98. MovementLoopAddLocation(NPC, 608.3, -18.1, 239.05, 2, 0)
  99. MovementLoopAddLocation(NPC, 565.43, -17.73, 245.68, 2, 0)
  100. MovementLoopAddLocation(NPC, 562.49, -17.51, 238.05, 2, 0)
  101. MovementLoopAddLocation(NPC, 558.82, -17.12, 230.47, 2, 0)
  102. MovementLoopAddLocation(NPC, 556.95, -15.31, 218.53, 2, 0)
  103. MovementLoopAddLocation(NPC, 556.71, -15.12, 213.96, 2, 0)
  104. MovementLoopAddLocation(NPC, 554.18, -15.27, 212.18, 2, 0)
  105. MovementLoopAddLocation(NPC, 524.61, -15.55, 208.65, 2, 0)
  106. MovementLoopAddLocation(NPC, 493.74, -16.93, 202.29, 2, 0)
  107. MovementLoopAddLocation(NPC, 474.12, -21.11, 194.42, 2, 0)
  108. MovementLoopAddLocation(NPC, 458.14, -20.55, 184.01, 2, 0)
  109. MovementLoopAddLocation(NPC, 441.9, -20.49, 176.88, 2, 0)
  110. MovementLoopAddLocation(NPC, 435.25, -20.61, 181.11, 2, 0)
  111. MovementLoopAddLocation(NPC, 435.58, -20.61, 193.92, 2, 0)
  112. MovementLoopAddLocation(NPC, 447.2, -20.68, 209.48, 2, 0)
  113. end
  114. function waypoints(NPC) DEVNOOB PATROL
  115. MovementLoopAddLocation(NPC, 698.34, -19.9, 131.15, 2, 0)
  116. MovementLoopAddLocation(NPC, 677.48, -21.02, 142.28, 2, 0)
  117. MovementLoopAddLocation(NPC, 680.55, -20.76, 155.63, 2, 0)
  118. MovementLoopAddLocation(NPC, 704.73, -19.48, 175.59, 2, 0)
  119. MovementLoopAddLocation(NPC, 703.89, -19.54, 189.78, 2, 0)
  120. MovementLoopAddLocation(NPC, 692.1, -19.52, 195.98, 2, 0)
  121. MovementLoopAddLocation(NPC, 679.77, -19.76, 221.54, 2, 0)
  122. MovementLoopAddLocation(NPC, 671.72, -19.66, 223.75, 2, 0)
  123. MovementLoopAddLocation(NPC, 686.27, -20.49, 267.75, 2, 30)
  124. MovementLoopAddLocation(NPC, 671.72, -19.66, 223.75, 2, 0)
  125. MovementLoopAddLocation(NPC, 679.77, -19.76, 221.54, 2, 0)
  126. MovementLoopAddLocation(NPC, 692.1, -19.52, 195.98, 2, 0)
  127. MovementLoopAddLocation(NPC, 703.89, -19.54, 189.78, 2, 0)
  128. MovementLoopAddLocation(NPC, 704.73, -19.48, 175.59, 2, 0)
  129. MovementLoopAddLocation(NPC, 680.55, -20.76, 155.63, 2, 0)
  130. MovementLoopAddLocation(NPC, 677.48, -21.02, 142.28, 2, 0)
  131. MovementLoopAddLocation(NPC, 698.34, -19.9, 131.15, 2, 30)
  132. end
  133. ]]--