9
3

aprisoner303824.lua 682 B

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