tomb_guard.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : tomb_guard.lua
  3. Script Purpose : Waypoint Path for tomb_guard.lua
  4. Script Author : Devn00b
  5. Script Date : 06/12/2020 12:02:27 AM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 =14
  11. local level2 = 15
  12. local difficulty1 = 6
  13. local hp1 = 795
  14. local power1 = 240
  15. local difficulty2 = 6
  16. local hp2 = 920
  17. local power2 = 270
  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, -8.84, -0.09, -115.71, 2, math.random(0,5))
  37. MovementLoopAddLocation(NPC, -14.17, -0.15, -113.54, 2, math.random(0,10))
  38. MovementLoopAddLocation(NPC, -10.81, 0.32, -113.11, 2, math.random(0,10))
  39. MovementLoopAddLocation(NPC, -12.87, -0.09, -115.28, 2, math.random(0,10))
  40. MovementLoopAddLocation(NPC, -14.03, -0.14, -112.44, 2, math.random(0,10))
  41. MovementLoopAddLocation(NPC, -9.53, -0.06, -115.85, 2, math.random(0,10))
  42. MovementLoopAddLocation(NPC, -11.59, 0.21, -115.29, 2, math.random(0,10))
  43. MovementLoopAddLocation(NPC, -9.63, 0.21, -114.72, 2, math.random(0,10))
  44. MovementLoopAddLocation(NPC, -11.59, 0.21, -115.29, 2, math.random(0,10))
  45. MovementLoopAddLocation(NPC, -9.53, -0.06, -115.85, 2, math.random(0,10))
  46. MovementLoopAddLocation(NPC, -14.03, -0.14, -112.44, 2, math.random(0,10))
  47. MovementLoopAddLocation(NPC, -12.87, -0.09, -115.28, 2, math.random(0,10))
  48. MovementLoopAddLocation(NPC, -10.81, 0.32, -113.11, 2, math.random(0,10))
  49. MovementLoopAddLocation(NPC, -14.17, -0.15, -113.54, 2, math.random(0,10))
  50. MovementLoopAddLocation(NPC, -8.84, -0.09, -115.71, 2, math.random(0,10))
  51. end