Chains.lua 459 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : SpawnScripts/FreeportBetrayal/Chains.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.25 05:09:35
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 1, "InRange", "LeaveRange")
  10. end
  11. function LeaveRange(NPC,Spawn)
  12. SetPosition(Spawn,-1.05, -1.21, -30.84,355)
  13. CastSpell(Spawn,2550422,1,1,Tayil)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end