ataintedSapswillinvader431148.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/ataintedSapswillinvader431148.lua
  3. Script Purpose : Waypoint Path for ataintedSapswillinvader431148.lua
  4. Script Author : Rylec
  5. Script Date : 11-19-2020 05:12:27
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 1
  11. local level2 = 2
  12. local difficulty1 = 6
  13. local hp1 = 30
  14. local power1 = 25
  15. local difficulty2 = 6
  16. local hp2 = 45
  17. local power2 = 35
  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. spawn(NPC)
  35. end
  36. function waypoints(NPC)
  37. MovementLoopAddLocation(NPC, 157.4, -3.07, 194.98, 2)
  38. MovementLoopAddLocation(NPC, 152.08, -3.25, 192.88, 2)
  39. MovementLoopAddLocation(NPC, 147.79, -3.59, 192.49, 2)
  40. MovementLoopAddLocation(NPC, 132.41, -3.62, 185.18, 2)
  41. MovementLoopAddLocation(NPC, 127.15, -3.8, 184.92, 2)
  42. MovementLoopAddLocation(NPC, 123.55, -3.7, 182.71, 2)
  43. MovementLoopAddLocation(NPC, 118.82, -3.79, 178.85, 2)
  44. MovementLoopAddLocation(NPC, 78.56, -4.36, 157.78, 2)
  45. MovementLoopAddLocation(NPC, 75.75, -4.36, 160.57, 2, 0, "waypointsLoop")
  46. -- MoveToLocation(NPC, 73.31, -4.36, 164.62, 2)
  47. -- MoveToLocation(NPC, 72.34, -4.3, 169.86, 2, "waypointsLoop")
  48. end
  49. function waypointsLoop(NPC)
  50. MovementLoopAddLocation(NPC, 60.48, -4, 189.65, 2, 0)
  51. MovementLoopAddLocation(NPC, 72.34, -4.3, 169.86, 2, 0)
  52. MovementLoopAddLocation(NPC, 67.34, -4.28, 154.56, 2, 0)
  53. MovementLoopAddLocation(NPC, 71.9, -4.3, 170.88, 2, 0)
  54. end