aCircleIntiate.lua 906 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/CrowsTomb/aCircleIntiate.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.03 08:10:33
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 500, "movement", 1)
  10. end
  11. function movement(NPC, Spawn)
  12. local zone = GetZone(Spawn)
  13. local NPC_Spawn = GetSpawn(NPC)
  14. local initiate_1 = GetSpawnByLocationID(zone, 434504)
  15. local initiate_2 = GetSpawnByLocationID(zone, 434505)
  16. local initiate_3 = GetSpawnByLocationID(zone, 434506)
  17. local initiate_4 = GetSpawnByLocationID(zone, 434507)
  18. if initiate_4 == NPC_Spawn then
  19. MovementLoopAddLocation(initiate_4, -10.91, 0.00, 9.04, 2, 0)
  20. elseif initiate_3 == NPC_Spawn then
  21. MovementLoopAddLocation(initiate_3, -3.64, -0.39, 4.21, 2, 0)
  22. end
  23. end
  24. function hailed(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. end
  27. function respawn(NPC)
  28. spawn(NPC)
  29. end