9
3

tomb_guard13.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : tomb_guard13.lua
  3. Script Purpose : Waypoint Path for tomb_guard13.lua
  4. Script Author : Devn00b
  5. Script Date : 06/30/2020 05:26:59 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, 217.67, -6.91, -43.16, 2, math.random(0,7))
  37. MovementLoopAddLocation(NPC, 220.71, -6.97, -41.04, 2, math.random(0,7))
  38. MovementLoopAddLocation(NPC, 219.59, -6.92, -42.25, 2, math.random(0,7))
  39. MovementLoopAddLocation(NPC, 216.11, -6.97, -38.93, 2, math.random(0,7))
  40. MovementLoopAddLocation(NPC, 214.19, -6.94, -42.14, 2, math.random(0,7))
  41. MovementLoopAddLocation(NPC, 217.06, -6.91, -42.16, 2, math.random(0,7))
  42. MovementLoopAddLocation(NPC, 220.13, -6.96, -39.72, 2, math.random(0,7))
  43. MovementLoopAddLocation(NPC, 216.3, -6.97, -38.36, 2, math.random(0,7))
  44. MovementLoopAddLocation(NPC, 219.95, -6.94, -41.83, 2, math.random(0,7))
  45. MovementLoopAddLocation(NPC, 216.38, -6.96, -43.76, 2, math.random(0,7))
  46. MovementLoopAddLocation(NPC, 216.15, -6.94, -41.31, 2, math.random(0,7))
  47. MovementLoopAddLocation(NPC, 219.15, -6.89, -42.2, 2, math.random(0,7))
  48. MovementLoopAddLocation(NPC, 218.95, -6.89, -43.24, 2, math.random(0,7))
  49. MovementLoopAddLocation(NPC, 218.96, -6.94, -40.74, 2, math.random(0,7))
  50. MovementLoopAddLocation(NPC, 220.85, -6.97, -40.74, 2, math.random(0,7))
  51. MovementLoopAddLocation(NPC, 218.96, -6.94, -40.74, 2, math.random(0,7))
  52. MovementLoopAddLocation(NPC, 218.95, -6.89, -43.24, 2, math.random(0,7))
  53. MovementLoopAddLocation(NPC, 219.15, -6.89, -42.2, 2, math.random(0,7))
  54. MovementLoopAddLocation(NPC, 216.15, -6.94, -41.31, 2, math.random(0,7))
  55. MovementLoopAddLocation(NPC, 216.38, -6.96, -43.76, 2, math.random(0,7))
  56. MovementLoopAddLocation(NPC, 219.95, -6.94, -41.83, 2, math.random(0,7))
  57. MovementLoopAddLocation(NPC, 216.3, -6.97, -38.36, 2, math.random(0,7))
  58. MovementLoopAddLocation(NPC, 220.13, -6.96, -39.72, 2, math.random(0,7))
  59. MovementLoopAddLocation(NPC, 217.06, -6.91, -42.16, 2, math.random(0,7))
  60. MovementLoopAddLocation(NPC, 214.19, -6.94, -42.14, 2, math.random(0,7))
  61. MovementLoopAddLocation(NPC, 216.11, -6.97, -38.93, 2, math.random(0,7))
  62. MovementLoopAddLocation(NPC, 219.59, -6.92, -42.25, 2, math.random(0,7))
  63. MovementLoopAddLocation(NPC, 220.71, -6.97, -41.04, 2, math.random(0,7))
  64. MovementLoopAddLocation(NPC, 217.67, -6.91, -43.16, 2, math.random(0,7))
  65. end