Twist Gaming
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Rayne the Druid

2 posters

Go down

Rayne the Druid Empty Rayne the Druid

Post  mykael Wed Jul 21, 2010 7:25 am

Ok this is my newest boss i created using phases. +rep if you enjoy and heres a little description. So this boss's name is Rayne the Druid. In his first face he will cast three spells. Moonfire, starfall,starfire. when he enters the first phase, he will transform into a bear and use clawsipe, next phase he transform into a cat also using clawsipe, phase after that he transforms back into normal and casts the first three spells. heres a picture

Rayne the Druid 2ai3qd5

Code:

Rayne = {
NPCID = 8000090
}
 
local Spells = {
Starfire = 67947,
Clawswipe = 60776,
Starfall = 64378,
Moonfire = 67946,
}
 
--Normal form
function Rayne.Combat(pUnit, event)
    pUnit:SendChatMessage(14, 0, "You will die for damaging these lands!")
        pUnit:RegisterEvent("Rayne.Starfire", 3500,0)
    pUnit:RegisterEvent("Rayne.Starfall", 10000,0)
    pUnit:RegisterEvent("Rayne.Moonfire", 1500,0)
    pUnit:RegisterEvent("Rayne.Phase2", 1000, 0)
end
 
--Cat form
function Rayne.Phase2(pUnit, event, player)
    if pUnit:GetHealthPct() <= 80 then
            pUnit:RemoveEvents()
        pUnit:SendChatMessage(14, 0, "I will tear you to pieces!")
        pUnit:CastSpell(5487)
        pUnit:SetModel(719)
                pUnit:RegisterEvent("Rayne.Clawswipe", 1000,0)
        pUnit:RegisterEvent("Rayne.Phase3", 1000, 0)
    end
end
 
--Bear form
function Rayne.Phase3(pUnit, event, player)
    if pUnit:GetHealthPct() <= 50 then
            pUnit:RemoveEvents()
        pUnit:SendChatMessage(14, 0, "No matter.. I will claw your face!")
        pUnit:CastSpell(57655)
        pUnit:SetModel(892)
                pUnit:RegisterEvent("Rayne.Clawswipe", 1000,0)
        pUnit:RegisterEvent("Rayne.Phase4", 1000, 0)
    end
end
 
--Normal form
function Rayne.Phase4(pUnit, event, player)
    if pUnit:GetHealthPct() <= 30 then
            pUnit:RemoveEvents()
        pUnit:SendChatMessage(14, 0, "You will face the wrath of nature itself!")
        pUnit:SetModel(24029)
                pUnit:RegisterEvent("Rayne.Starfire", 3500,0)
        pUnit:RegisterEvent("Rayne.Starfall", 10000,0)
        pUnit:RegisterEvent("Rayne.Moonfire", 1500,0)
    end
end
 
function Rayne.Starfire(pUnit, event)
    local target = pUnit:GetRandomPlayer(0)
        if target ~= nil then
        pUnit:CastSpellOnTarget(Spells.Starfire, target)
        end
end
 
function Rayne.Clawswipe(pUnit, event)
    local target = pUnit:GetRandomPlayer(0)
        if target ~= nil then
        pUnit:CastSpellOnTarget(Spells.Clawswipe, target)
        end
end
 
function Rayne.Starfall(pUnit, event)
    local target = pUnit:GetRandomPlayer(0)
        if target ~= nil then
        pUnit:CastSpellOnTarget(Spells.Starfall, target)
        pUnit:SendChatMessage(42, 0, "Starfall!")
        end
end
 
function Rayne.Moonfire(pUnit, event)
    local target = pUnit:GetRandomPlayer(0)
        if target ~= nil then
        pUnit:CastSpellOnTarget(Spells.Moonfire, target)
        end
end
 
function Rayne.Wipe(pUnit, event, player)
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(14, 0, "You are no match for the earth's wrath!")
end
 
function Rayne.Death(pUnit, event)
    pUnit:RemoveEvets()
    pUnit:SendChatMessage(12, 0, "I am infused in the... earth's soil..")
end
 
RegisterUnitEvent(Rayne.NPCID, 1, "Rayne.Combat")
RegisterUnitEvent(Rayne.NPCID, 2, "Rayne.Wipe")
RegisterUnitEvent(Rayne.NPCID, 4, "Rayne.Death")
mykael
mykael
Member
Member

Posts Posts : 11
Reputation Reputation : 6
Warning : Rayne the Druid Warnba10

Back to top Go down

Rayne the Druid Empty Re: Rayne the Druid

Post  Blaszix Tue Aug 03, 2010 7:17 pm

looks very nice :O but how do i put him into my server?? im just new to all of this (actually yesterday)
could some1 help me with my questions and such things???
(need to upgrade my server to 3.3.5 too)
Blaszix
Blaszix
Member
Member

Posts Posts : 5
Reputation Reputation : 0
Warning : Rayne the Druid Warnba10

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum