looking for afk cleric mac

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

zxcvb
decaying skeleton
decaying skeleton
Posts: 9
Joined: Tue Aug 01, 2006 11:33 am

looking for afk cleric mac

Post by zxcvb » Mon Jul 09, 2007 7:47 am

im looking for an afk cleric mac that doesnt toggle between the mob in camp and the mt . any one got one that stays targeted on tank, but will heal the rest of the group if they get low?

discip1e
a ghoul
a ghoul
Posts: 133
Joined: Wed Dec 21, 2005 6:32 am

Post by discip1e » Mon Jul 09, 2007 9:05 am

pretty sure there is a macro that will suit your needs. . .

in the vip section :D
Virtual arguments with Virtual people in Virtual space is Virtually the most retarded thing in existence. . .

ralliiart
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Jun 13, 2007 11:07 am

Post by ralliiart » Wed Oct 10, 2007 5:58 pm

this will get you started... if you can't take it from here, you probably shouldn't be doing it in the first place:

(for this example, make sure your tank is the leader of the group - slot 1)

#define MA_SLOT 1 |(MA slot in group)
#define MA_HEAL_PCT 60 |(pct to heal MA only)
#define HEAL_PCT 80 |(pct to heal other group members)

.......main and stuff starts

/declare mem int

/for mem 0 to ${Group.Members}
/if (${mem}==MA_SLOT) {
/if (${Group.Member[${mem}].PctHPs}<MA_HEAL_PCT) {
/... target and heal the MA here - may want to do other checks - i.e. if they are even alive
}
} else {
/if (${Group.Member[${mem}].PctHPs}<HEAL_PCT) {
/...target and heal group member or yourself here
}
}
/next mem

...this is quick example of how to do this - as with everything, it could be done better with more planning and clever coding

P.S. physically targeting mobs and group members to check if they need healing, etc is a sloppy way of getting the job done

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Wed Oct 10, 2007 8:49 pm

Why are you using define in such a fashion?
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Wed Oct 10, 2007 9:02 pm

fearless wrote:Why are you using define in such a fashion?
Do wipes on LD make you horny, baby?

jacensolo
a snow griffon
a snow griffon
Posts: 427
Joined: Wed Feb 14, 2007 8:51 am
Location: Right behind you

Post by jacensolo » Wed Oct 10, 2007 9:12 pm

And having defines instead of variables or just constants (only used once each) will stop wipes on LD? Maybe you're running something I'm not, but as soon as one of my chars goes LD, he stops doing just about everything. So as far as I can see, theres not much difference.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Wed Oct 10, 2007 10:42 pm

If tank is at slot 5 and the beastlord goes LD, who is in slot 5?

Granted there are a lot of assumptions in there...

ralliiart
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Jun 13, 2007 11:07 am

Post by ralliiart » Thu Oct 11, 2007 10:50 am

i always use pragmatic defines/constants in any programming language when possible - especially in scripting - cuts down on memory usage, increases speed, etc.., while still allowing you to make changes across the board quickly and easily for situational changes.

define ftw

P.S. The script snippet I posted above is not set in stone, and is not ready to go. You can use defines, variables, or any method you want to assign the values. You can also check for the MA a different way if you want - check their name if you want instead. I prefer slot 1 for my own reasons. I only posted it as a guideline for how to loop through your group members to check their health and heal accordingly without having to physically target each one and/or the mob.

In my group of 4-5 (depending), my cleric melees the mob, always keeping yaulp going, and constantly running through a loop similar to the one above to check the health of everyone.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Thu Oct 11, 2007 12:28 pm

Code: Select all

 /if (${mem}==MA_SLOT) { 
should be

Code: Select all

 /if (${Group.Member[${i}].ID}==${Spawn[pc ${MA_NAME}].ID}) { 
so that your tank healing algorithm works regardless of which slot the tank is in...

ralliiart
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Jun 13, 2007 11:07 am

Post by ralliiart » Thu Oct 11, 2007 4:31 pm

Yup -- that's why i said, you can reference the tank however you want -- for my own reasons, the way my groups are setup, and not having to worry about lag or distance screwing up my references, I set my tank to slot 1.

The name reference works fine too.

My groups are built around my MA pulling and tanking for days on end... the MA slot never changes for me (ever), although the name sometimes changes. If the tank dies or LDs, the group is on hold until he returns. My macros aren't designed to work in other people's groups or to just help out while I play. The way I reference the tank just happens to work better for me - your way (or any way you choose) will probably work better for you, as long as you aren't physically targeting the tank to check him.