AFCleric.mac - Cleric automation macro (updated Aug 24th)

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

Seariz
a lesser mummy
a lesser mummy
Posts: 52
Joined: Thu Feb 06, 2003 1:22 pm
Location: The Computer
Contact:

Post by Seariz » Sun Jun 27, 2004 2:03 am

Every time you have me update it takes me forever to go back through the macro and figure out what i gata change again to make it heal at a lower percent =P
Every work group has one sadistic nut who makes the job unbearable for everyone else. That's why they hired me!

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

Post by Fuergrissa » Mon Jun 28, 2004 4:32 am

ignore post, Complete mental block and posted a reply from page 2 not even looking to see another 2 pages after.
Sorry.
[quote]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."[/quote]

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

Post by Fuergrissa » Mon Jun 28, 2004 1:36 pm

Great macro but it is allways better to update the very first post with any amendments to ensure everyone knows where to locate the latest version.
[quote]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."[/quote]

fantum409
a ghoul
a ghoul
Posts: 141
Joined: Fri Nov 14, 2003 10:03 pm

Post by fantum409 » Mon Jun 28, 2004 6:25 pm

The macro on pg1 is a dependable "working macro"
The version on pg3 of this post is kind of a beta... when I get the bugs worked out a little more it will go to the first page. But it's still a little rough.

Note to Wassup - not ignoring your idea, just been busy in RL... planning to add a "TrickyDA" sub option to handle low hp aggro when DA is on, as you suggested. Thanks for the idea.

fantum409
a ghoul
a ghoul
Posts: 141
Joined: Fri Nov 14, 2003 10:03 pm

Post by fantum409 » Mon Jun 28, 2004 9:55 pm

Updated the "beta" version of this on pg3 of this thread, added a bunch of requested stuff. The stable one is still on pg1, but I could use any feedback on the "beta" if people are willing to test it. =)

leptoid
a lesser mummy
a lesser mummy
Posts: 35
Joined: Tue May 11, 2004 4:47 pm

Post by leptoid » Fri Jul 02, 2004 2:51 pm

you have too much time on your hands. JK. Wanna PM me and tell me how you figured out that whole thing? It's huge! It should be in a museum as a piece of art... =D

Keep up the good work.

fantum409
a ghoul
a ghoul
Posts: 141
Joined: Fri Nov 14, 2003 10:03 pm

Post by fantum409 » Sat Jul 03, 2004 1:40 am

Pg 1 post updated with all the new stuff from pg3 "beta", hopefully the bugs are worked out now.
Added Wassup's DA handling suggestion where hp buffs are clicked off when DA is on, in order to get HP above low hp aggro threshold, then buffs will be requested via tells to ${NearestSpawn[pc guild shm]} etc

I'll be watching this thread this weekend, hopefully work out any bugs quickly. Thanks for the feedback~

DumbStruck
a ghoul
a ghoul
Posts: 125
Joined: Fri Apr 30, 2004 8:46 am

Post by DumbStruck » Sat Jul 03, 2004 8:32 am

i love this macro when trying to powerlvl my beast it works great but when grouped it didnt seem to work as well for me ..

1st time i tried it my group make up was 2 wars , beast , cleric and some others misc chars .. It constantly was switching targets rapidly between the 2 wars (im sure thats intended) but when came time to heal thats where the problem was i never seemed to get the heal off for either war . was using syntax /macro cleric 50 (so ch would cast on war at 50 %) here in lies my problem . should i of requested macro in a different syntax ?

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Sat Jul 03, 2004 9:36 am

Drum, when you say that you never got a heal off on the tanks in group do you mean it stopped casting in middle, or that the tank died?

Some places require you to start a CH at 75% or higher to make sure it lands in time to keep them alive. Not saying this is the issue, but more info is needed to be able to know what the cause(s) may be.

It would be nice if a watchdog could be put into this where it takes in account how fast the tank(s) are dying and start heal at such a time as to ensure the tank has the best chance of surviving based on how fast they are dying, and if need be spot healing before CH. I am sure it is doable, even if it might be alittle difficult.

fantum409
a ghoul
a ghoul
Posts: 141
Joined: Fri Nov 14, 2003 10:03 pm

Post by fantum409 » Sat Jul 03, 2004 12:22 pm

