9
3

aprisonersit.lua 588 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : SpawnScripts/ScaleYard2/aprisonersit.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.08.29 09:08:56
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 50, "InRange", "InRange")
  10. SpawnSet(NPC, "visual_state", 20565)
  11. end
  12. function hailed(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function attacked(NPC)
  18. SpawnSet(NPC, "visual_state", 0)
  19. end
  20. function InRange(NPC, Spawn)
  21. PlayersLevel = GetLevel(Spawn)
  22. SpawnSet(NPC, "level", PlayersLevel)
  23. end