9
3

RonicustheRed.lua 856 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/The Sepulcher of Jahnda/RonicustheRed.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.22 07:10:52
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddSpawnAccess(NPC, NPC)
  10. SetPlayerProximityFunction(NPC, 10, "SpawnAccess", "SpawnAccess")
  11. end
  12. function SpawnAccess(NPC, Spawn)
  13. if GetTempVariable(Spawn, "MobAccess") == "true" then
  14. SpawnSet(NPC, "faction", 1)
  15. AddSpawnAccess(NPC, Spawn)
  16. else
  17. RemoveSpawnAccess(NPC, Spawn)
  18. end
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. end
  23. function death(NPC, Spawn)
  24. local group = GetSpawnByGroupID(zone, 1049684)
  25. if not IsAlive(group) then
  26. local zone = GetZone(NPC)
  27. local LordTonmerk = SpawnByLocationID(zone, LordTonmerkID)
  28. end
  29. end
  30. function respawn(NPC)
  31. spawn(NPC)
  32. end