9
3

aMilitiaGuard.lua 525 B

123456789101112131415161718192021222324252627
  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. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC)
  10. NPCModule(NPC, Spawn)
  11. SetAggroRadius(NPC, 20)
  12. AddTimer(NPC, 180000, "despawn", 1)
  13. end
  14. function despawn(NPC, Spawn)
  15. Despawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end