tomb_guard20.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : tomb_guard20.lua
  3. Script Purpose : Waypoint Path for tomb_guard20.lua
  4. Script Author : Devn00b
  5. Script Date : 06/30/2020 09:17:52 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.44, 0, -173.15, 2, math.random(0,3))
  37. MovementLoopAddLocation(NPC, 234.26, 0, -163.07, 2, math.random(0,3))
  38. MovementLoopAddLocation(NPC, 232.29, 0, -163.16, 2, math.random(0,3))
  39. MovementLoopAddLocation(NPC, 237.97, 0, -162.78, 2, math.random(0,3))
  40. MovementLoopAddLocation(NPC, 233.86, 0, -158.27, 2, math.random(0,3))
  41. MovementLoopAddLocation(NPC, 238.25, 0, -158.16, 2, math.random(0,3))
  42. MovementLoopAddLocation(NPC, 238.26, 0, -160.88, 2, math.random(0,3))
  43. MovementLoopAddLocation(NPC, 233.68, 0, -160, 2, math.random(0,3))
  44. MovementLoopAddLocation(NPC, 234.69, 0, -159.85, 2, math.random(0,3))
  45. MovementLoopAddLocation(NPC, 236.06, 0, -173.58, 2, math.random(0,3))
  46. MovementLoopAddLocation(NPC, 235.61, 0, -160.07, 2, math.random(0,3))
  47. MovementLoopAddLocation(NPC, 236.06, 0, -173.58, 2, math.random(0,3))
  48. MovementLoopAddLocation(NPC, 234.69, 0, -159.85, 2, math.random(0,3))
  49. MovementLoopAddLocation(NPC, 233.68, 0, -160, 2, math.random(0,3))
  50. MovementLoopAddLocation(NPC, 238.26, 0, -160.88, 2, math.random(0,3))
  51. MovementLoopAddLocation(NPC, 238.25, 0, -158.16, 2, math.random(0,3))
  52. MovementLoopAddLocation(NPC, 233.86, 0, -158.27, 2, math.random(0,3))
  53. MovementLoopAddLocation(NPC, 237.97, 0, -162.78, 2, math.random(0,3))
  54. MovementLoopAddLocation(NPC, 232.29, 0, -163.16, 2, math.random(0,3))
  55. MovementLoopAddLocation(NPC, 234.26, 0, -163.07, 2, math.random(0,3))
  56. MovementLoopAddLocation(NPC, 234.44, 0, -173.15, 2, math.random(0,3))
  57. end