9
3

ataintedSapswillinvader431143.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/ataintedSapswillinvader431143.lua
  3. Script Purpose : Waypoint Path for ataintedSapswillinvader431143.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. MoveToLocation(NPC, 187.19, -4.07, 179.96, 2)
  38. MoveToLocation(NPC, 124.23, -3.68, 181.12, 2)
  39. MoveToLocation(NPC, 118.27, -3.8, 182.15, 2)
  40. MoveToLocation(NPC, 94.77, -4.14, 182.01, 2)
  41. MoveToLocation(NPC, 91.55, -4.29, 181.14, 2)
  42. MoveToLocation(NPC, 87.93, -4.36, 180.96, 2)
  43. MoveToLocation(NPC, 83.07, -4.34, 180.09, 2)
  44. MoveToLocation(NPC, 75.82, -4.48, 180.13, 2)
  45. MoveToLocation(NPC, 68.99, -4.49, 177.68, 2, "waypointsLoop")
  46. end
  47. function waypointsLoop(NPC)
  48. MovementLoopAddLocation(NPC, 60.48, -4, 189.65, 2, 0)
  49. MovementLoopAddLocation(NPC, 72.34, -4.3, 169.86, 2, 0)
  50. MovementLoopAddLocation(NPC, 67.34, -4.28, 154.56, 2, 0)
  51. MovementLoopAddLocation(NPC, 71.9, -4.3, 170.88, 2, 0)
  52. end