tomb_guard5.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : tomb_guard5.lua
  3. Script Purpose : Waypoint Path for tomb_guard5.lua
  4. Script Author : Devn00b
  5. Script Date : 06/19/2020 01:50:53 AM
  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, 68, 0.23, -15.84, 2, math.random(0,15))
  37. MovementLoopAddLocation(NPC, 65.43, -0.03, -20.78, 2, math.random(0,15))
  38. MovementLoopAddLocation(NPC, 70.29, 0.06, -16.62, 2, math.random(0,15))
  39. MovementLoopAddLocation(NPC, 71.1, -0.03, -18.77, 2, math.random(0,15))
  40. MovementLoopAddLocation(NPC, 66.33, -0.09, -19.62, 2, math.random(0,15))
  41. MovementLoopAddLocation(NPC, 70.13, 0.21, -15.31, 2, math.random(0,15))
  42. MovementLoopAddLocation(NPC, 68.65, 0.04, -20.28, 2, math.random(0,15))
  43. MovementLoopAddLocation(NPC, 70.24, 0.04, -17.31, 2, math.random(0,15))
  44. MovementLoopAddLocation(NPC, 71.44, 0.02, -17.32, 2, math.random(0,15))
  45. MovementLoopAddLocation(NPC, 71.41, 0, -19.66, 2, math.random(0,15))
  46. MovementLoopAddLocation(NPC, 68.96, -0.03, -19.04, 2, math.random(0,15))
  47. MovementLoopAddLocation(NPC, 66.48, -0.07, -19.77, 2, math.random(0,15))
  48. MovementLoopAddLocation(NPC, 68.37, 0.25, -15.82, 2, math.random(0,15))
  49. MovementLoopAddLocation(NPC, 66.53, 0.3, -15.26, 2, math.random(0,15))
  50. MovementLoopAddLocation(NPC, 71.53, -0.01, -17.95, 2, math.random(0,15))
  51. MovementLoopAddLocation(NPC, 66.53, 0.3, -15.26, 2, math.random(0,15))
  52. MovementLoopAddLocation(NPC, 68.37, 0.25, -15.82, 2, math.random(0,15))
  53. MovementLoopAddLocation(NPC, 66.48, -0.07, -19.77, 2, math.random(0,15))
  54. MovementLoopAddLocation(NPC, 68.96, -0.03, -19.04, 2, math.random(0,15))
  55. MovementLoopAddLocation(NPC, 71.41, 0, -19.66, 2, math.random(0,15))
  56. MovementLoopAddLocation(NPC, 71.44, 0.02, -17.32, 2, math.random(0,15))
  57. MovementLoopAddLocation(NPC, 70.24, 0.04, -17.31, 2, math.random(0,15))
  58. MovementLoopAddLocation(NPC, 68.65, 0.04, -20.28, 2, math.random(0,15))
  59. MovementLoopAddLocation(NPC, 70.13, 0.21, -15.31, 2, math.random(0,15))
  60. MovementLoopAddLocation(NPC, 66.33, -0.09, -19.62, 2, math.random(0,15))
  61. MovementLoopAddLocation(NPC, 71.1, -0.03, -18.77, 2, math.random(0,15))
  62. MovementLoopAddLocation(NPC, 70.29, 0.06, -16.62, 2, math.random(0,15))
  63. MovementLoopAddLocation(NPC, 65.43, -0.03, -20.78, 2, math.random(0,15))
  64. MovementLoopAddLocation(NPC, 68, 0.23, -15.84, 2, math.random(0,15))
  65. end