aprisonercooking.lua 554 B

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