Is my boss script correct? it wont work menu

User Tag List

Results 1 to 4 of 4
  1. #1
    popwar0012's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is my boss script correct? it wont work

    function RemoteControlledDwarf_OnKill(pUnit,Event)
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: Wha- That's Imposs......")
    end

    function RemoteControlledDwarf_EnterCombat(pUnit,Event)
    pUnit:SendChatMessage(14, 0, ""Rauckiss the Controller: You fools wont make it passed our high technology equiptment!")
    pUnit:RegisterEvent("phase_1",400000, 0)
    end

    -- +25% damage
    function phase_1(pUnit, Event)
    if pUnit:GetHealthPct() < 99 then
    pUnit:RemoveEvents();
    pUnit:FullCastSpellOnTarget(61902 ,pUnit:GetMainTank())
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: Activating Electrical System!")
    pUnit:RegisterEvent("phase_2",400000, 0)
    end
    end

    -- electrical Field
    function phase_2(pUnit, Event)
    if pUnit:GetHealthPct() < 90 then
    pUnit:RemoveEvents();
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: Fully powered!")
    pUnit:FullCastSpellOnTarget(43648,pUnit:GetClosestPlayer())
    pUnit:RegisterEvent("phase_3",400000, 0)
    end
    end

    -- De-Power
    function phase_3(pUnit, Event)
    if pUnit:GetHealthPct() < 80 then
    pUnit:RemoveEvents();
    pUnit:FullCastSpellOnTarget(61570,pUnit:GetClosestPlayer())
    pUnit:RegisterEvent("phase_4",400000, 0)
    end
    end

    -- Rinse and Repeat!
    function phase_4(pUnit, Event)
    if pUnit:GetHealthPct() < 70 then
    pUnit:RemoveEvents();
    pUnit:FullCastSpellOnTarget(43648,pUnit:GetRandomFriend())
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: Fully powered!")
    pUnit:RegisterEvent("phase_5",400000, 0)
    end
    end


    function phase_5(pUnit, Event)
    if pUnit:GetHealthPct() < 60 then
    pUnit:RemoveEvents();
    pUnit:FullCastSpellOnTarget(33183,pUnit:GetClosestPlayer())
    pUnit:RegisterEvent("phase_6",400000, 0)
    end
    end


    function phase_6(pUnit, Event)
    if pUnit:GetHealthPct() < 50 then
    pUnit:RemoveEvents();
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: Fully powered!")
    pUnit:FullCastSpellOnTarget(43648,pUnit:GetClosestPlayer())
    pUnit:RegisterEvent("phase_7",400000, 0)
    end
    end


    function phase_7(pUnit, Event)
    if pUnit:GetHealthPct() < 40 then
    pUnit:RemoveEvents();
    pUnit:FullCastSpellOnTarget(45589,pUnit:GetClosestPlayer())
    pUnit:RegisterEvent("phase_8",400000, 0)
    end
    end


    function phase_8(pUnit, Event)
    if pUnit:GetHealthPct() < 30 then
    pUnit:RemoveEvents();
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: Fully powered!")
    pUnit:FullCastSpellOnTarget(43648,pUnit:GetClosestPlayer())
    pUnit:RegisterEvent("phase_9",400000, 0)
    end
    end


    function phase_9(pUnit, Event)
    if pUnit:GetHealthPct() < 20 then
    pUnit:RemoveEvents();
    pUnit:FullCastSpellOnTarget(45589,pUnit:GetClosestPlayer())
    pUnit:RegisterEvent("phase_10",400000, 0)
    end
    end


    function phase_10(pUnit, Event)
    if pUnit:GetHealthPct() < 10 then
    pUnit:RemoveEvents();
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: Fully powered!")
    pUnit:FullCastSpellOnTarget(43648,pUnit:GetClosestPlayer())
    pUnit:RegisterEvent("phase_11",400000, 0)
    end
    end


    function phase_11(pUnit, Event)
    if pUnit:GetHealthPct() <9 then
    pUnit:RemoveEvents();
    pUnit:FullCastSpellOnTarget(64970,pUnit:GetRandomPlayer(0)
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: THIS IS THE END!!!!")
    pUnit:RegisterEvent("phase_12",400000, 0)
    end
    end


    function phase_12(pUnit, Event)
    if pUnit:GetHealthPct() <8 then
    pUnit:RemoveEvents();
    pUnit:FullCastSpellOnTarget(64970,pUnit:GetRandomPlayer(0)
    pUnit:RegisterEvent("phase_13",400000, 0)
    end
    end


    function phase_13(pUnit, Event)
    if pUnit:GetHealthPct() <7 then
    pUnit:RemoveEvents();
    pUnit:FullCastSpellOnTarget(64970,pUnit:GetRandomPlayer(0)
    pUnit:RegisterEvent("phase_14",400000, 0)
    end
    end


    function phase_14(pUnit, Event)
    if pUnit:GetHealthPct() <6 then
    pUnit:RemoveEvents();
    pUnit:FullCastSpellOnTarget(64970,pUnit:GetRandomPlayer(0)
    pUnit:RegisterEvent("RemoteControlledDwarf_Start",400000, 0)
    end
    end


    function RemoteControlledDwarf_Start(pUnit, Event)
    pUnit:RegisterEvent("phase_1",400000, 0)
    end


    RegisterUnitEvent(24723, 1, "RemoteControlledDwarf_Start")
    RegisterUnitEvent(24723, 3, "RemoteControlledDwarf_OnKill")
    RegisterUnitEvent(24723, 1, "RemoteControlledDwarf_EnterCombat")



    It doesnt effect the boss at all, whats goin down?

    Is my boss script correct? it wont work
  2. #2
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its because you used that old LUA Generator program, Try scripting it yourself.

  3. #3
    popwar0012's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i didnt use a lua generator

  4. #4
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function RemoteControlledDwarf_OnKill(pUnit,Event)
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: Wha- That's Imposs......")
    end
    
    function RemoteControlledDwarf_EnterCombat(pUnit,Event)
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: You fools wont make it passed our high technology equiptment!") -- You had two "" at the start of this
    pUnit:RegisterEvent("phase_1",1000, 0) -- You need to check every few seconds
    end
    
    -- +25% damage
    function phase_1(pUnit, Event)
    if pUnit:GetHealthPct() < 99 then
    pUnit:RemoveEvents() -- this is not C++, we do not need ;
    if pUnit:GetMainTank() ~= nil then -- Checking to see if there is a tank else it will error
    pUnit:FullCastSpellOnTarget(61902,pUnit:GetMainTank())
    end
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: Activating Electrical System!")
    pUnit:RegisterEvent("phase_2",2000, 0)
    end
    end
    
    -- electrical Field
    function phase_2(pUnit, Event)
    if pUnit:GetHealthPct() < 90 then
    pUnit:RemoveEvents() -- this is not C++, we do not need ;
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: Fully powered!")
    if pUnit:GetClosestPlayer() ~= nil then -- Checking to see if there is a tank else it will error
    pUnit:FullCastSpellOnTarget(43648,pUnit:GetClosestPlayer())
    pUnit:RegisterEvent("phase_3",2000, 0)
    end
    end
    
    -- De-Power
    function phase_3(pUnit, Event)
    if pUnit:GetHealthPct() < 80 then
    pUnit:RemoveEvents() -- this is not C++, we do not need ;
    if pUnit:GetClosestPlayer() ~= nil then -- Checking to see if there is a tank else it will error
    pUnit:FullCastSpellOnTarget(61570,pUnit:GetClosestPlayer())
    end
    pUnit:RegisterEvent("phase_4",2000, 0)
    end
    end
    
    -- Rinse and Repeat!
    function phase_4(pUnit, Event)
    if pUnit:GetHealthPct() < 70 then
    pUnit:RemoveEvents() -- this is not C++, we do not need ;
    if pUnit:GetRandomFriend() ~= nil then -- Checking to see if there is a tank else it will error
    pUnit:FullCastSpellOnTarget(43648,pUnit:GetRandomFriend()) -- I think this is broken (The command) so it will do nothing
    end
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: Fully powered!")
    pUnit:RegisterEvent("phase_5",2000, 0)
    end
    end
    
    
    function phase_5(pUnit, Event)
    if pUnit:GetHealthPct() < 60 then
    pUnit:RemoveEvents() -- this is not C++, we do not need ;
    if pUnit:GetClosestPlayer() ~= nil then -- Checking to see if there is a tank else it will error
    pUnit:FullCastSpellOnTarget(33183,pUnit:GetClosestPlayer())
    end
    pUnit:RegisterEvent("phase_6",2000, 0)
    end
    end
    
    
    function phase_6(pUnit, Event)
    if pUnit:GetHealthPct() < 50 then
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: Fully powered!")
    if pUnit:GetClosestPlayer() ~= nil then -- Checking to see if there is a tank else it will error
    pUnit:FullCastSpellOnTarget(43648,pUnit:GetClosestPlayer())
    end
    pUnit:RegisterEvent("phase_7",2000, 0)
    end
    end
    
    
    function phase_7(pUnit, Event)
    if pUnit:GetHealthPct() < 40 then
    pUnit:RemoveEvents()
    if pUnit:GetClosestPlayer() ~= nil then -- Checking to see if there is a tank else it will error
    pUnit:FullCastSpellOnTarget(45589,pUnit:GetClosestPlayer())
    end
    pUnit:RegisterEvent("phase_8",2000, 0)
    end
    end
    
    
    function phase_8(pUnit, Event)
    if pUnit:GetHealthPct() < 30 then
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: Fully powered!")
    if pUnit:GetClosestPlayer() ~= nil then -- Checking to see if there is a tank else it will error
    pUnit:FullCastSpellOnTarget(43648,pUnit:GetClosestPlayer())
    end
    pUnit:RegisterEvent("phase_9",2000, 0)
    end
    end
    
    
    function phase_9(pUnit, Event)
    if pUnit:GetHealthPct() < 20 then
    pUnit:RemoveEvents()
    if pUnit:GetClosestPlayer() ~= nil then -- Checking to see if there is a tank else it will error
    pUnit:FullCastSpellOnTarget(45589,pUnit:GetClosestPlayer())
    end
    pUnit:RegisterEvent("phase_10",2000, 0)
    end
    end
    
    
    function phase_10(pUnit, Event)
    if pUnit:GetHealthPct() < 10 then
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: Fully powered!")
    if pUnit:GetClosestPlayer() ~= nil then -- Checking to see if there is a tank else it will error
    pUnit:FullCastSpellOnTarget(43648,pUnit:GetClosestPlayer())
    end
    pUnit:RegisterEvent("phase_11",2000, 0)
    end
    end
    
    
    function phase_11(pUnit, Event)
    if pUnit:GetHealthPct() < 9 then
    pUnit:RemoveEvents()
    if pUnit:GetRandomPlayer(0) ~= nil then -- Checking to see if there is a tank else it will error
    pUnit:FullCastSpellOnTarget(64970,pUnit:GetRandomPlayer(0)) -- You missed a )
    end
    pUnit:SendChatMessage(14, 0, "Rauckiss the Controller: THIS IS THE END!!!!")
    pUnit:RegisterEvent("phase_12",2000, 0)
    end
    end
    
    
    function phase_12(pUnit, Event)
    if pUnit:GetHealthPct() < 8 then
    pUnit:RemoveEvents()
    if pUnit:GetRandomPlayer(0) ~= nil then -- Checking to see if there is a tank else it will error
    pUnit:FullCastSpellOnTarget(64970,pUnit:GetRandomPlayer(0)
    end
    pUnit:RegisterEvent("phase_13",2000, 0)
    end
    end
    
    
    function phase_13(pUnit, Event)
    if pUnit:GetHealthPct() < 7 then
    pUnit:RemoveEvents()
    if pUnit:GetRandomPlayer(0) ~= nil then -- Checking to see if there is a tank else it will error
    pUnit:FullCastSpellOnTarget(64970,pUnit:GetRandomPlayer(0)
    end
    pUnit:RegisterEvent("phase_14",2000, 0)
    end
    end
    
    
    function phase_14(pUnit, Event)
    if pUnit:GetHealthPct() < 6 then
    pUnit:RemoveEvents()
    if pUnit:GetRandomPlayer(0) ~= nil then -- Checking to see if there is a tank else it will error
    pUnit:FullCastSpellOnTarget(64970,pUnit:GetRandomPlayer(0)
    end
    pUnit:RegisterEvent("RemoteControlledDwarf_Start",2000, 0)
    end
    end
    
    
    function RemoteControlledDwarf_Start(pUnit, Event)
    pUnit:RegisterEvent("phase_1",2000, 0)
    end
    
    
    RegisterUnitEvent(24723, 1, "RemoteControlledDwarf_Start")
    RegisterUnitEvent(24723, 3, "RemoteControlledDwarf_OnKill")
    RegisterUnitEvent(24723, 1, "RemoteControlledDwarf_EnterCombat")

Similar Threads

  1. [Lua] My first own Boss Script does not work...
    By Dark Guild in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 04-11-2010, 09:53 PM
  2. [Lua] 100% Working Boss Script
    By Nymphx in forum WoW EMU General Releases
    Replies: 49
    Last Post: 02-17-2009, 04:58 PM
  3. [lua help] my lich king script wont work
    By bomsemann in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 01-31-2009, 09:17 PM
  4. Need somone to help me get Boss scripts working.
    By controlsx2 in forum World of Warcraft Emulator Servers
    Replies: 14
    Last Post: 05-07-2008, 04:37 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 05:49 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search