9
3

infected_grave_scorpius2.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : infected_grave_scorpius2.lua
  3. Script Purpose : Waypoint Path for infected_grave_scorpius2.lua
  4. Script Author : Devn00b
  5. Script Date : 06/26/2020 01:31:16 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 =13
  11. local level2 = 14
  12. local difficulty1 = 6
  13. local hp1 = 680
  14. local power1 = 205
  15. local difficulty2 = 6
  16. local hp2 = 795
  17. local power2 = 240
  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, 137.22, -6.92, -97.49, 2, math.random(0,10))
  37. MovementLoopAddLocation(NPC, 147.92, -7.09, -98.72, 2, 0)
  38. MovementLoopAddLocation(NPC, 157.39, -6.44, -106.16, 2, 0)
  39. MovementLoopAddLocation(NPC, 160.99, -6.92, -106.99, 2, 0)
  40. MovementLoopAddLocation(NPC, 182.53, -7.01, -106.98, 2, 0)
  41. MovementLoopAddLocation(NPC, 200.67, -6.47, -120.98, 2, 0)
  42. MovementLoopAddLocation(NPC, 204.9, -6.99, -120.09, 2, 0)
  43. MovementLoopAddLocation(NPC, 220.26, -6.8, -104.45, 2, 0)
  44. MovementLoopAddLocation(NPC, 222.07, -6.32, -84.57, 2, math.random(0,10))
  45. MovementLoopAddLocation(NPC, 220.26, -6.8, -104.45, 2, 0)
  46. MovementLoopAddLocation(NPC, 204.9, -6.99, -120.09, 2, 0)
  47. MovementLoopAddLocation(NPC, 200.67, -6.47, -120.98, 2, 0)
  48. MovementLoopAddLocation(NPC, 182.53, -7.01, -106.98, 2, 0)
  49. MovementLoopAddLocation(NPC, 160.99, -6.92, -106.99, 2, 0)
  50. MovementLoopAddLocation(NPC, 157.39, -6.44, -106.16, 2, 0)
  51. MovementLoopAddLocation(NPC, 147.92, -7.09, -98.72, 2, 0)
  52. MovementLoopAddLocation(NPC, 137.22, -6.92, -97.49, 2, math.random(0,10))
  53. end