12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- --[[
- Script Name : SpawnScripts/Caves/AtramentorBehemoth.lua
- Script Author : LordPazuzu
- Script Date : 2022.10.10 03:10:20
- Script Purpose :
- :
- --]]
- dofile("SpawnScripts/Generic/MonsterCallouts/BaseGolem1.lua")
- require "SpawnScripts/Generic/NPCModule"
- function spawn(NPC, Spawn)
- NPCModule(NPC, Spawn)
- AttackRocks(NPC)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function AttackRocks(NPC)
- local rockattack = math.random (1, 4)
- if rockattack == 1 then
- AddTimer(NPC, 100, "stop_attack")
- else
- AddTimer(NPC, 100, "Rocks")
- end
- end
- function Rocks(NPC)
- if not IsInCombat(NPC) then
- SpawnSet(NPC, "visual_state", "10783") -- Start attacking
- end
- AddTimer(NPC, 3500, "stop_attack") -- for 2 seconds, then stop
- end
- function stop_attack(NPC)
- SpawnSet(NPC, "visual_state", "0") -- Stop attacking
- AddTimer(NPC, 8000, "AttackRocks")
- end
|