9
3

aSableveindigger_attack.lua 561 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/Darklight/aSableveindigger.lua
  3. Script Purpose : a Sablevein digger
  4. Script Author : Scatman
  5. Script Date : 2009.11.19
  6. Script Notes :
  7. --]]
  8. local MIN_TIME = 3000
  9. local MAX_TIME = 10000
  10. function spawn(NPC)
  11. AddTimer(NPC, math.random(MIN_TIME, MAX_TIME), "MakeAttack")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. end
  19. function MakeAttack(NPC)
  20. PlayFlavor(NPC, "", "", "attack", 0, 0)
  21. AddTimer(NPC, math.random(MIN_TIME, MAX_TIME), "MakeAttack")
  22. end