anecrotik.lua 557 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/TempleStreet2/anecrotik.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.08.17 03:08:03
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 20, "InRange", "LeaveRange")
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function InRange(NPC, Spawn)
  18. local PlayersLevel = GetLevel(Spawn)
  19. SpawnSet(NPC, "level", PlayersLevel)
  20. end
  21. function LeaveRange(NPC, Spawn)
  22. end