aSableveinDestroyer.lua 589 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : SpawnScripts/Darklight/aSableveinDestroyer.lua
  3. Script Purpose : Add looping attack and despawn for battle simulation.
  4. Script Author : Cynnar
  5. Script Date : 10/14/2015
  6. Script Notes : A Sablevein Destroyer (spawn_id 340053)
  7. Script Notes : Where the north wall use to be.
  8. --]]
  9. function spawn(NPC)
  10. MakeAttack(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function MakeAttack(NPC)
  16. PlayFlavor(NPC, "", "", "attack", 0, 0)
  17. AddTimer(NPC, math.random(3000, 3500), "MakeAttack")
  18. end
  19. function hailed(NPC, Spawn)
  20. PlayAnimation(NPC, 19228)
  21. end