Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I already have a way of storing what I want to attack in a variable, and can verify that's successful. All I need to know is how to properly cast at something with the name I've stored in said variable. Example

Var1 = "Jimmy" /cast [@Var1] Heal

The above obviously doesn't work, but I hope it shows what I'm trying to do.

No, I can't just target the thing I'm casting on. No, I can't just use focus, as I need focus for something else. The point is to maintain my current target and focus, and still cast on something else without something like a mouseover macro.

share|improve this question
    
There is a similar question here: gaming.stackexchange.com/questions/14677/… but it seems to not have a suitable answer. Perhaps the partial answers will help you? –  robalan Jul 23 '12 at 16:12
    
I've read all the way through that thread. It doesn't help. =/ –  Gl33m Jul 23 '12 at 18:25
    
I tried to do this without luck before. My guess - it's a limitation of their system. –  JoeB Jul 23 '12 at 18:32
add comment

1 Answer

up vote 6 down vote accepted

Casting is a protected function (as is also targeting, and a number of other critical functions) and can't be accessed by tainted code (i.e. lua scripts/addons).

This limitation was introduced way back (patch 2.0) when mods like Decursive trivialized game content by basically making you press one button repeatedly and playing the game for you.

For more info read up on "Secure Execution and Tainting"

The most you can do with casting is only via direct (untainted) use of /cast and /castsequence commands. More info on that you can find in the 'Macro options' section of the following article: http://www.wowwiki.com/Making_a_macro

share|improve this answer
    
Thanks. I was beginning to suspect this. Sigh Back to focus macros. –  Gl33m Jul 23 '12 at 23:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.