aMilitiaGuard.lua 445 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/aMilitiaGuard.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.30 08:05:13
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetAggroRadius(NPC, 20)
  10. AddTimer(NPC, 180000, "despawn", 1)
  11. end
  12. function despawn(NPC, Spawn)
  13. Despawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end