1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- --[[
- 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")
- function spawn(NPC)
- 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
|