aSableveincrumbler_attack.lua 899 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/Darklight/aSableveincrumbler.lua
  3. Script Purpose : a Sablevein crumbler
  4. Script Author : Scatman
  5. Script Date : 2009.12.15
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/MovementCircleSmall.lua")
  9. local MIN_TIME = 3000
  10. local MAX_TIME = 10000
  11. function spawn(NPC)
  12. local sli = GetSpawnLocationID(NPC)
  13. if sli == 85722 or sli == 85817 or sli == 85794 or sli == 85775 or sli == 85714 or sli == 85701 or sli == 98562 or sli == 85711 or sli == 85759 or sli == 85731 or sli == 85723 or sli == 85712 or sli == 85865 or sli == 85730 or sli == 85862 then
  14. AddTimer(NPC, math.random(MIN_TIME, MAX_TIME), "MakeAttack")
  15. else
  16. SpawnChooseRandomMovement(NPC)
  17. end
  18. end
  19. function hailed(NPC, Spawn)
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end
  24. function MakeAttack(NPC)
  25. PlayFlavor(NPC, "", "", "attack", 0, 0)
  26. AddTimer(NPC, math.random(MIN_TIME, MAX_TIME), "MakeAttack")
  27. end