[help] need chek on Lua boss script menu

User Tag List

Results 1 to 4 of 4
  1. #1
    arthars1's Avatar Member
    Reputation
    9
    Join Date
    Nov 2007
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [help] need chek on Lua boss script

    My script doesn't seem to be wroking can i have a quick chek on it ?

    *EDIT fixed with Juicys diagnostic ty mate ^^

    [[ CREDITS for scripting to Arthars1 at MMOwned.com ]]




    function Lord_Phase1(pUnit, event)
    if pUnit:GetHealthPct() < 80 then
    pUnit:RemoveEvents()
    pUnit:SendChatMessage("Things are getting interesting!")
    pUnit:RegisterEvent("Boss_Spell1",1000,0)
    pUnit:RegisterEvent("Boss_Forcepunch1",40000,100)
    pUnit:RegisterEvent("Boss_Ravage1",30000,100)
    pUnit:RegisterEvent("Boss_Speedslash1",50000,100)
    pUnit:RegisterEvent("Lord_Phase2",1000,0)
    end
    end

    function Lord_Phase2(pUnit, event)
    if pUnit:GetHealthPct() < 50 then
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("Boss_Spell2",1000,0)
    pUnit:RegisterEvent("Boss_Forcepunch1",40000,100)
    pUnit:RegisterEvent("Boss_Ravage1",30000,100)
    pUnit:RegisterEvent("Boss_Speedslash1",50000,100)
    pUnit:RegisterEvent("Lord_Phase3",1000,0)
    end
    end

    function Lord_Phase3(pUnit, event)
    if pUnit:GetHealthPct() < 10 then
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("Boss_Spell3",1000,0)
    pUnit:RegisterEvent("Boss_Ravage1",30000,100)
    pUnit:RegisterEvent("Boss_Forcepunch1",40000,100)
    end
    end

    function Boss_Spell1(pUnit, event)
    pUnit:CastSpellOnTarget(40859, pUnit:GetRandomPlayer(7))
    pUnit:SendChatMessage(12,0,"Time for Fun!")
    end

    function Boss_Spell2(pUnit, event)
    pUnit:CastSpell(37764)
    pUnit:SendChatMessage(12,0,"Lets get down to business!")
    End

    function Boss_Spell3(pUnit, event)
    pUnit:CastSpell(7961)
    pUnit:Emote(15)
    pUnit:CastSpell(28131)
    pUnit:SendChatMessage(12,0,"Seems I have underestimated you... Let's get serious!")
    pUnit::ClearThreatList()
    end

    function Boss_Forcepunch1(pUnit, event)
    pUnit:CastSpell(24192)
    end

    function Boss_Ravage1(pUnit, event)
    pUnit:CastSpellOnTarget(24213, pUnit:GetClosestPlayer())
    end

    function Boss_Speedslash1(pUnit, event)
    pUnit:CastSpell(24192)
    End

    function Lord_OnCombat(pUnit, event)
    pUnit:SendChatMessage(12,0,"The time of your death as come...")
    pUnit:RegisterEvent("Lord_Phase1",1000,0)
    pUnit:RegisterEvent("Boss_Ravage1",30000,100)
    end

    function Lord_OnLeave(pUnit, event)
    end

    function Lord_OnKilledTarget(pUnit, event)
    pUnit:SendChatMessage(12,0,"Fools!")
    end

    function Lord_OnDied(pUnit, event)
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(12,0,"I have failed... But this is far from over!")
    end

    RegisterUnitEvent(XXXXXX,1,"Lord_OnCombat")
    RegisterUnitEvent(XXXXXX,2,"Lord_OnLeave")
    RegisterUnitEvent(XXXXXX,3,"Lord_OnKilledTarget")
    RegisterUnitEvent(XXXXXX,4,"Lord_OnDied")
    tell what i did wrong.
    Last edited by arthars1; 06-08-2008 at 09:24 PM. Reason: *EDIT fixed with Juicys diagnostic ty mate ^^

    [help] need chek on Lua boss script
  2. #2
    arthars1's Avatar Member
    Reputation
    9
    Join Date
    Nov 2007
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    other then the XXXXXX

    RegisterUnitEvent(XXXXXX,1,"Lord_OnCombat")
    RegisterUnitEvent(XXXXXX,2,"Lord_OnLeave")
    RegisterUnitEvent(XXXXXX,3,"Lord_OnKilledTarget")
    RegisterUnitEvent(XXXXXX,4,"Lord_OnDied")

  3. #3
    Juicyz's Avatar Active Member
    Reputation
    34
    Join Date
    Dec 2006
    Posts
    298
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    EWWW...
    pUnit:RemoveEvents();

    That needs to be
    pUnit:RemoveEvents() - without the;

    And also check a lot of your functions, U spelled some of them fonction



    If you still get errors ill rewrite your whole scripts.

    DA Gift From Mr. Blain

  4. #4
    arthars1's Avatar Member
    Reputation
    9
    Join Date
    Nov 2007
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    kk ty Juicys

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] LUA boss script
    By arthars1 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-08-2008, 07:11 PM
  4. [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
  5. LUA Boss Script Help
    By neurothymia in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-05-2008, 02:57 PM
All times are GMT -5. The time now is 04:30 PM. 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