HalestormXV Sentinos
Posts : 43 Join date : 2008-03-21
| Subject: [RELEASE] Kirus Sun Mar 23, 2008 9:42 am | |
| Elven Warrior. He is tank and spank demon hunter. This is one of my first scripts so it is not as advanced as my others. However this was the first script that I learned how to a do a model change. Wipp update with the SQL when i get the chance to. - Code:
-
function Kirus_Darkhand_Enrage(pUnit, event) if pUnit:GetHealthPct() < 30 then pUnit:RemoveEvents() pUnit:PlaySoundToSet(11305) pUnit:SetModel(20125) pUnit:CastSpell(33653) pUnit:CastSpell(36900) pUnit:SendChatMessage(11,0,"We all have our demons!") end end
function Kirus_Darkhand_onCombat (pUnit, Event) pUnit:PlaySoundToSet(11309) pUnit:SendChatMessage(11, 0, "At last I am liberated. It has been to long since I have tasted true freedom!") pUnit:RegisterEvent("Kirus_Darkhand_Enrage",1000,0) end
function Kirus_Darkhand_onLeaveCombat(pUnit, Event) pUnit:RemoveEvents() pUnit:RemoveAura(33653) pUnit:RemoveAura(36900) pUnit:SetModel(20130) end
function Kirus_Darkhand_onDeath(pUnit, Event) pUnit:RemoveEvents() pUnit:SendChatMessage(11, 0, "For....Hale..storm....!") pUnit:RemoveAura(33653) pUnit:RemoveAura(36900) pUnit:SetModel(20130) end
RegisterUnitEvent (200000, 1, "Kirus_Darkhand_onCombat") RegisterUnitEvent (200000, 2, "Kirus_Darkhand_onLeaveCombat") RegisterUnitEvent (200000, 4, "Kirus_Darkhand_onDeath") | |
|