Totem Destroying Script
As a result of Totemic Restoration, I've been using /script DestroyTotem(2) to remove Earthgrab Totem early to trigger the lower cooldown. However, the slow effect is not applied on the initial tick, only on subsequent ticks (every 2 sec), so I have to time my DestroyTotem manually. I am looking for a script basically does this:
Code:
/cast Earthgrab Totem I also would like if Tremor Totem could be instantly destroyed, or at least in under 0.5 seconds. :) |
Not possible.
Addons/scripts are not allowed to make combat decisions (and by not allowed I mean Blizzard has removed the functionality) |
It is possible; DestroyTotem is not a protected function. It does not require a hardware event, and can be called at any time by an addon or macro, including in combat.
However, there is not enough space in a macro to run a timer. I will probably write an addon later, since it seems useful. Edit: And done. |
Oh, my bad, my mind went directly to the old totemstomper macros (for destroying enemy totems in pvp)
Didn't realize this was referring to own totems, I'll learn to pay more attention next time :o On the other hand *arrgh* Code:
/use EarthGrab Totem |
Okay, it's an addon now:
http://www.wowinterface.com/downloads/info21610 |
Quote:
|
Quote:
|
I wouldn't advise anyone use that macro since it creates a new Frame object (which is immune to the Lua garbage collector) every time it's used.
|
Quote:
As noted this while it might work is a bad way to go about it as for every click it will create an anonymous frame and function for the garbage collector. Or... if you insist, don't attach my name to it :p:p Edit: Damn you Torhal, stop posting on top of me |
Quote:
It seems like an easier course of action would be to find an addon that provides /in (maybe this), and then use /cast Earthgrab Totem /in 2 /run DestroyTotem(2) |
Quote:
Additionally my macro was drycoded and more a tongue in cheek comment than anything. I can make it work with a couple parentheses is that the point? :p |
Having CreateFrame in a macro to create frames without reusing will cause, in the long run, a lot of frames just staying in the background. Imagine playing active PVP for an hour, you probably spawned a thousand frames that do nothing after the totem has been destroyed. :P
|
Not to mention that every one of those frames will be running OnUpdate scripts... which just made me notice another problem, which is that the OnUpdate script never terminates, so after 2 seconds, it will try to cancel your earth totem every time a new video frame is drawn, which can be anywhere from 20-100 or more times every second. You'd be unable to use any earth totems for the rest of the session after using one such macro. :p
|
|
Divided by zero? No, that guy just dropped his Nokia!
|
All times are GMT -6. The time now is 10:33 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI