so i made a script. well 3 for this fight were theres 3 bosses and all u gotta do it kill 1 and the other 2 despawn but i cant get the despawn to work.
i tryed adding Unit
espawn(1, 130005) and the other way around Unit
espawn(130005, 1)
i added it on boss 1 on death to despawn boss 2, and 3. but it dont work.
Please help if u can! this is one of my test scripts.
Code:
local prinTwo = 130004
function Two_OnSpawn(Unit, Event)
Unit:RemoveEvents()
end
function Two_OnCombat(Unit, Event)
Unit:RegisterEvent("Two_Storm", 7000, 0)
Unit:RegisterEvent("Two_Wings", 30000, 0)
end
function Two_Storm(Unit, Event)
Unit:CastSpell(37289)
end
function Two_Wings(Unit, Event)
Unit:FullCastSpell(74327)
end
function Two_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
end
function Two_OnDeath(Unit, Event)
Unit:Despawn(1, 130005)
Unit:Despawn(1, 130000)
Unit:RemoveEvents()
end
RegisterUnitEvent(prinTwo, 1, "Two_OnCombat")
RegisterUnitEvent(prinTwo, 6, "Two_OnSpawn")
RegisterUnitEvent(prinTwo, 2, "Two_OnLeaveCombat")
RegisterUnitEvent(prinTwo, 4, "Two_OnDeath")