MMOCoin

Likes Likes:  0
Results 1 to 2 of 2

Thread: [Lua] Boss

  1. #1
    Graphics Guru

    Join Date
    Feb 2009
    Posts
    1,377
    Post Thanks / Like
    Rep Power
    24
    Reputation
    382

    [Lua] Boss

    Code:
    function KilShushia_OnCombat(Unit, Event)
    Unit:SendChatMessage(14, 0, "You killed my brother! Now its time for pay back!")
    Unit:RegisterEvent("KilShushia_ShadowBall", 1000, 1)
    Unit:RegisterEvent("KilShushia_Impale", 15000, 5)
    Unit:RegisterEvent("KilShushia_DeathAndDecay", 30000, 1000)
    Unit:RegisterEvent("KilShushia_Stun", 23000, 1)
    Unit:RegisterEvent("KilShushia_Buffs", 1000, 1)
    Unit:RegisterEvent("KilShushia_Phase2", 1000, 1)
    end
    
    function KilShushia_Phase2 (Unit, Event)
    if Unit:GetHealthPct() < 10 then
    Unit:RegisterEvent("KilShushia_Heal1", 1000, 1)
    Unit:RegisterEvent("KilShushia_Heal2", 6000, 1)
    Unit:RegisterEvent("KilShushia_Heal3", 9000, 1)
    Unit:RegisterEvent("KilShushia_Heal4", 12000, 1)
    end
    end
    
    function KilShushia_Heal1 (Unit, Event)
    Unit:FullCastSpellOnTarget(7393, Unit:GetMainTank())
    end
    
    function KilShushia_Heal2 (Unit, Event)
    Unit:FullCastSpellOnTarget(7393, Unit:GetMainTank())
    end
    
    function KilShushia_Heal3 (Unit, Event)
    Unit:FullCastSpellOnTarget(7393, Unit:GetMainTank())
    end
    
    function KilShushia_Heal4 (Unit, Event)
    Unit:FullCastSpellOnTarget(7393, Unit:GetMainTank())
    end
    
    function KilShushia_Buffs (Unit, Event)
    Unit:FullCastSpell(49284)
    Unit:FullCastSpell(48066)
    Unit:FullCastSpell(24021)
    end
    
    function KilShushia_Stun (Unit, Event)
    Unit:FullCastSpellOnTarget(36877, Unit:GetRandomPlayer(7))
    end
    
    function KilShushia_DeathAndDecay (Unit, Event)
    Unit:FullCastSpellOnTarget(71001, Unit:GetRandomPlayer(7))
    end
    
    function KilShushia_ShadowBall (Unit, Event)
    Unit:FullCastSpellOnTarget(71254, Unit:GetMainTank())
    end
    
    function KilShushia_Impale (Unit, Event)
    Unit:FullCastSpellOnTarget(59446, Unit:GetMainTank())
    end
    
    function KilShushia_OnLeaveCombat(Unit, Event)
    Unit:RemoveEvents() 
    end
    
    function KilShushia_OnKilledTarget(Unit, Event)
    end
    
    function KilShushia_OnDied(Unit, Event)
    Unit:RemoveEvents()
    end
    
    RegisterUnitEvent(600005, 1, "KilShushia_OnCombat")
    RegisterUnitEvent(600005, 2, "KilShushia_OnLeaveCombat")
    RegisterUnitEvent(600005, 3, "KilShushia_OnKilledTarget")
    RegisterUnitEvent(600005, 4, "KilShushia_OnDied")

    Credits to Maylinn



    › See More: [Lua] Boss

  2. #2
    Banned

    Join Date
    Sep 2009
    Posts
    90
    Post Thanks / Like
    Rep Power
    0
    Reputation
    103

    Register to remove this ad
    You should add a description.

    Thx for sharing.




  3. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •