This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Spirit Heal on Party member
Post Reply
Return to board index
Post by
Attalker
Hello there!
I've recently started PvPing as a beast mastery hunter and when running arena with my friend, I find it hard to target him and spirit heal him at times. I cannot use focus due to how it's on the healer of the other team in order to be able to interrupt him.
Is it possible to make a macro which would cast Spirit Heal on party member slot 2, which would be my team mate in 2v2, and then cast spirit heal on him without targeting him, or if possible, target him then switch back to my old target as quick as possible?
I would also be grateful if you could throw in a scatter shot on focus macro, due to how I am worthless at them.
Post by
HighFive
Your partner's unitID should be one of the following: party0, party1, party2, raid0, raid1, raid2. (test to determine)
To use this you must set up a macro such as:/use Spirit Heal (replace "party0" with the correct ID, of course)
The focus unitID is "focus", appropriately enough./use Scatter Shot
Post by
Ketho
Your partner's unitID should be one of the following: party0, party1, party2, raid0, raid1, raid2. (test to determine)
uhmm I thought party0 / raid0 didn't exist
Post by
GTMistral
Neither do I. Most, if not all, indexes in WoW start at 1, not 0. No idea if this comes from LUA or if this is a dev. choice. Unless
party0
,
arena0
,
raid0
,
partypet0
and
raidpet0
are in fact equivalent to
player
/
playerpet
. Will test later when I'm in an instance party.
edit: it does not exist.
Post by
pelf
Yeah, you can't target yourself with the
partyN
UnitID. Programmer's design logic says you can; so, I made that assertion long ago and found out I was wrong, myself.
Post by
GTMistral
That would be redundant programming.
Post by
pelf
Eh. Redundant, but
complete
... symmetrical. Symmetry is why I lay out complex method calls like this...
var result = CrazyMethod(
12,
"hello, there",
GetSomeOtherValue(
15,
ValueFetchType.Quickly
),
9.824M
);
I'm a party member, and a raid member. I can access myself with the right
raidN
unit, so why can't I get myself from the party too!
Post by
GTMistral
In what way is this complex?
It's only... (method definition would look something like that):
string CrazyMethod(int, string, string, float);
string CrazyMethod(int var1, string var2, string var3, float var4)
{
// Do something
return "";
}
Ok,
raid
N
will eventually return yourself. But you can't target yourself with
party
N
.
party
N
will always return the player found in
N
th slot in your party and you will never appear in one of those slot in your own interface. Party slots exclude yourself, raid slots don't.
Post by
pelf
My example was admittedly fairly poor in terms of the method parameters. Let me rephrase "crazy method calls" to "method calls with really long parameters. So...
var result = CrazyMethod(
"We the people of the United States, in order to form a more perfect union, establish justice...",
",...insure domestic tranquility, provide for the common defence, promote the general welfare...",
GetSomeOtherValue(
"..., and secure the blessings of liberty for ourselves and our posterity...,
ValueFetchType.Quickly
),
9.824M
);
Better?
:)
Post by
Jaydenkor
He should be able to just use a
/cast Spirit Heal
(there are no spaces or <> in the Spirit Heal
Post by
Ketho
What language are the above code snippets anyway? :s
Post by
GTMistral
What language are the above code snippets anyway? :s
Which one?
Post by
Ketho
All 3 of them* or are they different languages from eachother?
Anyway, was just wondering, so I could try to understand your pseudo code
Post by
pelf
Mine were C#.
Post by
GTMistral
C-based language. There are only a few differences between all C-based language. LUA is similar in some way, althouth it's an interpreted language, not compiled.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.