Cooldowns on Spells? menu

User Tag List

Results 1 to 3 of 3
  1. #1
    choweyiii's Avatar Contributor
    Reputation
    91
    Join Date
    Aug 2010
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cooldowns on Spells?

    I made a boss, but he just spams 1 spell over and over until he's low on mana, which triggers some phases, how can I add a cooldown to the spell, to make him more mana efficient? +Rep for anyone who can help. :]

    Here's the script so far:

    Code:
    function AllianceElemental_OnCombat(Unit, Event)
    Unit:CastSpellAoF(Unit:GetX(), Unit:GetY(), Unit:GetZ(), 26607)
    Unit:RegisterEvent("AllianceElemental_FrostNova", 1000, 0)
    Unit:RegisterEvent("AllianceElemental_FrostBolt", 1000, 0)
    Unit:RegisterEvent("AllianceElemental_OoM", 1000, 0)
    end
    
    function AllianceElemental_OoM(Unit, Event)
    	if Unit:GetManaPct() <= 10 then
    		Unit:SendChatMessage(12, 0, "|cFF000000Out of Mana! :( Don't hurt me while I regain it.")
    		Unit:CastSpell(30254)
    		Unit:CastSpell(31539)
    		Unit:RegisterEvent("AllianceElemental_Restored_Mana",1000 ,0)
    		end
    end
    
    function AllianceElemental_Restored_Mana(Unit, Event)
    	if Unit:GetManaPct() >= 99 then
    		Unit:CastSpell(31249)
    		Unit:SendChatMessage(12, 0, "|cFF000000Yay! My mana has been restored! :>")
    		Unit:RemoveAura(30254)
    		Unit:RemoveAura(31539)
    		Unit:RegisterEvent("AllianceElemental_FrostBolt", 1000, 0)
    		end
    end
    
    function AllianceElemental_FrostBolt(Unit, Event)
    Unit:CastSpellOnTarget(31249)  -- This is the spell I want a cool down on.
    Unit:WipeTargetList()
    Unit:ClearHateList()
    end
    
    function AllianceElemental_FrostNova(Unit, Event)
    	if Unit:GetHealthPct() <= 38 then
    		Unit:FullCastSpellOnTarget(31249, Unit:GetMainTank(0))
    		Unit:CastSpell(72259)
    	end
    end
    
    function AllianceElemental_OnDied(Unit, Event)
    Unit:ReturnToSpawnPoint()
    Unit:Despawn(6000, 3500)
    Unit:SendChatMessage(12, 0, "|cFFFF3300Ouch! |cFF000000Why?...")
    end
    
    function AllianceElemental_OnKilledTarget(Unit, Event)
    Unit:CastSpell(43186)
    Unit:CastSpell(43186)
    end
    
    RegisterUnitEvent(10955, 1, "AllianceElemental_OnCombat")
    RegisterUnitEvent(10955, 4, "AllianceElemental_OnDied")
    RegisterUnitEvent(10955, 3, "AllianceElemental_OnKilledTarget")

    Cooldowns on Spells?
  2. #2
    Pharcide's Avatar Member
    Reputation
    18
    Join Date
    Jul 2009
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unit:RegisterEvent("AllianceElemental_FrostNova", 1000, 0)
    that value in red is how often the function is called (in milliseconds), so just raise if you want it to happen in larger intervals

  3. #3
    choweyiii's Avatar Contributor
    Reputation
    91
    Join Date
    Aug 2010
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! +Rep

Similar Threads

  1. Spell cooldowns and Spell.dbc edititng
    By RYUchan in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 06-11-2009, 11:53 AM
  2. Reset cooldowns on spells instantly
    By Alucardd in forum World of Warcraft Exploits
    Replies: 45
    Last Post: 06-25-2008, 03:48 AM
  3. [Spell swap] Flashing enemy Cooldowns
    By ichigo94 in forum World of Warcraft Model Editing
    Replies: 15
    Last Post: 05-16-2008, 08:02 AM
  4. No Global-Cooldown on any spell/ability. [NOT WPE]
    By shadeburn in forum WoW EMU Exploits & Bugs
    Replies: 6
    Last Post: 04-07-2008, 08:30 AM
  5. No more Global Cooldown on your spells.
    By zephiroth in forum World of Warcraft Bots and Programs
    Replies: 31
    Last Post: 03-23-2008, 10:02 PM
All times are GMT -5. The time now is 07:54 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