So i whas gonna make a new boss out of tokarin and some where theres a , that make my repack not to load the lua but i cant find it :S plz help me fast
-- BEGIN SCRIPT FOR MOBS
--
function Spirit_onDeath(Unit, event)
Unit:SpawnCreature(100251, -13314.908203, 76.672096, 22.202782, 17, 0);
end
RegisterUnitEvent(100255, 4, "Spirit_onDeath")
function Spirit2_onDeath(Unit, event)
Unit:RegisterEvent("Respawn",60000, 0)
end
RegisterUnitEvent(100259, 4, "Spirit2_onDeath")
function Respawn(Unit)
Unit:SpawnCreature(100252, -13317.870117, 57.538628, 21.917192, 0.914202, 17, 0);
Unit:SpawnCreature(100253, -13319.337891, 68.219139, 22.189417, 0.945617, 17, 0);
Unit:SpawnCreature(100254, -13328.952148, 75.610344, 22.575043, 0.890640, 17, 0);
Unit:SpawnCreature(100255, -13336.794922, 81.160561, 23.152468, 0.717851, 17, 0);
end
-- BEGIN SCRIPT FOR TORKIN
function Torkin_Stomp(Unit)
Unit:CastSpell(5570)
end
function Torkin_volley(Unit)
Unit:CastSpell(853)
end
function Torkin_volley2(Unit)
Unit:CastSpell(17312)
end
function Torkin_Swoop(Unit)
Unit:CastSpell(15112)
end
function Torkin_Phase1(Unit, event)
if Unit:GetHealthPct() < 90 then
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "This has gone on long enough!")
Unit:SetModel(15214)
Unit:SetScale(3)
Unit:CastSpell(41232)
Unit:RegisterEvent("Torkin_Stomp",8000, 0)
Unit:RegisterEvent("Torkin_Phase2",1000, 0)
end
end
function Torkin_Phase2(Unit, event)
if Unit:GetHealthPct() < 80 then
Unit:RemoveEvents()
Unit:SetModel(15214)
Unit:SetScale(5)
Unit:CastSpell(1557
Unit:RegisterEvent("Torkin_volley2",8000, 0)
Unit:RegisterEvent("Torkin_Phase3",1000, 0)
end
end
function Torkin_Phase3(Unit, event)
if Unit:GetHealthPct() < 75 then
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "Annoying Pests!")
Unit:SetModel(15214)
Unit:SetScale(7)
Unit:CastSpell(41232)
Unit:RegisterEvent("Torkin_Swoop",10000, 0)
Unit:RegisterEvent("Torkin_Phase4",1000, 0)
end
end
function Torkin_Phase4(Unit, event)
if Unit:GetHealthPct() <= 60 then
Unit:RemoveEvents()
Unit:SetScale(9)
Unit:SetModel(15214)
Unit:CastSpell(1557
Unit:SendChatMessage(12, 0, "You shall all pay dearly!")
Unit:RegisterEvent("Torkin_Stomp",8000, 0)
Unit:RegisterEvent("Torkin_Phase5",1000, 0)
end
end
function Torkin_Phase5(Unit, event)
if Unit:GetHealthPct() <= 50 then
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "My powers! I cannot control them anymore!")
Unit:SetScale(11)
Unit:CastSpell(24255)
Unit:RegisterEvent("Torkin_Phase6",7000, 0)
end
end
function Torkin_Phase6(Unit, event)
Unit:RemoveEvents()
x = Unit:GetX();
y = Unit:GetY();
z = Unit:GetZ();
o = Unit:GetO();
Unit:SpawnCreature(100259, x, y, z, o, 17, 0);
Unit:SpawnCreature(, x, y, z, o, 17, 0);
Unit:SpawnCreature(, x, y, z, o, 17, 0);
Unit:SpawnCreature(, x, y, z, o, 17, 0);
Unitespawn (1000, 0)
end
function Torkin_OnCombat(Unit, event)
Unit:SendChatMessage(11, 0, "How dare you summon me!")
Unit:RegisterEvent("Torkin_Phase1",1000, 0)
Unit:RegisterEvent("Torkin_volley",9000, 0)
end
function Torkin_OnLeaveCombat(Unit) -- SPAWN ORIGINAL 4 MOBS, THEN DESPAWN
Unit:RemoveEvents()
Unit:SpawnCreature(100252, -13317.870117, 57.538628, 21.917192, 0.914202, 17, 0);
Unit:SpawnCreature(100253, -13319.337891, 68.219139, 22.189417, 0.945617, 17, 0);
Unit:SpawnCreature(100254, -13328.952148, 75.610344, 22.575043, 0.890640, 17, 0);
Unit:SpawnCreature(100255, -13336.794922, 81.160561, 23.152468, 0.717851, 17, 0);
Unitespawn (1000, 0)
end
function Torkin_OnKilledTarget(Unit)
Unit:SendChatMessage(11, 0, "Conjoin with the nature!")
Unit:CastSpell(5570)
end
function Torkin_Death(Unit)
Unit:SendChatMessage(12, 0, "You cheated somehow!")
Unitespawn (100, 0)
Unit:RemoveEvents()
end
RegisterUnitEvent(100251, 1, "Torkin_OnCombat")
RegisterUnitEvent(100251, 2, "Torkin_OnLeaveCombat")
RegisterUnitEvent(100251, 3, "Torkin_OnKilledTarget")
RegisterUnitEvent(100251, 4, "Torkin_Death")