
Results 1 to 10 of 15
Hybrid View
-
13-10-09, 10:00 PM #1
.. A moment ago you said that she doesn't only cast fireballs. Right now you say she doesn't do anything but speak?
me if I have helped you in anyway ^^ Example: Sharing a repack, answering questions... Well you know the rest xD. As long as I help you!
-
15-10-09, 04:18 PM #2Code:
function Ching_OnCombat(pUnit, Event) pUnit:SendChatMessage(14, 0, "Muhahaha, you have finally here...") pUnit:RegisterEvent("Phase_1", 1000, 0) end function Ching_OnDied(pUnit, Event) pUnit:RemoveEvents() end function Ching_LeaveCombat (pUnit, Event) pUnit:RemoveEvents() end function Phase_1(pUnit, Event) if pUnit:GetHealthPct() <= 75 then pUnit:RemoveEvents() pUnit:SendChatMessage(14, 0, "I will kill you, and eat you...!") pUnit:RegisterEvent("FireBall", 18392, 0) pUnit:RegisterEvent("Phase_2", 1000, 0) end end function Phase_2(pUnit, Event) if pUnit:GetHealthPct() <= 50 then pUnit:RemoveEvents() pUnit:RegisterEvent("FireBall", 18392, 0) pUnit:SendChatMessage(14, 0, "Hmmmm.....") end end pUnit:CastSpellOnTarget(25449, pUnit:GetRandomPlayer(0)) function HealingWave(pUnit, Event) pUnit:CastSpell(49273) end #GetClosestPlayer() --Gets the closest player. #GetMainTank() --Returns main tank. #GetAddTank() --Returns offtank. RegisterUnitEvent(98347, 1, "Ching_OnCombat") RegisterUnitEvent(98347, 2, "Ching_OnLeaveCombat") RegisterUnitEvent(98347, 4, "Ching_OnDied")
1 pUnit:RegisterEvent("FireBall", 18392, 0)
2 pUnit:RegisterEvent("FireBall", 18392, 0)
and .. there is other spells
pUnit:CastSpellOnTarget(25449, pUnit:GetRandomPlayer(0))
function HealingWave(pUnit, Event)
pUnit:CastSpell(49273)
Well i haven't tested but it looks like you made this lua in like 2 minutes try make a longer and add more spells, Less QQ more PewPew!No touching please.