LUA Boss Script Help menu

User Tag List

Results 1 to 5 of 5
  1. #1
    neurothymia's Avatar Member
    Reputation
    1
    Join Date
    Apr 2007
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA Boss Script Help

    Hey Guys!

    Long time reader, first time poster.
    Ok I'm looking for a little help with my LUA Boss Script I'm trying to create.
    The problems i'm having is he doesn't seem to cast any of the spells i've put in there and also only summons one mob in phase 3 and none in phase 1 when hes suppose to summon 2 in phase 1 and 4 in phase 3. i can't figure it out so i've come to ask for help.
    I used the template that Snailz posted here (can't post full link) mmowned.com/forums/emulator-server-discussion/87619-need-lua-scripting-help
    to get me going.
    This is my first attempt at LUA by the way.

    Here is my script as it is at the moment with those problems. Any help would be great.
    Thanks

    Code:
    --[[ ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    #                                                                                                                                      
    #    Lord Necrogrim <The Voidmaster> by Vórtex Shade                                                                           
    #    Level 75 Elite 100,000 HP 80,000 Mana Demonoid/Caster                                                                      
    #    Six Phases - Original Form Demos, Overseer of Hate(npc=18535)                                                                
    #                                                                                                                
    #    Phase One at 95% Hp - Summons 2 mobs (spell=33322), Casts Arcane Missiles (spell=38704)                                                             
    #    Phase Two at 75% Hp - Casts Overload on nearest target (spell=29766), Casts Fireball (spell=38692)                                            
    
    #    Phase Three at 50% Hp - Morphs into a Deathknight Vindicator (ID=10729), Summons 4 Corrupted Fire Elemental's (spell=37201), Casts Shadowbolts (spell=18164)                    
    #    Phase Four at 25% Hp - Enrages (spell=13048), Morphs into Doom Lord Kazzak (ID=17887),  Casts Fireball (spell=38692)                                 
    #    Phase Five at 15% Hp - Enrages (spell=13048), Casts Shadowbolts (spell=18164), Demorphs into original form when dead                               
    #                                                                                                                              
    #    Phase One Text - You Can Do Better than that! Arise my Minions!                                                       
    #    Phase Two Text - Feel My Wrath!                                                                                            
    #    Phase Three Text - hahaha Keep Trying! Arise my Minions!                                                                           
    #    Phase Four Text - Now i Mean Business! hahaha                                                                               
    #    Phase Five Text -  I am the Voidmaster! You will not win!                                                                          
    #                                                                                                                           
    #    OnCombat Text - Ahh Fresh Meat!                                                                                       
    #    OnLeave Combat Text - You are not worthy                                                                                 
    #    OnKilledTarget text - A Glorious Kill                                                                                     
    #    OnDeath - I have Failed ...                                                                                       
    #                                                                                                                    
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||]]--
    
    
    
    function Boss_Missiles(Unit)
        Unit:CastSpell(38704)
    end
    
    function Boss_Overload(Unit)
        Unit:CastSpell(29766)
    end
    
    function Boss_Fireball(Unit)
        Unit:CastSpell(38692)
    end
    
    function Boss_Shadowbolt(Unit)
        Unit:CastSpell(18164)
    end
    
    function Boss_Summon(Unit)
        Unit:CastSpell(33322)
        Unit:CastSpell(33322)
    end
    
    function Boss_Enrage(Unit)
        Unit:CastSpell(13048)
    end
    
    function Boss_Summon2(Unit)
        Unit:CastSpell(37201)
        Unit:CastSpell(37201)
        Unit:CastSpell(37201)
        Unit:CastSpell(37201)
    end
    
    
    
    function Boss_Phase1(Unit, event)
        if Unit:GetHealthPct() < 95 then
            Unit:RemoveEvents()
            Unit:SendChatMessage(12, 0, "You Can Do Better than that! Arise my Minions!")
            Unit:CastSpell(333222)
            Unit:CastSpell(38704)
            Unit:RegisterEvent("Boss_Phase2",1000, 0)
        end
    end
    
    
    
    function Boss_Phase2(Unit, event)
        if Unit:GetHealthPct() < 75 then
            Unit:RemoveEvents()
            Unit:SetScale(1.7)
            Unit:CastSpell(29766)
            Unit:CastSpell(38692)
            Unit:SendChatMessage(12, 0, "Feel My Wrath!")
            Unit:RegisterEvent("Boss_Phase3",1000, 0)
        end
    end
    
    
    function Boss_Phase3(Unit, event)
        if Unit:GetHealthPct() < 50 then
            Unit:RemoveEvents()
            Unit:SetScale(1.7)
            Unit:SetModel(10729)
            Unit:SendChatMessage(12, 0, "hahaha Keep Trying! Arise my Minions!")
            Unit:CastSpell(37201)
            Unit:CastSpell(18164)
            Unit:RegisterEvent("Boss_Phase4",1000, 0)        
    
        end
    end
    
    
    function Boss_Phase4(Unit, event)
        if Unit:GetHealthPct() < 25 then
            Unit:RemoveEvents()
            Unit:SetScale(1.8)
            Unit:SetModel(17887)
            Unit:SendChatMessage(12, 0, "Now i Mean Business! hahaha")
            Unit:CastSpell(13048)
            Unit:CastSpell(38692)
            Unit:RegisterEvent("Boss_Phase5",1000, 0)        
    
        end
    end
    
    
    
    function Boss_Phase5(Unit, event)
        if Unit:GetHealthPct() < 15 then
            Unit:RemoveEvents()
            Unit:SetScale(1.8)
            Unit:CastSpell(13048)
            Unit:CastSpell(18164)
            Unit:SendChatMessage(12, 0, " I am the Voidmaster! You will not win!")
    
       end
    end
    
    
    function Boss_OnCombat(Unit, event)
        Unit:SendChatMessage(12, 0, "Ahh Fresh Meat!")
        Unit:RegisterEvent("Boss_Phase1",1000, 0)
        Unit:RegisterEvent("Boss_Phase2",1000, 0)
        Unit:RegisterEvent("Boss_Phase3",1000, 0)
        Unit:RegisterEvent("Boss_Phase4",1000, 0)
        Unit:RegisterEvent("Boss_Phase5",1000, 0)
    end
    
    
    function Boss_OnLeaveCombat(Unit, event)
        Unit:RemoveEvents()
        Unit:SendChatMessage(12, 0, "You are not Worthy")
        Unit:SetScale(1)
        Unit:SetModel(18291)
    end
    
    
    function Boss_OnKilledTarget(Unit)
        Unit:SendChatMessage(12, 0, "A Glorious Kill")
        Unit:CastSpell(13048)
    end
    
    
    function Boss_Death(Unit)
        Unit:SendChatMessage(12, 0, "I have Failed ...")
        Unit:RemoveEvents()
        Unit:SetScale(1)
        Unit:SetModel(18291)
    end
    
    RegisterUnitEvent(750000, 1, "Boss_OnCombat")
    RegisterUnitEvent(750000, 2, "Boss_OnLeaveCombat")
    RegisterUnitEvent(750000, 3, "Boss_OnKilledTarget")
    RegisterUnitEvent(750000, 4, "Boss_Death")

    LUA Boss Script Help
  2. #2
    Cheesy's Avatar Member
    Reputation
    85
    Join Date
    May 2007
    Posts
    314
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im sorry, Im not good at lua, at all, but just wanted to say, good you've started posting... Keep it on!
    I 'R' EPICNESS!

  3. #3
    neurothymia's Avatar Member
    Reputation
    1
    Join Date
    Apr 2007
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump ..anyone able to help figure this out?

  4. #4
    Meltoor's Avatar Contributor
    Reputation
    146
    Join Date
    Jan 2007
    Posts
    292
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    10min and I'll anwser... raiding

  5. #5
    Meltoor's Avatar Contributor
    Reputation
    146
    Join Date
    Jan 2007
    Posts
    292
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function Boss_OnLeaveCombat(Unit, event)
    I think you dont need the "event" there.
    Try instead
    function Boss_OnLeaveCombat(Unit)

Similar Threads

  1. [HELP] LUA Boss Script
    By Babbaa in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 07-30-2008, 07:21 AM
  2. [Help] LUA boss script error.
    By arthars1 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-09-2008, 08:23 PM
  3. [help] need chek on Lua boss script
    By arthars1 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-08-2008, 09:19 PM
  4. [help] LUA boss script
    By arthars1 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-08-2008, 07:11 PM
  5. [HELP] Lua boss script not working-solutions?
    By WinKIller0 in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 03-21-2008, 08:19 AM
All times are GMT -5. The time now is 11:38 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search