HalestormXV Sentinos
Posts : 43 Join date : 2008-03-21
| Subject: [RELEASE] My Blue Circle Imperial Script Fri Mar 21, 2008 12:56 am | |
| Here is an lua script I made. It is an Imperial of the Blue Circle. He is a boss on my server. It was made by me so please give proper credit. - Code:
-
--Halestorm Script --Give Proper Credit
function phhaase_11(pUnit, Event) if pUnit:GetHealthPct() < 99 then pUnit:RemoveEvents(); pUnit:SendChatMessage (11, 0, "May the flames empower me!") pUnit:FullCastSpell(37318) pUnit:RegisterEvent("phhaase_22",1000, 0) end end
function phhaase_22(pUnit, Event) if pUnit:GetHealthPct() < 80 then pUnit:RemoveEvents(); pUnit:PlaySoundToSet(8616) pUnit:SendChatMessage (12, 0, "Cower mortals! The age of darkness is at hand!") pUnit:FullCastSpell(39048) pUnit:RegisterEvent("GreaterFire",6000,0) end end
function phhaase_33(pUnit, Event) if pUnit:GetHealthPct() < 50 then pUnit:RemoveEvents(); pUnit:PlaySoundToSet(8617) pUnit:SendChatMessage (11, 0, "Let your death serve as an example...") pUnit:FullCastSpell(34970) pUnit:RegisterEvent("phhaase_44",1000, 0) end end
function phhaase_44(pUnit, Event) if pUnit:GetHealthPct() < 45 then pUnit:RemoveEvents(); pUnit:PlaySoundToSet(8618) pUnit:SendChatMessage (12, 0, "Prepare for the return Ancient Ones!") pUnit:SpawnCreature(70, -7623.067871, -764.416565, 190.796753, 6.023218, 24, 210000); pUnit:SpawnCreature(70, -7601.719238, -757.881775, 190.845306, 4.169023, 24, 210000); pUnit:SpawnCreature(70, -7594.302734, -770.311096, 190.840042, 3.733126, 24, 210000); pUnit:SpawnCreature(70, -7587.014160, -779.438171, 190.929428, 3.047478, 24, 210000); pUnit:SpawnCreature(70, -7625.040039, -789.532593, 190.854233, 0.608835, 24, 210000); pUnit:RegisterEvent("phhaase_55",1000, 0) end end
function phhaase_55(pUnit, Event) if pUnit:GetHealthPct() < 30 then pUnit:RemoveEvents(); pUnit:PlaySoundToSet(8619) pUnit:SendChatMessage (12, 0, "Spineless wretches! You will drown in rivers of blood!") pUnit:CastSpell(17131) pUnit:Emote(254) pUnit:RegisterEvent("Flame",1000, 0) end end
function Flame(pUnit, event) print "Flame initiated..." pUnit:RemoveEvents(); pUnit:SetCombatMeleeCapable(1) pUnit:SetCombatTargetingCapable(1) pUnit:CastSpell(39385) pUnit:RegisterEvent("Land", 3000, 1) end
function Land(pUnit, event) print "Lands initiated..." pUnit:RemoveEvents(); pUnit:SetCombatMeleeCapable(0) pUnit:SetCombatTargetingCapable(0) pUnit:RemoveAura(17131) pUnit:Emote(293) pUnit:SendChatMessage(12, 0, "Feel the fiery hatred!") pUnit:FullCastSpellOnTarget(41481, pUnit:GetRandomPlayer(0)) pUnit:RemoveEvents(); pUnit:RegisterEvent("endsFight", 1000, 0) end
function endsFight(pUnit, event) print "End Fight begins..." pUnit:FullCastSpellOnTarget(5782, pUnit:GetRandomPlayer(0)) pUnit:RemoveEvents(); pUnit:RegisterEvent("fearAgain", 1000, 4) end
function fearAgain(pUnit, event) pUnit:FullCastSpellOnTarget(5782, pUnit:GetRandomPlayer(0)) pUnit:RemoveEvents(); pUnit:RegisterEvent("phhaase_66", 1000, 0) end function phhaase_66(pUnit, Event) if pUnit:GetHealthPct() < 10 then pUnit:RemoveEvents(); pUnit:FullCastSpell(27780) pUnit:RegisterEvent("phhaase_77",1000, 0) end end
function phhaase_77(pUnit, Event) if pUnit:GetHealthPct() < 8 then pUnit:RemoveEvents(); pUnit:FullCastSpell(41274) end end
function Bbooss_start(pUnit, Event) pUnit:RegisterEvent("phhaase_11",1000, 0) pUnit:PlaySoundToSet(8615) pUnit:SendChatMessage (12, 0, "Are you so eager to die? I will be happy to accommodate you!") pUnit:FullCastSpell(42048) end
function GreaterFire(pUnit, Event) if pUnit:GetHealthPct() < 60 then pUnit:RemoveEvents(); pUnit:PlaySoundToSet(8621) pUnit:SendChatMessage (12, 0, "Tremble! The end is upon you.") pUnit:FullCastSpellOnTarget(33051, pUnit:GetMainTank()) pUnit:FullCastSpellOnTarget(33051, pUnit:GetRandomPlayer(0)) pUnit:RegisterEvent("phhaase_33",6000, 0) end end
function onDeath(pUnit, Event) pUnit:PlaySoundToSet(8622) pUnit:SendChatMessage (11, 0, "You only delay....the inevitable...") pUnit:RemoveAura(37318) pUnit:RemoveAura(34970) pUnit:RemoveAura(42048) pUnit:RemoveEvents() end function onLeave(pUnit,Event) pUnit:RemoveAura(37318) pUnit:RemoveAura(34970) pUnit:RemoveAura(42048) pUnit:RemoveEvents() end
RegisterUnitEvent (67, 1, "Bbooss_start") RegisterUnitEvent (67, 2, "onLeave") RegisterUnitEvent (67, 4, "onDeath")
Last edited by HalestormXV on Fri Mar 21, 2008 8:48 am; edited 1 time in total | |
|
Rouslan The One
Posts : 65 Join date : 2008-03-20 Location : Your BIOS
| Subject: Re: [RELEASE] My Blue Circle Imperial Script Fri Mar 21, 2008 7:31 am | |
| Very nice Script man,. Thanx for sharing, Ofc the credits are all yours. | |
|
HalestormXV Sentinos
Posts : 43 Join date : 2008-03-21
| Subject: Re: [RELEASE] My Blue Circle Imperial Script Fri Mar 21, 2008 8:20 am | |
| Thanks I got plenty of more I will bring out slowly lol. I love Lua scripting. Trying to learn C++ scripting I can only do the basics rite now of it though. | |
|
Fusion CN Gangster
Posts : 123 Join date : 2008-03-21 Location : Some ware deep in your hard drive
| Subject: Re: [RELEASE] My Blue Circle Imperial Script Fri Mar 21, 2008 8:32 am | |
| - HalestormXV wrote:
- Thanks I got plenty of more I will bring out slowly lol. I love Lua scripting. Trying to learn C++ scripting I can only do the basics rite now of it though.
yeah its nice the first lua script i made went pare shaped from the start of me "Discovering lua" to my 1st script was 8 hours i learnt it by looking over scripts seen as i couldn't find a tut. after that with no support i gave up and its been in a folder ever since if you would like to look over it and maby correct it that would be grate otherwise no worrys (its quite long =P and about 4 files) | |
|
Rouslan The One
Posts : 65 Join date : 2008-03-20 Location : Your BIOS
| Subject: Re: [RELEASE] My Blue Circle Imperial Script Fri Mar 21, 2008 9:39 am | |
| - Fusion wrote:
- HalestormXV wrote:
- Thanks I got plenty of more I will bring out slowly lol. I love Lua scripting. Trying to learn C++ scripting I can only do the basics rite now of it though.
yeah its nice the first lua script i made went pare shaped from the start of me "Discovering lua" to my 1st script was 8 hours i learnt it by looking over scripts seen as i couldn't find a tut. after that with no support i gave up and its been in a folder ever since if you would like to look over it and maby correct it that would be grate otherwise no worrys (its quite long =P and about 4 files) I just finished scripting MOther and Illidan to use Blizzlike spells and phases, Spells and other attacks work great, only 2 phases work, but thats a hell of a progress. | |
|
Fusion CN Gangster
Posts : 123 Join date : 2008-03-21 Location : Some ware deep in your hard drive
| Subject: Re: [RELEASE] My Blue Circle Imperial Script Fri Mar 21, 2008 9:41 am | |
| - Rouslan wrote:
- Fusion wrote:
- HalestormXV wrote:
- Thanks I got plenty of more I will bring out slowly lol. I love Lua scripting. Trying to learn C++ scripting I can only do the basics rite now of it though.
yeah its nice the first lua script i made went pare shaped from the start of me "Discovering lua" to my 1st script was 8 hours i learnt it by looking over scripts seen as i couldn't find a tut. after that with no support i gave up and its been in a folder ever since if you would like to look over it and maby correct it that would be grate otherwise no worrys (its quite long =P and about 4 files) I just finished scripting MOther and Illidan to use Blizzlike spells and phases, Spells and other attacks work great, only 2 phases work, but thats a hell of a progress. sweet! ive seen the C++ version but it will never get 100% Blizzlike | |
|
Hexagram† Sentinos
Posts : 50 Join date : 2008-03-21 Location : C:/Windows/System32/drivers
| Subject: Re: [RELEASE] My Blue Circle Imperial Script Fri Mar 21, 2008 7:23 pm | |
| Damn, awesome script Hale looks like it'd be a very fun boss, I wish I knew how to do that stuff haha. | |
|
Sponsored content
| Subject: Re: [RELEASE] My Blue Circle Imperial Script | |
| |
|