1. #1

    [Weakauras] Cast spell on whisper

    can /run CastSpellByNAme("Aspect of the Fox") actually cast a spell as reaction to an event?
    Last edited by value; 2015-03-04 at 10:20 PM.

  2. #2
    Blademaster Odylle's Avatar
    7+ Year Old Account
    Join Date
    Mar 2015
    Location
    Netherlands
    Posts
    33
    Quote Originally Posted by value View Post
    can /run CastSpellByNAme("Aspect of the Fox") actually cast a spell as reaction to an event?
    No, you are talking automated play basically. Spellcasting in combat is a protected function as far as Im aware

  3. #3
    Mechagnome Krazyito's Avatar
    10+ Year Old Account
    Join Date
    Oct 2010
    Location
    Dallas, TX
    Posts
    561
    Yea its protected. You can probably do a lot of other things, such as make an aura display to remind you to cast said spell. I'm not entirely sure how I would detect a whisper as a trigger, but if its possible then sure.

    casting spells for sure is protected though and cannot be done automatically like that.

  4. #4
    Thank you for your replies, my druid gonna have to wait a half second for his fox and stop crying then -.-

  5. #5
    You can make a WeakAura which shows when you get a whisper and when you click on it, you cast the spell (Cover the entire screen with it and wherever you click, you cast it for example), but completely automated is not possible. (Unless you use 3rd party software)

    Code:
    function()    
        local r = WeakAuras.regions['Pet-BM-CallPet'].region /// The ".region" has to be the same name as the Aura itself
        local b = CreateFrame("Button", "WA_CallPet_BM", r, "SecureActionButtonTemplate")
        
        b:SetAllPoints()
        b:SetAttribute("unit", "player")
        b:SetAttribute("type", "spell")
        b:SetAttribute("Spell", "Call Pet 1")
        
        return true
    end
    This is a LUA code which - when you click on the aura - casts Call Pet 1. Just change:
    b:SetAttribute("Spell", "Call Pet 1")
    to
    b:SetAttribute("Spell", "Aspect of the Fox")


    This is the entire script for that WeakAura if you like to see how I did it btw.
    Code:
    dOeUiaqirc1IavFsKOgfjQtrsmlvq3IeAxIu9lrszysPogewMuXZibttKsxdsQTbj8nqbJtKI1bj5EIe5GsLwij1dvrMijs1fLsSrrs6JIeYibf5KGswPQ8ssKyMGsDtir7eKFssAOsILQc5PuMkuUkOqFfuuNvKeVLePmxrs1DfjWEv(Ru1GboSkTyP4XIyY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wZkdxDrKGh(Heaom3TxP0ceuQ0F6gJvyPxnkHFibChsa4gNuCC3erh8QlIe8yC9x8kmCvOhbiabia9iabiabAqLXs3ySsq7LSYQqpcqacqGguzS0veNUPiSYWlETa)qca)lEpZo4QqpcqacqGguzS0veNUPiSYWLZFm8dja88hhJWvHEeGaeGanOYyPRioDtryLHBFCmc)qca)0ngjqfwiac4QqpcqacqafvKaeObvglDfXPBkcRmC7JJr4hsa4hXO1OzcuHf4Qqpcqacqa6racqac4yP48eqCfMEShNE0JE0JE0JE0JE0JE0JE0JE0JE0JE0JE0JE0JE0JE0JE0JEZYLggn7fRGePU1z9N6Ay9gw3JWMXOzVKNvb2DtLwoQVfiSwocwqPOEyw1JGTsFwsjlH6(QACEMORz8jZkEXP))z3WMmzqDg2mXP))z3WMjN)4zz5kL8SINrZEz2TiHzLm3NRgowv)upJrZEzw3erh8eagZ3MiplxAy0SxQ4yK6wNzvAb2WEwjZ95pogHU18uplxAy0SxScsK6wN1FQRH1ByDpcBwUA4yv9ZYvdhRQ)uieXdh7Nv8Az2x8EMDZkzUV41Yupl)XXi0TMhuAsJctMv8It))ZUHnl)XXi0TMhuAsJctMmzwDaNJ9Nhu7zhRXLQdQt72ZW15V49Sj3KdYZSsDDWtGpwsXZAcoC2blFMLbHaXmFPgZP))zxEqkmRvvrImZYGuafTNv8It))ZUHnR41YSpwMmdxN)I3ZWkj4NblVWoK3eo1HvsWNtDThD)XHisC3L9bxDO4Lgx4y)SSCtoixjO9Ym1QIHPkkNjCRYPqm4g2G6SuffDqGcyqbfqrBf6adD6GafdPIOgggKcdQ9KjZYZ6KoI0BNE7zOheI02bXKna

  6. #6
    CastSpellByNAme is ofc protected, but if you find a way to trigger through whisper, you could try to use RunMacroText("/cast Aspect of the Fox")
    But I honestly dont know if that would be a case of automatic casting stuff, which isnt allowed

  7. #7
    Quote Originally Posted by chumii View Post
    CastSpellByNAme is ofc protected, but if you find a way to trigger through whisper, you could try to use RunMacroText("/cast Aspect of the Fox")
    But I honestly dont know if that would be a case of automatic casting stuff, which isnt allowed
    It would be, it isn't, and you can't do this. If you find a way to do it, expect Blizzard to block it as soon as it gets exploited to cheat in arenas, etc, just like every other exploit to auto-cast things is eventually blocked.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •