9
3

tomb_guard17.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : tomb_guard17.lua
  3. Script Purpose : Waypoint Path for tomb_guard17.lua
  4. Script Author : Devn00b
  5. Script Date : 06/30/2020 08:34:47 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 =15
  11. local level2 = 16
  12. local difficulty1 = 2
  13. local hp1 = 290
  14. local power1 = 100
  15. local difficulty2 = 2
  16. local hp2 = 345
  17. local power2 = 110
  18. if Level == level1 then
  19. SpawnSet(NPC, "difficulty", difficulty1)
  20. SpawnSet(NPC, "hp", hp1)
  21. SpawnSet(NPC, "power", power1)
  22. elseif Level == level2
  23. then
  24. SpawnSet(NPC, "difficulty", difficulty2)
  25. SpawnSet(NPC, "hp", hp2)
  26. SpawnSet(NPC, "power", power2)
  27. end
  28. waypoints(NPC)
  29. end
  30. function hailed(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. end
  33. function respawn(NPC)
  34. end
  35. function waypoints(NPC)
  36. MovementLoopAddLocation(NPC, 234.33, -6.86, -119.87, 2, math.random(0,8))
  37. MovementLoopAddLocation(NPC, 252.41, -6.86, -116.19, 2, math.random(0,8))
  38. MovementLoopAddLocation(NPC, 248.55, -6.86, -116.59, 2, math.random(0,8))
  39. MovementLoopAddLocation(NPC, 248.53, -6.86, -112.2, 2, math.random(0,8))
  40. MovementLoopAddLocation(NPC, 242, -6.86, -103.84, 2, math.random(0,8))
  41. MovementLoopAddLocation(NPC, 234.56, -6.86, -106.93, 2, math.random(0,8))
  42. MovementLoopAddLocation(NPC, 234.42, -6.86, -92.27, 2, math.random(0,8))
  43. MovementLoopAddLocation(NPC, 235.21, -6.86, -104.5, 2, math.random(0,8))
  44. MovementLoopAddLocation(NPC, 248.77, -6.86, -109.29, 2, math.random(0,8))
  45. MovementLoopAddLocation(NPC, 243.98, -6.86, -115.74, 2, math.random(0,8))
  46. MovementLoopAddLocation(NPC, 243.14, -6.86, -121.39, 2, math.random(0,8))
  47. MovementLoopAddLocation(NPC, 237.96, -6.86, -103.73, 2, math.random(0,8))
  48. MovementLoopAddLocation(NPC, 245.71, -6.86, -103.4, 2, math.random(0,8))
  49. MovementLoopAddLocation(NPC, 239.16, -6.86, -110.78, 2, math.random(0,8))
  50. MovementLoopAddLocation(NPC, 239.32, -6.86, -105.92, 2, math.random(0,8))
  51. MovementLoopAddLocation(NPC, 249.12, -6.86, -112.43, 2, math.random(0,8))
  52. MovementLoopAddLocation(NPC, 247.03, -6.86, -118.79, 2, math.random(0,8))
  53. MovementLoopAddLocation(NPC, 249.12, -6.86, -112.43, 2, math.random(0,8))
  54. MovementLoopAddLocation(NPC, 239.32, -6.86, -105.92, 2, math.random(0,8))
  55. MovementLoopAddLocation(NPC, 239.16, -6.86, -110.78, 2, math.random(0,8))
  56. MovementLoopAddLocation(NPC, 245.71, -6.86, -103.4, 2, math.random(0,8))
  57. MovementLoopAddLocation(NPC, 237.96, -6.86, -103.73, 2, math.random(0,8))
  58. MovementLoopAddLocation(NPC, 243.14, -6.86, -121.39, 2, math.random(0,8))
  59. MovementLoopAddLocation(NPC, 243.98, -6.86, -115.74, 2, math.random(0,8))
  60. MovementLoopAddLocation(NPC, 248.77, -6.86, -109.29, 2, math.random(0,8))
  61. MovementLoopAddLocation(NPC, 235.21, -6.86, -104.5, 2, math.random(0,8))
  62. MovementLoopAddLocation(NPC, 234.42, -6.86, -92.27, 2, math.random(0,8))
  63. MovementLoopAddLocation(NPC, 234.56, -6.86, -106.93, 2, math.random(0,8))
  64. MovementLoopAddLocation(NPC, 242, -6.86, -103.84, 2, math.random(0,8))
  65. MovementLoopAddLocation(NPC, 248.53, -6.86, -112.2, 2, math.random(0,8))
  66. MovementLoopAddLocation(NPC, 248.55, -6.86, -116.59, 2, math.random(0,8))
  67. MovementLoopAddLocation(NPC, 252.41, -6.86, -116.19, 2, math.random(0,8))
  68. MovementLoopAddLocation(NPC, 234.33, -6.86, -119.87, 2, math.random(0,8))
  69. end