[Warlock] Auto Interrupt Macro menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    InternetExplorer's Avatar Contributor
    Reputation
    136
    Join Date
    Sep 2007
    Posts
    420
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Warlock] Auto Interrupt Macro

    The function CastSpellByID() is supposed to be protected and only accessible by the Blizzard user Interface. And it is, but for some reason Blizzard forgot to protect it for certain instant pet spells. This means you can abuse it with lua to create scripts like auto cast spell X on event Y.

    Example macro: (very basic)
    /run local f=f or CreateFrame("Frame");f:SetScript('OnUpdate',function(s,e)if UnitExists('target')then local name=UnitCastingInfo("target")if name then CastSpellByID(19647)end end end)
    Save it & click it once and your pet (Felhunter) will now auto interrupt your current target whenever the target is starting to cast a spell.
    Last edited by InternetExplorer; 10-07-2014 at 03:49 PM.

    [Warlock] Auto Interrupt Macro
  2. #2
    Shameless's Avatar Elite User JD's Master CoreCoins Purchaser
    Reputation
    473
    Join Date
    Jul 2009
    Posts
    720
    Thanks G/R
    4/3
    Trade Feedback
    36 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyway to specify this to like a focus target or something?

  3. #3
    InternetExplorer's Avatar Contributor
    Reputation
    136
    Join Date
    Sep 2007
    Posts
    420
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    /run local f=f or CreateFrame("Frame");f:SetScript('OnUpdate',function(s,e)if UnitExists('focus')then local name=UnitCastingInfo("focus")if name then CastSpellByID(19647,"focus")end end end)
    Should work I think. u can replace focus with any enemy unit ID

Similar Threads

  1. My Auto Enchant Macro
    By Black Gull in forum WoW UI, Macros and Talent Specs
    Replies: 11
    Last Post: 11-01-2014, 01:47 PM
  2. [Warlock]Shard Management Macro!
    By EgologiC in forum WoW UI, Macros and Talent Specs
    Replies: 5
    Last Post: 04-21-2009, 11:05 AM
  3. Auto Enchant --Macro--
    By Black Gull in forum World of Warcraft Guides
    Replies: 1
    Last Post: 03-19-2009, 03:15 AM
  4. Shin's PvP Warlock Guide to Macros and Addons
    By Nemonik in forum WoW UI, Macros and Talent Specs
    Replies: 8
    Last Post: 03-02-2008, 08:23 AM
All times are GMT -5. The time now is 11:25 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