9
3

forager.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : forager.lua
  3. Script Purpose : Waypoint Path for forager.lua
  4. Script Author : Devn00b
  5. Script Date : 04/28/2020 03:23:58 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 6
  11. local level2 = 7
  12. local difficulty1 = 6
  13. local hp1 = 150
  14. local power1 = 150
  15. local difficulty2 = 6
  16. local hp2 = 215
  17. local power2 = 215
  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, -98.11, -0.08, -124.37, 2, math.random(0,20))
  38. MovementLoopAddLocation(NPC, -84.68, -0.08, -137.39, 2, math.random(0,20))
  39. MovementLoopAddLocation(NPC, -87.42, -0.13, -142.06, 2, math.random(0,20))
  40. MovementLoopAddLocation(NPC, -77.08, -0.1, -131.49, 2, math.random(0,20))
  41. MovementLoopAddLocation(NPC, -80.02, -0.09, -125.69, 2, math.random(0,20))
  42. MovementLoopAddLocation(NPC, -84.96, -0.07, -119.83, 2, math.random(0,20))
  43. MovementLoopAddLocation(NPC, -84.76, -0.11, -111.47, 2, math.random(0,20))
  44. MovementLoopAddLocation(NPC, -76.65, -0.11, -107.08, 2, math.random(0,20))
  45. MovementLoopAddLocation(NPC, -75.01, -0.11, -103.67, 2, math.random(0,20))
  46. MovementLoopAddLocation(NPC, -66.76, -0.11, -96.59, 2, math.random(0,20))
  47. MovementLoopAddLocation(NPC, -60.48, -0.06, -95.76, 2, math.random(0,20))
  48. MovementLoopAddLocation(NPC, -58.6, -0.11, -92.84, 2, math.random(0,20))
  49. MovementLoopAddLocation(NPC, -58.41, 0.53, -89.35, 2, math.random(0,20))
  50. MovementLoopAddLocation(NPC, -57.42, -0.06, -79.42, 2, math.random(0,20))
  51. MovementLoopAddLocation(NPC, -54.06, -0.09, -75.93, 2, math.random(0,20))
  52. MovementLoopAddLocation(NPC, -57.42, -0.06, -79.42, 2, math.random(0,20))
  53. MovementLoopAddLocation(NPC, -58.41, 0.53, -89.35, 2, math.random(0,20))
  54. MovementLoopAddLocation(NPC, -58.6, -0.11, -92.84, 2, math.random(0,20))
  55. MovementLoopAddLocation(NPC, -60.48, -0.06, -95.76, 2, math.random(0,20))
  56. MovementLoopAddLocation(NPC, -66.76, -0.11, -96.59, 2, math.random(0,20))
  57. MovementLoopAddLocation(NPC, -75.01, -0.11, -103.67, 2, math.random(0,20))
  58. MovementLoopAddLocation(NPC, -76.65, -0.11, -107.08, 2, math.random(0,20))
  59. MovementLoopAddLocation(NPC, -84.76, -0.11, -111.47, 2, math.random(0,20))
  60. MovementLoopAddLocation(NPC, -84.96, -0.07, -119.83, 2, math.random(0,20))
  61. MovementLoopAddLocation(NPC, -80.02, -0.09, -125.69, 2, math.random(0,20))
  62. MovementLoopAddLocation(NPC, -77.08, -0.1, -131.49, 2, math.random(0,20))
  63. MovementLoopAddLocation(NPC, -87.42, -0.13, -142.06, 2, math.random(0,20))
  64. MovementLoopAddLocation(NPC, -84.68, -0.08, -137.39, 2, math.random(0,20))
  65. MovementLoopAddLocation(NPC, -98.11, -0.08, -124.37, 2, math.random(0,20))
  66. end