analabastergolem.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/Caves/analabastergolem.lua
  3. Script Purpose : an alabaster golem
  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. local sli = GetSpawnLocationID(NPC)
  12. if sli == 388305 or sli == 388308 or sli == 147864 or sli == 159970 or sli == 159971 or sli == 159972 or sli == 147866 or sli == 147867 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_7c1e7a03.mp3", "Oerbet aertres nuavalen sulana", "", 294229851, 323943279)
  28. PlayFlavor(NPC, "voiceover/english/optional3/golem_base_1/ft/golem/golem_base_1_1_garbled_48632408.mp3", "Boona vas kontrella", "", 2577927628, 312715019)
  29. PlayFlavor(NPC, "voiceover/english/optional3/golem_base_1/ft/golem/golem_base_1_1_garbled_e0fead4d.mp3", "Pintoota kolata eldina mastarina", "", 2947217871, 3677590207)
  30. PlayFlavor(NPC, "voiceover/english/optional3/golem_base_1/ft/golem/golem_base_1_1_garbled_ba1c8454.mp3", "Ervmenta oolaves kor'tenza", "", 422166849, 245170409)
  31. PlayFlavor(NPC, "voiceover/english/optional5/golem_base_2/ft/golem/golem_base_2_1_garbled_7c1e7a03.mp3", "Oerbet aertres nuavalen sulana", "", 2422828991, 2611697218)
  32. --]]