This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Smart Rez Macroing
Post Reply
Return to board index
Post by
OldMenWithPandas
I'm playing around with resurrection macros atm, testing my limits. Not that it's usually particularly needed. This is just for fun.
So far I've got this:
#showtooltip Resurrection
/target
/cast [] Resurrection
Now the problem is that I'm not sure if it skips through to targets in range, or if it's possible to keep cycling through these targets if it doesn't. And willing subjects are hard to find.
The top one won't base anything on range. I was hoping that would be the one to cycle through the given targets. Doubt the bottom one's any good on the range skip either, and I'm certain it's not gonna cycle through the targets.
Ideally I would want some kind of random target parameter in there, I've seen a few scripts with them. That is, the "random" parameter, not random targeting specifically.
Any ideas?
Any help in testing and providing feedback is also appreciated.
EDIT: copy/pasta from WoW's forums. Maybe I should clarify, heh. When I say cycle, I mean as in you press the button repeatedly to cycle through the active targets.
The second one is definately preferable, since it doesn't require you to target anything, and I &*!@ing loathe sticky targeting :D
Post by
HighFive
This should be an addon.
Also, check this out:#showtooltip Resurrection
/cast (replace "macro_naem" with the name of your macro)
Post by
OldMenWithPandas
Yeah, tried the smartres addon, but I can't get the damned thing to do anything but show me the res bars of people ressing :p.
/z EditMacro("macro_naem", nil, nil, GetMacroBody("macro_naem"):gsub("(%d)", function(x) return x%4+1 end, 4))
What the.. what's this mumbojumbo even supposed to do?
Post by
HighFive
Replace the first four integers in the macro body with the result of x%4+1.
1->2
2->3
3->4
4->1
Cyclin'.
Post by
OldMenWithPandas
Hmm, I ought to remove the default function then, since it would otherwise hinder the cycling process by the looks of it. But great, this is the kind of thing I was looking for.
I won't be able to thoroughly test this out tho, since usually if the party wipes, I wipe ;)
Post by
OldMenWithPandas
Ofc, this is still very limited, what with only affecting party members. Wouldn't do much good in a raid, for instance. (Let's ignore the existence of Mass Resurrection for a sec ;) )
Btw, do I keep the quotation marks, or no?
EDIT: Just tested it, with and without quotations. Doesn't seem to help. It insists on ressing the first dead party member it finds. And that leads to a new problem. Without the cycling, once the first target is ressed, you still have to wait for said target to get up before it moves on to the next.
Now the macro is called Smart, and this is what I tried:
#showtooltip Resurrection
/cast Resurrection
/z EditMacro("Smart", nil, nil, GetMacroBody("Smart"):gsub("(%d)", function(x) return x%4+1 end, 4))
And again
#showtooltip Resurrection
/cast Resurrection
/z EditMacro(Smart, nil, nil, GetMacroBody(Smart):gsub("(%d)", function(x) return x%4+1 end, 4))
But without the quotation marks, on two targets.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.