9
3

aShinReepawn.lua 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/WailingCaves/aShinReepawn.lua
  3. Script Author : Premierio015
  4. Script Date : 2023.12.10 12:12:34
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC)
  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) == 403734 then
  21. MovementLoopAddLocation(NPC, -43.08, -3.75, -37.87, 2, math.random(16, 24))
  22. MovementLoopAddLocation(NPC, -35.10, -4.56, -35.38, 2, math.random(16, 24))
  23. MovementLoopAddLocation(NPC, -41.61, -3.65, -22.29, 2, math.random(16, 24))
  24. MovementLoopAddLocation(NPC, -54.29, -3.74, -28.69, 2, math.random(16, 24))
  25. MovementLoopAddLocation(NPC, -54.26, -3.84, -37.78, 2, math.random(16, 24))
  26. MovementLoopAddLocation(NPC, -47.56, -3.76, -38.09, 2, math.random(16, 24))
  27. end
  28. end