analabasterbehemoth.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/Caves/analabasterbehemoth.lua
  3. Script Purpose : an alabaster behemoth
  4. Script Author : Scatman
  5. Script Date : 2009.11.20
  6. Script Notes :
  7. --]]
  8. local MIN_TIME = 3000
  9. local MAX_TIME = 10000
  10. function spawn(NPC)
  11. local sli = GetSpawnLocationID(NPC)
  12. if sli == 387773 or sli == 387774 or sli == 387772 or sli == 387778 or sli == 1585477 or sli == 387766 then
  13. AddTimer(NPC, math.random(MIN_TIME, MAX_TIME), "MakeAttack")
  14. end
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. end
  22. function MakeAttack(NPC)
  23. PlayFlavor(NPC, "", "", "attack", 0, 0)
  24. AddTimer(NPC, math.random(MIN_TIME, MAX_TIME), "MakeAttack")
  25. end
  26. --[[
  27. PlayFlavor(NPC, "voiceover/english/optional3/golem_base_1/ft/golem/golem_base_1_1_garbled_e0fead4d.mp3", "Pintoota kolata eldina mastarina", "", 2947217871, 3677590207)
  28. PlayFlavor(NPC, "voiceover/english/optional5/golem_base_2/ft/golem/golem_base_2_1_garbled_48632408.mp3", "Boona vas kontrella", "", 3186320893, 862014285)
  29. --]]