aluridcrawler.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : SpawnScripts/WailingCaves/aluridcrawler.lua
  3. Script Author : Premierio015
  4. Script Date : 2023.12.10 11:12:27
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. movement(NPC, Spawn)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function movement(NPC, Spawn)
  20. if GetSpawnLocationID(NPC) == 403397 then
  21. MovementLoopAddLocation(NPC, -23.46, -5.12, -28.84, 2, math.random(16, 24))
  22. MovementLoopAddLocation(NPC, -25.06, -3.08, -29.98, 2, math.random(16, 24))
  23. MovementLoopAddLocation(NPC, -30.18, -4.96, -29.89, 2, math.random(16, 24))
  24. MovementLoopAddLocation(NPC, -37.15, -4.15, -36.34, 2, math.random(16, 24))
  25. MovementLoopAddLocation(NPC, -50.97, -3.78, -44.65, 2, math.random(16, 24))
  26. MovementLoopAddLocation(NPC, -37.15, -4.15, -36.34, 2, math.random(16, 24))
  27. MovementLoopAddLocation(NPC, -48.42, -3.79, -19.38, 2, math.random(16, 24))
  28. MovementLoopAddLocation(NPC, -29.88, -4.97, -15.27, 2, math.random(16, 24))
  29. elseif GetSpawnLocationID(NPC) == 403352 then
  30. MovementLoopAddLocation(NPC, -50.27, -3.80, -44.49, 2, math.random(16, 24))
  31. MovementLoopAddLocation(NPC, -52.07, -3.73, -27.92, 2, math.random(16, 24))
  32. MovementLoopAddLocation(NPC, -44.53, -3.58, -26.17, 2, math.random(16, 24))
  33. MovementLoopAddLocation(NPC, -46.60, -3.55, -24.19, 2, math.random(16, 24))
  34. elseif GetSpawnLocationID(NPC) == 403424 then
  35. MovementLoopAddLocation(NPC, -16.85, -6.07, -48.57, 2, math.random(16, 24))
  36. MovementLoopAddLocation(NPC, -4.73, -7.47, -62.86, 2, math.random(16, 24))
  37. MovementLoopAddLocation(NPC, -13.22, -7.11, -51.78, 2, math.random(16, 24))
  38. MovementLoopAddLocation(NPC, -34.24, -5.00, -56.96, 2, math.random(16, 24))
  39. MovementLoopAddLocation(NPC, -29.02, -5.00, -46.55, 2, math.random(16, 24))
  40. elseif GetSpawnLocationID(NPC) == 403432 then
  41. MovementLoopAddLocation(NPC, -24.61, -5.15, -59.63, 2, math.random(16, 24))
  42. MovementLoopAddLocation(NPC, -25.19, -5.22, -64.05, 2, math.random(16, 24))
  43. MovementLoopAddLocation(NPC, -7.82, -7.33, -57.32, 2, math.random(16, 24))
  44. MovementLoopAddLocation(NPC, -21.45, -5.12, -61.96, 2, math.random(16, 24))
  45. MovementLoopAddLocation(NPC, -28.87, -5.24, -68.30, 2, math.random(16, 24))
  46. end
  47. end