9
3

aMilitiaguardSarnak.lua 496 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : SpawnScripts/ScaleYard2/aMilitiaguardSarnak.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.08.30 10:08:02
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 50, "InRange", "InRange")
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. PlayersLevel = GetLevel(Spawn)
  18. SpawnSet(NPC, "level", PlayersLevel)
  19. end