WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Can macro determine if spell is on cooldown (https://www.wowinterface.com/forums/showthread.php?t=56933)

doofus 12-31-18 05:29 AM

Can macro determine if spell is on cooldown
 
I have a macro like this:
/cast Spell
/do other things


I would like it to be

if Spell not on cooldown
/cast Spell
/do other things
else
/do something else (or nothing)
end

Is that possible or will I have to script it inside an addon?

Kanegasi 12-31-18 09:30 AM

It is both not possible in a macro and not possible in an addon. You can have an addon check if a spell is on cooldown easily with GetSpellCooldown() but the “do stuff” and “do other stuff” parts cannot cast spells.

Seerah 12-31-18 04:23 PM

To clarify, you can not create logic in a macro (or addon) to cast spells based on a spell's cooldown or availability. Blizzard considers this automation, which is just a short step away from botting, and takes a hard stance against it.

doofus 12-31-18 05:28 PM

Academically, and as I know it, Blizzard allows "one key press = one action, per one client, of one to many clients" regardless how the "key press" made it to the "one client (of many)". That reasoning allows multiboxing.

For example I could run 3 copies WoW on the same machine, run an external, 3rd party application that switches between the WoW clients and sends them keystrokes (yes, really) and Blizzard is happy, as long as (1) I am physically present and (2) each keystroke input received by each WoW client is the result of one physical key press.

Yes I could not believe it either. There is so much scope there for abuse it defies belief.


Happy New Year everyone.

Kanegasi 12-31-18 07:21 PM

I would argue there's no room to abuse the rules given to multiboxers. You press a key, WoW receives that key. The caveat here is that WoW must receive the key that was pressed, nothing more, nothing different. The only "wiggle room" this provides is sending only a few clients the key press instead of all of them. WoW doesn't care if it actually doesn't receive a key press, that happens all the time when someone is alt-tabbed to another program.

Kind of off-topic to bring up multiboxing though.

doofus 01-01-19 04:57 AM

Kanegasi, a Windows application cannot ever know where a key it has received has come from, or indeed if it were a key that was pressed or some other activity, physical or virtual. I can explain in minute technical detail if you wish.

"Kind of off-topic to bring up multiboxing though."

To the contrary, multiboxing and botting are two sides of the same coin. You allow, actually encourage multiboxing, as Blizzard very publicly have done, and you also turn a blind eye to botting, because technically they are one and the same.

Seerah 01-01-19 01:10 PM

With multiboxing the player is still making the decisions. With botting, a program is. They are actually quite different.


All times are GMT -6. The time now is 11:46 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI