Boss Lua Script Need help menu

User Tag List

Results 1 to 1 of 1
  1. #1
    David2222's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Boss Lua Script Need help

    Hey, I've been trying to create a Boss for some time now but I can't seem to get the Lua part right. I've edited and fixed everything I could find but whenever I spawn my npc in game, nothing really happens. Here's the script:

    Code:
    function Arogos_Spell1(pUnit, Event)
     local plr = pUnit:GetRandomPlayer(0)
      if (plr ~= nil)
     then
     pUnit:CastSpellOnTarget(41078, plr)
     end
    end
    
    function Arogos_Spell2(pUnit, Event)
     pUnit:FullCastSpellOnTarget(41131, pUnit:GetMainTank())
    end
    
    function Arogos_Spell3(pUnit, Event)
     local plr = pUnit:GetRandomPlayer(0)
     if (plr ~= nil)
     then
     pUnit:CastSpellOnTarget(27810, plr)
     end
    end
    
    function Arogos_Phase1(Unit, Event)
     if Unit:GetHealthPct() < 75 then
       Unit:RemoveEvents()
       Unit:SendChatMessage(14, 0, "You're attacks are weak... this should be easy.")
       Unit:RegisterEvent("Arogos_Spell1",60000, 2)
       Unit:RegisterEvent("Arogos_Spell2",60000, 1)
       Unit:RegisterEvent("Arogos_Spell3",25000, 1)
       Unit:Register Event("Boss_Phase2",1000, 0)
     end
    end
    
    function Arogos_Spell4(pUnit, Event)
     local plr = pUnit:GetRandomPlayer(0)
     if (plr ~= nil)
     then
     pUnit:CastSpellOnTarget(55929, plr)
     end
    end
    
    function Arogos_Spell5(pUnit, Event)
     local plr = pUnit:GetRandomPlayer(0)
     if (plr ~= nil)
     then
     pUnit:CastSpellOnTarget(40832, plr)
     end
    end
    
    function Arogos_Phase2(Unit, Event)
     if Unit:GetHealthPct() < 50 then
       Unit:SendChatMessage(14, 0, "The reckoning has just begun!")
       Unit:RegisterEvent("Arogos_Spell4",30000, 2)
       Unit:RegisterEvent("Arogos_Spell5",60000, 1)
       Unit:Register Event("Boss_Phase3",1000, 0)
     end
    end
    
    
    function Arogos_Spell6(pUnit, Event)
     local plr = pUnit:GetRandomPlayer(0)
     if (plr ~= nil)
     then
     pUnit:CastSpellOnTarget(40683, plr)
     end
    end
    
    function Arogos_Spell7(pUnit, Event)
     local plr = pUnit:GetRandomPlayer(0)
     if (plr ~= nil)
     then
     pUnit:CastSpellOnTarget(40904, plr)
     end
    end
    
    function Arogos_Phase3(Unit, Event)
    if Unit:GetHealthPct() < 25 then
      Unit: SetScale(1.7)
      Unit:SendChatMessage(14, 0, "I am unstoppable!")
      Unit:RegisterEvent("Arogos_Spell6",1000, 0)
      Unit:RegisterEvent("Arogos_Spell7",30000, 1)
     end
    end
    
    function Arogos_OnCombat(Untit, Event)
      Unit:SendChatMessage(14, 0, "By pain of death, leave this place at once!")
      Unit:Register Event("Boss_Phase1",1000, 0)
      Unit:Register Event("Boss_Phase2",1000, 0)
      Unit:Register Event("Boss_Phase3",1000, 0)
    end
    
    function Arogos_OnLeaveCombat(Unit, Event)
      Unit:SendChatMessage(14, 0, "Only I hold the true power!")
      Unit:RemoveEvents()
    
    end
    
    function Arogos_OnKilledTarget(Unit)
      Unit:SendChatMessage(14, 0, "The secrets... they're all mine!")
    end
    
    function Arogos_Death(Unit)
      Unit:SendChatMessage(14, 0, "You'll never take them from me...")
      Unit:RemoveEvents()
    
    end
    
    
    RegisterUnitEvent(85000, 1, "Arogos_OnCombat")
    RegisterUnitEvent(85000, 2, "Arogos_OnLeaveCombat")
    RegisterUnitEvent(85000, 3, "Arogos_OnKilledTarget")
    RegisterUnitEvent(85000, 4, "Arogos_Death")
    I run on Ascent Arcemu and the lua file is saved in my Scripts folder

    If someone could tell me what I'm doing wrong that would be great
    (I'm still a noob at this)

    Boss Lua Script Need help

Similar Threads

  1. [Lua Script] [HELP] I need help for a boss lua script
    By simoxx in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 05-24-2012, 07:23 PM
  2. Noob LUA script, need some help.
    By pancakebuddy in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 05-14-2008, 08:33 AM
  3. [Release] Dragon boss lua script
    By Lich King in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 04-18-2008, 07:56 PM
  4. Booty bay - Scripting **Need help**
    By Ganoran in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 11-05-2007, 04:26 PM
  5. GM - Command scripts -need help-
    By Ganoran in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 11-03-2007, 02:32 PM
All times are GMT -5. The time now is 09:03 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