Hi, I'm making my repack, as some of you might know...
And I'm making a "Allidari Lair", as you might also know...
And my first boss is Arthas...
And I allready got problems...
Lets begin with Arthas, the boss....
And it fails loading, because something's wrong... Yeah i'm a noob of lua scripting, whats the problem?Code:function Kazzak_Enrage(Unit, event, miscunit, misc) if Unit:GetHealthPct() < 30 and Didthat == 0 then Unit:FullCastSpell(40327) Didthat = 1 else end end function Arthas_Dark_Glare(Unit, event, miscunit, misc) print "Arthas Dark Glare" Unit:FullCastSpellOnTarget(26029,Unit:GetClosestPlayer()) Unit:SendChatMessage(11, 0, "The Dark Glare consume you all!") end function Arthas_Finger_of_Death(Unit, event, miscunit, misc) print "Arthas Finger of Death" Unit:FullCastSpellOnTarget(32111,Unit:GetRandomPlayer()) Unit:SendChatMessage(11, 0, "Taste the Finger of Death!!") end function Arthas_Whirlwind(Unit, event, miscunit, misc) print "Arthas Whirlwind" Unit:FullCastSpellOnTarget(40219,Unit:GetRandomPlayer()) Unit:SendChatMessage(11, 0, "Taste the power of the frostmourne!!") end function Arthas_Spirit_Fall(Unit, event, miscunit, misc) print "Arthas Spirit Fall" Unit:FullCastSpell(40314) Unit:SendChatMessage(11, 0, "May the spirits kill you all!") end function Arthas_Reign_Of_Chaos(Unit, event, miscunit, misc) print "Arthas Rain of Chaos" Unit:FullCastSpellOnTarget(40946,Unit:GetClosestPlayer()) Unit:SendChatMessage(11, 0, "I won't do the same mistake as my father!!") end function Arthas_Void_Bolt(Unit, event, miscunit, misc) print "Arthas Void Bolt" Unit:FullCastSpellOnTarget(39329,Unit:GetClosestPlayer()) Unit:SendChatMessage(11, 0, "My void bolts will crush you all!!") end function Arthas_Flame_Crash(Unit, event, miscunit, misc) print "Arthas Flame Crash" Unit:FullCastSpell(40832) Unit:SendChatMessage(11, 0, "Taste the Flames of Sulfuron!! Ops, that's Ragnaros speak..") end function Arthas(unit, event, miscunit, misc) print "Arthas" unit:RegisterEvent("Kazzak_Enrage",1000,1) unit:RegisterEvent("Arthas_Dark_Glare",10000,0) unit:RegisterEvent("Arthas_Finger_of_Death",17000,0) unit:RegisterEvent("Arthas_Whirlwind",23000,0) unit:RegisterEvent("Arthas_Spirit_Fall",27000,0) unit:RegisterEvent("Arthas_Reign_of_Chaos",33000,0) unit:RegisterEvent("Arthas_Void_Bolt",37000,0) unit:RegisterEvent("Arthas_Flame_Crash",600000,1) end RegisterUnitEvent(232323,1,"Arthas") function Arthas_And_Blazer(pUnit, Event) x = pUnit:GetX(-1514.589966); y = pUnit:GetY(-451.562988); z = pUnit:GetZ(69,445702); o = pUnit:GetO(0,814188); pUnit:SpawnCreature(6543221, -1514.58996, -451.562988, 69.445702, 0.814188,1741,900000) end RegisterUnitEvent(232323, 6, "Arthas_And_Blazer") function Arthas_speak_one(Unit, event, miscunit, misc) pUnit:SendChatMessage(11, 0, "Well.. If you're his messager-boy, oh please tell him..<laughs> I'm about to take his seat!") Unit:RegisterEvent("Arthas_speak_one", 10, 0) function Arthas_speak_two(Unit, event, miscunit, misc) end Unit:RegisterEvent("Arthas_speak_two", 30, 0) function Arthas_speak_three(Unit, event, miscunit, misc) pUnit:SendChatMessage(11, 0, "Ah, as you wish...") pUnit:SendChatMessage(9, 0, "Arthas puts on his lil crown.") pUnit:GetMainTank() pUnit:SendChatMessage(12, 0, "I HAVE AN SUMMONING TO ATTEND TO!") end Unit:RegisterEvent("Arthas_Speak_three", 10, 0) function Arthas_Illidan_Comes pUnit:CastSpell (40647) pUnit:SendChatMessage(11, 0, "Enough! The summoning is allready complete! Kill me, but you can't save Azeroth from the summoning!") pUnit:CastSpell (40647) end Unit:RegisterEvent("Arthas_Illidan_comes", 359980, 0) x = pUnit:GetX() y = pUnit:GetY() z = pUnit:GetZ() o = pUnit:GetO() pUnit:SpawnCreature(987654321, -1514.58996, -451.562988, 69.445702, 0.814188, 1741, 900000) pUnit:CastSpell (40647) end Unit:RegisterEvent("Arthas_Illidan_Comes", 360000, 0) function Arthas_speak_four pUnit:SendChatMessage(11, 0, "Illidan... I though you where at our side...") pUnit:CastSpell (40647) end Unit:RegisterEvent("Arthas_Speak_four", 360020, 0) function Arthas_Speak_Four pUnit:SendChatMessage(11, 0, "I have destroyed you before, Illidan. You know it doesn't make sense if you leave us.") end Unit:RegisterEvent("Arthas_Speak_five", 360040, 0) pUnit:SendChatMessage(12, 0, "The power of Death shall crush you!!") end unit:RegisterEvent("Arthas_Speak_Five", 40000, 0) function Arthas_Death Unit:SendChatMessage(11, 0, "Blazer, you don't know the other secret of your blade... The sword that you're wielding, is a key. Using it, you would not only undo a summoning, but also rescue the suffering of your dear friend, Yimo...Now...It's time for me to...leave...") x = pUnit:GetX() y = punit:GetY() z = punit:getZ() o = pUnit:GetO() pUnit:SpawnCreature(1121337, -1514.58996, -451.562988, 69.445702, 0.814188, 1741, 9000000) end Unit:RegisterUnitEvent(232323, 4, Arthas_Death)
Lets continue with the small helpers...(like Akama and Maiev in Illidan event)
Code:function Ashbringer_speak_one Unit:SendChatMessage(12, 0, "Arthas! God is pissed of at you, and I am here to make you pay!") end unit:RegisterEvent("Ashbringer_speak_one",1,1) function Ashbringer_speak_two Unit:SendChatMessage(11, 0, "Oh, yes of course, but pleeease! Take on that lil crown of yours, I didn't come here to play!") end unit:RegisterEvent("Ashbringer_speak_two",20,1) function Ashbringer_Flamestrike Unit:SendChatMessage(11, 0, "Feel the great power of Retribution!") Unit:FullCastSpell(22275) end function Ashbringer_Pyroblast Unit:SendChatMessage(11, 0, "Power to retribution!")+rep to anyone that can help mefunction Illidan_speak_one
Unit:SendChatMessage(12, 0, "You forgot the lil secret, Arthas.")
end
unit:RegisterEvent("Illidan_speak_one",1,1)
function Illidan_speak_two
Unit:SendChatMessage(11, 0, "Everything that hurts you may make you stronger... And I have felt alots of pain from yours, Lich King...")
end
unit:RegisterEvent("Illidan_speak_two",12,1)
function Illidan_speak_three
Unit:SendChatMessage(12, 0, "Nothing you ever do will make sense. You are not prepared!")
end
Unit:RegisterEvent("Illidan_speak_three", 30,1)
[/code]
What's wrong?
Ps. can someone also help me with this script?
[code]
function Lokirah_Enrage(Unit, event, miscunit, misc)
if Unit:GetHealthPct() < 30 and Didthat == 0 then
Unit:FullCastSpell(34971)
Didthat = 1
else
end
end
function Lokirah_Flame_Crash(Unit, event, miscunit, misc)
print "Lokirah Flame Crash"
Unit:FullCastSpellOnTarget(40832,Unit:GetClosestPlayer())
Unit:SendChatMessage(12, 0, "May the flames crush you all!")
end
function Lokirah_Shadowbolt_Whirl(Unit, event, miscunit, misc)
print "Lokirah Shadowbolt Whirl "
Unit:FullCastSpellOnTarget(32111,Unit:GetRandomPlayer())
Unit:SendChatMessage(11, 0, "")
end
function Lokirah_Aura_of_Death(Unit, event, miscunit, misc)
print "Lokirah Aura of Death"
Unit:FullCastSpellOnTarget(41142,Unit:GetRandomPlayer())
Unit:SendChatMessage(11, 0, "The Aura of Death will crush you all!")
end
function Lokirah_Agnozing_Flames(Unit, event, miscunit, misc)
print "Lokirah Agnozing Flames"
Unit:FullCastSpell(40932)
Unit:SendChatMessage(11, 0, "My flames are Agnozing! Taste it!")
end
function Arthas_Reign_Of_Chaos(Unit, event, miscunit, misc)
print "Arthas Rain of Chaos"
Unit:FullCastSpellOnTarget(40946,Unit:GetClosestPlayer)
Unit:SendChatMessage(11, 0, "Rain of Chaos, Aid me!")
end
function Arthas_Void_Bolt(Unit, event, miscunit, misc)
print "Arthas Void Bolt"
Unit:FullCastSpellOnTarget(39329,Unit:GetClosestPlayer())
Unit:SendChatMessage(11, 0, "My void bolts will crush you all!!")
end
function Arthas_Flame_Crash(Unit, event, miscunit, misc)
print "Arthas Flame Crash"
Unit:FullCastSpell(40832)
Unit:SendChatMessage(11, 0, "Taste the Flames of Sulfuron!! Ops, that's Ragnaros speak..")
end
function Lokirah(unit, event, miscunit, misc)
print "Lokirah"
unit:RegisterEvent("Lokirah_Enrage",1000,1)
unit:RegisterEvent("Lokirah_Flame_Crash",10000,0)
unit:RegisterEvent("Lokirah_Shadowbolt_Wirl",17000,0)
unit:RegisterEvent("Lokirah_Aura_Of_Death",23000,0)
unit:RegisterEvent("Lokirah_Agnozing_Flames",27000,0)
unit:RegisterEvent("Lokirah_Reign_of_Chaos",33000,0)
unit:RegisterEvent("Lokirah_Void_Bolt",37000,0)
unit:RegisterEvent("Lokirah_Flame_Crash",600000,1)
function Lokirah_Flight(Unit, Event, Miscunit, misc)
print "Lokirah Flight"
Unit:EmoteState(254)
Unit:SendChatMessage(12, 0, "I will not be touched by you, gnomes!")
Unit:FullCastSpell(40585)
Unit:FullCastSpell(40585)
Unit:FullCastSpell(40585)
Unit:FullCastSpell(4107
Unit:FullCastSpell(40585)
Unit:FullCastSpell(4107
Unit:EmoteState(293)
end
Unit:RegisterEvent("Lokirah_Flight", 40000, 0)
function Lokirah_DemonForm
Unit:EmoteState(293)
Unit:SetModelID(21322)
Unit:SetScale(4)
Unit:SendChatMessage(12, 0, "You wanted more, Behold the Power of the demon within!")
Unit:FullCastSpell(40511)
Unit:FullCastSpell(4107
Unit:FUllCastSpell(41117)
Unit:FullCastSpell(41131)
Unit:EmoteState(0)
Unit:SetModelID(21137)
Unit:SetScale(1)
end
Unit:RegisterEvent("Lokirah_DemonForm", 45000, 0)
function Lokirah_DemonForm
Unit:EmoteState(293)
Unit:SetModelID(21322)
Unit:SetScale(4)
Unit:SendChatMessage(12, 0, "You wanted more, Behold the Power of the demon within!")
Unit:FullCastSpell(40511)
Unit:FullCastSpell(4107
Unit:FUllCastSpell(41117)
Unit:FullCastSpell(41131)
Unit:EmoteState(0)
Unit:SetModelID(21137)
Unit:SetScale(1)
end
Unit:RegisterEvent("Lokirah_DemonForm", 50000, 0)
function Lokirah_DemonForm
Unit:EmoteState(293)
Unit:SetModelID(21322)
Unit:SetScale(4)
Unit:SendChatMessage(12, 0, "You wanted more, Behold the Power of the demon within!")
Unit:FullCastSpell(40511)
Unit:FullCastSpell(4107
Unit:FUllCastSpell(41117)
Unit:FullCastSpell(41131)
Unit:EmoteState(0)
Unit:SetModelID(21137)
Unit:SetScale(1)
end
Unit:RegisterEvent("Lokirah_DemonForm", 55000)
function Lokirah_OnAggro
Unit:SendChatMessage(12, 0, "I hate to see how much you hate me... You will be one of my prisoners, and become corrupted for all future!")
x = pUnit:GetX(1644.842896);
y = pUnit:GetY(-3082.187500);
z = pUnit:GetZ(88.13549;
o = pUnit:GetO(5.742047);
Unit:SpawnCreature(133464, 1638.699951, -3077.959961, 87.655098, 5.389270,1741,9999999999)
end
Unit:RegisterEvent(13399, 1, Lokirah_OnAggro)
function Lokirah_Dies
Unit:SendChatMessage(11, 0, "I hate to say it... But you downed me...")
Unit:SetModelID(20122)
Unit:FullCastSpell(34971)
Unit:RegisterEvent(13399, 4, Lokirah_Dies)