How do i make a monster i created channel a spell then cast it (ex. fireball) ??
btw to chrispe, the ade didn't work.... it gave me an error when i tried to update a monster i created with it
How do i make a monster i created channel a spell then cast it (ex. fireball) ??
btw to chrispe, the ade didn't work.... it gave me an error when i tried to update a monster i created with it
ade works perfectly for me, maybe you have to old db or to old version of ade,
Anyway, to get a monster to cast fireball (without hitting himself)
like the castspell command does, use this:
Unit:FullCastSpellOnTarget(SPELL_ID_HERE)
------------------------------------------------------
Knaur - Founder of The Norwegian Elite Team
Let say i want the mob to cast a priest shield on himself... how would i do that?
i think it should work with
unit:FullCastSpell(Spell_id)
i'm a noob of lua scripting, but i think it uses it on the unit thats getting scripted (casts spell on itself) and if you wanna cast it at a target...
pUnit:FullCastSpell(Spell_ID)
i need it to cast this on itself.
20697
Power Word: Shield - Spells - World of Warcraft
the
function SunfuryGuard_Shield(Unit)
pUnit:CastSpell(20697)
end
didnt work
Unit:FullCastSpellOnTarget(SPELL_ID_HERE) for mob to cast on other
Unit:CastSpell(SPELL_ID_HERE) to cat on himself (like heal, shield ++)
i actually used Unit:FullCastSpellOnTarget(SPELL_ID_HERE)
to make a mob run around in instance and heal me all the time lol
------------------------------------------------------
Knaur - Founder of The Norwegian Elite Team
------------------------------------------------------
Knaur - Founder of The Norwegian Elite Team
this is the error i get
http://img185.imageshack.us/img185/4834/errorluaaa8.jpg
this is my script.... my mob will only cast blast nova and the avatar....
he wont cast firebolt or shield....
function SunfuryGuard_AvatarofFlame(Unit)
Unit:CastSpell(15636)
Unit:SendChatMessage(12, 0, "I'll melt the flesh off your bones!")
end
function SunfuryGuard_Firebolt(Unit)
Unit:FullCastSpellOnTarget(36906)
Unit:SendChatMessage(12, 0, "I'll tear your limb from limb!!")
end
function SunfuryGuard_Blastwave(Unit)
Unit:FullCastSpell(3627
Unit:SendChatMessage(12, 0, "The earth will melt under you!!")
end
function SunfuryGuard_Shield(Unit)
pUnit:CastSpell(20697)
end
function SunfuryGuard_OnCombat(Unit, Event)
Unit:SendChatMessage(12, 0, "YOU THINK YOU CAN KILL ME!?")
Unit:RegisterEvent("SunfuryGuard_AvatarofFlame",50000, 0)
Unit:RegisterEvent("SunfuryGuard_Firebolt",15000, 0)
Unit:RegisterEvent("SunfuryGuard_Blastwave",25000, 0)
Unit:RegisterEvent("SunfuryGuard_Shield",40000, 0)
end
function SunfuryGuard_OnDied(Unit)
Unit:SendChatMessage(11, 0, "Guards! Get him.... ughh..")
Unit:RemoveEvents()
end
RegisterUnitEvent(101018, 1, "SunfuryGuard_OnCombat")
RegisterUnitEvent(101018, 4, "SunfuryGuard_OnDied")
Try:
Code:function SunfuryGuard_AvatarofFlame(pUnit, event) pUnit:CastSpell(15636) pUnit:SendChatMessage(12, 0, "I'll melt the flesh off your bones!") end function SunfuryGuard_Firebolt(pUnit, event) pUnit:FullCastSpellOnTarget(36906) pUnit:SendChatMessage(12, 0, "I'll tear your limb from limb!!") end function SunfuryGuard_Blastwave(Unit) Unit:FullCastSpell(36278) Unit:SendChatMessage(12, 0, "The earth will melt under you!!") end function SunfuryGuard_Shield(Unit) Unit:CastSpell(20697) end function SunfuryGuard_OnCombat(pUnit, Event) Unit:SendChatMessage(12, 0, "YOU THINK YOU CAN KILL ME!?") Unit:RegisterEvent("SunfuryGuard_AvatarofFlame",50000, 0) Unit:RegisterEvent("SunfuryGuard_Firebolt",15000, 0) Unit:RegisterEvent("SunfuryGuard_Blastwave",25000, 0) Unit:RegisterEvent("SunfuryGuard_Shield",40000, 0) end function SunfuryGuard_OnDied(Unit) Unit:SendChatMessage(11, 0, "Guards! Get him.... ughh..") Unit:RemoveEvents() end RegisterUnitEvent(101018, 1, "SunfuryGuard_OnCombat") RegisterUnitEvent(101018, 4, "SunfuryGuard_OnDied")
now he doesn't cast anything
can also try:
function SunfuryGuard_AvatarofFlame(Unit)
Unit:CastSpell(15636)
Unit:SendChatMessage(12, 0, "I'll melt the flesh off your bones!")
end
function SunfuryGuard_Firebolt(Unit)
Unit:FullCastSpellOnTarget(36906)
Unit:SendChatMessage(12, 0, "I'll tear your limb from limb!!")
end
function SunfuryGuard_Blastwave(Unit)
Unit:CastSpell(3627
Unit:SendChatMessage(12, 0, "The earth will melt under you!!")
end
function SunfuryGuard_Shield(Unit)
Unit:CastSpell(20697)
end
function SunfuryGuard_OnCombat(Unit, Event)
Unit:SendChatMessage(12, 0, "YOU THINK YOU CAN KILL ME!?")
Unit:RegisterEvent("SunfuryGuard_AvatarofFlame",50000, 0)
Unit:RegisterEvent("SunfuryGuard_Firebolt",15000, 0)
Unit:RegisterEvent("SunfuryGuard_Blastwave",25000, 0)
Unit:RegisterEvent("SunfuryGuard_Shield",40000, 0)
end
function SunfuryGuard_OnDied(Unit)
Unit:SendChatMessage(12, 0, "Guards! Get him.... ughh..")
Unit:RemoveEvents()
end
RegisterUnitEvent(101018, 1, "SunfuryGuard_OnCombat")
RegisterUnitEvent(101018, 4, "SunfuryGuard_OnDied")
this one worked for me
------------------------------------------------------
Knaur - Founder of The Norwegian Elite Team
The shield works now... but the firebolt still doesn't work
http://img185.imageshack.us/img185/4834/errorluaaa8.jpg
function SunfuryGuard_Firebolt(Unit, event, miscunit, misc)
Unit:FullCastSpellOnTarget(36906,Unit:GetClosestPlayer())
Unit:SendChatMessage(12, 0, "I'll tear your limb from limb!!")
end
also normal firebolt rank 8 (lvl 6 are 27267 not 36906
try that if the other fails
------------------------------------------------------
Knaur - Founder of The Norwegian Elite Team