Why wont my Boss cast spells? menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why wont my Boss cast spells?

    I have a level 40 boss here is the script i made him,
    Code:
    function EldaraBoss_OnCombat(pUnit, Event)
    pUnit:SendChatMessage(14, 0, "So you care to Defeat Me?")
    pUnit:RegisterEvent("EldaraBoss_90", 100, 0)
    end
    
    function EldaraBoss_OnLeaveCombat(pUnit, Event)
    pUnit:RemoveEvents()
    end
    
    function EldaraBoss_OnKillTarget(pUnit, Event)
    pUnit:SendChatMessage(14, 0, "Ha, See you Pityful Fools, You will Never Defeat Me")
    end
    
    function EldaraBoss_OnDeath(pUnit, Event)
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(14, 0, "NO! How can this be?!? I will be Back! You have Won!")
    pUnit:SendChatMessage(14, 0, "For Now. . . .")
    end
    
    RegisterUnitEvent(10519, 1, "EldaraBoss_OnCombat")
    RegisterUnitEvent(10519, 2, "EldaraBoss_OnLeaveCombat")
    RegisterUnitEvent(10519, 3, "EldaraBoss_OnKillTarget")
    RegisterUnitEvent(10519, 4, "EldaraBoss_OnDeath")
    
    function EldaraBoss_90(pUnit, Event)
    if pUnit:GetHealthPct() <= 90 then
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("EldaraBoss_75", 100, 0)
    pUnit:SendChatMessage(14, 0, "Is that the best you got? Take this!")
    pUnit:CastSpell(30413)
    end
    end
    
    function EldaraBoss_75(pUnit, Event)
    if pUnit:GetHealthPct() <= 75 then
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("EldaraBoss_50", 100, 0)
    pUnit:SendChatMessage(14, 0, "Come on! We dont have all day!")
    pUnit:CastSpell(53223)
    end
    end
    
    function EldaraBoss_50(pUnit, Event)
    if pUnit:GetHealthPct() <= 50 then
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("EldaraBoss_35", 100, 0)
    pUnit:SendChatMessage(14, 0, "You Had Better Give your Tank Some Heals!")
    pUnit:CastSpellOnTarget(48125, Unit:GetMainTank())
    end
    end
    
    function EldaraBoss_35(pUnit, Event)
    if pUnit:GetHealthPct() <= 35 then
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("EldaraBoss_15", 100, 0)
    pUnit:SendChatMessage(14, 0, "Argh! Now your Starting to Annoy me!")
    pUnit:CastSpell(34934)
    pUnit:CastSpell(48142)
    
    
    end
    end
    
    function EldaraBoss_15(pUnit, Event)
    if pUnit:GetHealthPct() <= 15 then
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("EldaraBoss_7", 100, 0)
    pUnit:RegisterEvent("EldaraBoss_En", 60, 4)
    pUnit:SendChatMessage(14, 0, "Now i mean Buisness")
    pUnit:CastSpell(42705)
    end
    end
    
    function EldaraBoss_En(pUnit, Event)
    pUnit:CastSpell(42705)
    end
    
    function EldaraBoss_7(pUnit, Event)
    if pUnit:GetHealthPct() <= 4 then
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("EldaraBoss_En", 100, 5)
    end
    end
    Hes doing the enrage but he wont do the AoE's liek Typhoon, Shadowfury or Volley hes also not doing the Shadow Word pain, is it because the boss level is lower than level of spells or is it something elsE?

    Why wont my Boss cast spells?
  2. #2
    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)
    Use FullCast not Cast. You'd be suprised how much that fixes.
    Also to cast a spell on a player it's pUnit:FullCastSpell(id, pUnit:GetRandomPlayer(0))
    You can change the syntex on what he casts on by looking up a guide.

  3. #3
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It was full cast i changed it to just Cast to see if that would change anything
    and there not spells to cast on players there AoE's like Shadowfury

  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)
    Check to see if the spells work in game by you casting them and if your getting any errors on script startup / in console on the phases.
    Also on phases, give it at least a second.

    pUnit:RegisterEvent("EldaraBoss_En", 60, 4) 60 = should be 60000 for 60 seconds. 60 will just crash it / make it not do anything

Similar Threads

  1. Player wont cast spell.
    By Rock Lee in forum WoW UI, Macros and Talent Specs
    Replies: 3
    Last Post: 08-08-2010, 05:57 PM
  2. [Question] hmm, how do i make a mob rapidly cast spells?
    By Creepfold in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 12-27-2007, 10:38 AM
  3. [GUIDE] - Scripting for Antrix, Making Mobs Talk, Cast Spells, etc
    By Greed in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 12-10-2007, 07:51 PM
  4. Why wont my Model Edits save?
    By Demon Angel in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 11-29-2007, 02:04 AM
  5. [Question] Why wont it work?
    By kekburtbhkeke in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 05-01-2007, 09:16 AM
All times are GMT -5. The time now is 02:17 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