It would be possible to make a "watchdog" approach to timing the heals, but it isn't my goal with this macro to do that, mainly because I suspect there will be more tendency to kill tanks. I would rather chance wasting mana and healing a little early than chance the macro waiting longer to initiate a cast, and then have an add kill the tank. The macro would need more supervision using the "watchdog" approach, I think.
The present logic addresses it a little bit in the tankwatch part, because if the tank drops below ${Math.Calc[${healpoint}*0.7]} it will patch heal instead of CH. Or similar syntax... What was intended there was to say if the tank drops in HP so fast that you couldn't initiate CH on time, use a faster heal. Perhaps if I added a check of tank HP during the CH cast, in my CheckHP sub, such that if I'm casting CH and it has more then 5 secs to go and TankHP is less than a given percentage, interrupt cast and cast patchheal instead.
Will think it over, as several variables are involved and CheckHP needs to be kept small and efficient. (if you think of a better way to code it, feel free to post it or /msg me, I like to take hints whenever I can get them)

And yes, DumbStruck, please fill in the details as much as you can, and I'll try to ferret out the problem. Did the cleric spam the group with alternating messages about healing one tank then the other? Did it initiate casting then interrupt and switch, did it just alternate targets and never initiate casting? Did you change any of the parameters in the beginning of the macro? What were the Tank HP percentages when it was doing that?
The more specific you can be, the easier it is for me to find my error. And if at any point you saw errors in the MQ2 chat window, please take note of those as well.

I don't have 2 tank-types to group with to troubleshoot that, but will be interested to follow up on that problem you describe.

Thanks for the feedback guys.

leptoid
a lesser mummy
a lesser mummy
Posts: 35
Joined: Tue May 11, 2004 4:47 pm

Re: AFCleric.mac - Cleric automation macro

Post by leptoid » Sat Jul 03, 2004 8:09 pm

fantum409 wrote:Please give feedback. :smile:

Note: this uses spell_routines.inc from the snippets forum. (Nice one rusty~)
Where do I save spell_routines.inc at or is it incorportated into your macro? My other question is do I have to load spell_routines.inc and how would I do that? If you incoporated it into your macro, obviously that answers my other question.

Thanks
Lep

User avatar
Synergy
orc pawn
orc pawn
Posts: 19
Joined: Thu Nov 27, 2003 1:44 pm
Location: USA

Post by Synergy » Sat Jul 03, 2004 8:48 pm

leptoid wrote:Where do I save spell_routines.inc at or is it incorportated into your macro? My other question is do I have to load spell_routines.inc and how would I do that?
spell_routines.inc just needs to be saved in your macros directory (same directory as the afcleric.mac file. You do not need to load it, compile it or do anything special, just have the file there.

Hope that helps
I speak fluent Lorem Ipsum.

fantum409
a ghoul
a ghoul
Posts: 141
Joined: Fri Nov 14, 2003 10:03 pm

Post by fantum409 » Sun Jul 04, 2004 10:44 am

DumbStruck I may have found the problem but if you read this, please reply with any details you might have.

I found a bug which could have caused a second tank in the group to not get healed if the specified healpct was less than 60 and conditions were just right. This would have caused the targets to vascillate back and forth, but not sure why MT wasn't getting healed.

DumbStruck is it possible that you didn't have one of the 2 tanks designated as MT, and had instead targeted self or someone else when you ran the macro? In that case both of your tanks could have been ignored.

Anyway, the macro is updated, but I don't have much time for testing due to other festivities going on today.

Happy Fourth!

DumbStruck
a ghoul
a ghoul
Posts: 125
Joined: Fri Apr 30, 2004 8:46 am

Post by DumbStruck » Sun Jul 04, 2004 12:04 pm

HAppy 4th to every one .. Hey fantum i know u have taken on a thankless job as with all the programmers .. I want to thank you ... The situation i ran into was .

I was in Karnors Castle , had ch set at 50 % (plenty of time to heal a tank in that zone) And yes if i am not mistaken the macro kept switching back between the two tanks as though deciding which tank to heal and both went below threshold then it started to ch at a lower % then 50 .. Then interupted and tried to patach heal but was to late(tank 1 down) tried to pick up on Patch heal on second tank (tank 2 down) Mind u this was a while ago before u put up the beta so details are sketchy .

my cleric is lvl 55 and could just of been becuase i had the wrong spells chosen for the senario i hardly play the cleric so my skills are rather rusty .

i have divine light as patch heal , celestial healing in place of supernal light and of course ch ..

once again thanx for your continued support on a great macro ..

fantum409
a ghoul
a ghoul
Posts: 141
Joined: Fri Nov 14, 2003 10:03 pm

Post by fantum409 » Sun Jul 04, 2004 12:23 pm

OK, thanks for replying with the details DumbStruck. Should be all set now. I don't think you'll have that problem with current version.