KISS HealTarget Macro (PLers Rejoice)

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

Moderator: MacroQuest Developers

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Mon Oct 04, 2004 8:51 pm

Could also add a check for a mount before attempting to sit. Good stuff though, it's kind of fun watching this one evolve
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

User avatar
peach
a hill giant
a hill giant
Posts: 156
Joined: Fri Sep 10, 2004 8:20 pm

Post by peach » Fri Oct 08, 2004 9:49 pm

Code: Select all

#turbo 

Sub Main 

:loop 
/if (${Me.Casting.ID}) /goto :loop 
/target Ibash 
/if (${Target.PctHPs}<30) { 
/goto :heal 
} else { 
/goto :loop 
} 


:heal 
/cast 1 
/delay 5 
/if (${Target.PctHPs}<30) { 
/goto :heal 
} else { 
/delay 30 
/if (${Me.Standing} && !${Me.Mount.ID}) /sit 
} 
/goto :loop 
[img]http://img23.exs.cx/img23/4702/search2.jpg[/img]

Airvz
Custom Builder
Custom Builder
Posts: 128
Joined: Tue Nov 18, 2003 3:36 pm

Post by Airvz » Sat Oct 09, 2004 1:06 pm

Reading this thread is great.. It is slowly building.. I'm waiting for it to keep the specific "plvl buffs" up on your plvl'd toon.

User avatar
MacroFest
orc pawn
orc pawn
Posts: 21
Joined: Thu Sep 30, 2004 9:34 pm

Post by MacroFest » Wed Oct 13, 2004 1:51 pm

Well! I'm glad you guys like it.... in that case.... /bump! :arrow: :arrow:

Code: Select all

|This is My First Try At Making A Macro 
|Where it Says "PctHPs}<70) {" Change the 70 to What % You Want To Heal At 
|Where It says "/cast 8", make sure you replace with whatever spell slot you'd like to continually cast @ that percent 
--------------------------------------------------- 
|v1.01 Added the "/if (${Me.Casting.ID})" Command to keep from spamming if you're already casting (thanks A_Druid_00) 
--------------------------------------------------- 
|v1.02 Added a "/target" command just put whoever you're looking to heal after /target (IE. /target Iamnoob) 
--------------------------------------------------- 
|v1.03 Changed some things to work correctly (thx lum and LPW) 
--------------------------------------------------- 
|v1.04 Changed to work with/without Mounts, will Auto-Sit Now. (thx peach and summar)
-----------------------------

#turbo 

Sub Main 

:loop 
/if (${Me.Casting.ID}) /goto :loop 
/target 
/if (${Target.PctHPs}<70) { 
/goto :heal 
} else { 
/goto :loop 
} 


:heal 
/cast 1 
/if (${Me.Standing} && !${Me.Mount.ID}) /sit 
} 

/goto :loop

User avatar
peach
a hill giant
a hill giant
Posts: 156
Joined: Fri Sep 10, 2004 8:20 pm

Post by peach » Wed Oct 13, 2004 9:55 pm

should update the first post :)

Twister
orc pawn
orc pawn
Posts: 10
Joined: Fri Apr 23, 2004 4:17 am

spellcast.inc

Post by Twister » Sat Oct 16, 2004 2:16 pm

Actually...(disagree with me if ya know better) you probably should use spellcast.inc because I know there is a version of it out there that has spellcast failure routines in it. that way if your spell fizzles or something it will auto recast.

User avatar
MacroFest
orc pawn
orc pawn
Posts: 21
Joined: Thu Sep 30, 2004 9:34 pm

Re: spellcast.inc

Post by MacroFest » Sat Oct 16, 2004 9:10 pm

Twister wrote:Actually...(disagree with me if ya know better) ...
Consider it done:

The macro is already going in a loop, in the case of a fizzle, it will continue the loop, making it recast as many times as it takes until the spell is completed and your target is over the applied percent.



... Checkmate

Chatwiththisname
a lesser mummy
a lesser mummy
Posts: 51
Joined: Sat Oct 16, 2004 8:09 pm
Location: Texas

update the origional post

Post by Chatwiththisname » Sat Oct 16, 2004 10:15 pm

Actually I like to see the Macro's Evolve, most people do append to their first post overwriting the code, and for us newb code writers the information from start to end helps, to actually see the difference of the code go from newb KISS to Elite, IMHO keep it going like this, btw love the code, and the posts, yet to see flaming :-D

User avatar
MacroFest
orc pawn
orc pawn
Posts: 21
Joined: Thu Sep 30, 2004 9:34 pm

Post by MacroFest » Sun Oct 17, 2004 11:58 am

Thanks Chatw, that means alot. Being a newbie on any message board opens up alot of chances for flaming. It's very nervewrecking when people talk your macro down. Thankfully, I haven't got any of that yet. I did alot on this macro, but it couldn't be what it is today, if it weren't for some of the kind people pointing out my mistakes, and adding some of thier own commands to make it work smoothly, and have more features than before..

These people I have added to my Version Tributes, which will stay on the macro forever and ever, for all to see.

This being my first macro, I think I did pretty good, and I'm glad that people like and/or love it! The closest thing I've come to coding, until now, was javascript :lol: it works though. Gave me the basic ideas, and creative thinking to put this together.

Thank You... All of you,

MacroFest

User avatar
MacroFest
orc pawn
orc pawn
Posts: 21
Joined: Thu Sep 30, 2004 9:34 pm

Post by MacroFest » Tue Oct 19, 2004 11:55 pm

I'm gonna bump this one more time, see if anyone has any more input on this or would like to comment. I don't think this will be stickied, my hopes have been crushed. No, kidding lol, I didn't expect it, your praise and assistance is enough...

Twister
orc pawn
orc pawn
Posts: 10
Joined: Fri Apr 23, 2004 4:17 am

Heal % and cast slot

Post by Twister » Wed Oct 20, 2004 12:25 pm

A better idea instead of modifying the macro for % and spell slot would be to allow the user to enable from command line like
/mac healer.mac 8 60 (8 is the spell slot and 60 is the percent) because certain situtations might require diffrent values for each (for example i always keep a heal memmed just not in the same slot on every spell profile. and sometimes always healing at a certain % is a waste of mana or may not be enough and you have to change the value really fast.

The current charge for this piece of advice is: 2 cents + tax. =)

User avatar
MacroFest
orc pawn
orc pawn
Posts: 21
Joined: Thu Sep 30, 2004 9:34 pm

Post by MacroFest » Wed Oct 20, 2004 5:01 pm

Got change for a $20?

Twister
orc pawn
orc pawn
Posts: 10
Joined: Fri Apr 23, 2004 4:17 am

Another 2 cents worth

Post by Twister » Thu Oct 21, 2004 12:52 am

Heres another couple ideas I think would be kinda nifty.

1. Add a section that says if pcthp is less than 30 then do a quickheal. (perfect example, unslowed mob in alot of the pop/god zones hits really hard really fast before a full heal (typically 10 seconds) can go off.
This could easily be added just above the initial /if ($(Target.PctHPs)

2. Another idea (since this is a PLing macro) Is to be able to feed in a list of names from the command line, and then the script would store those names into an array and target each of them, check their HP and if its below the limit then heal that person. (this way you could PL more than one toon at a time.

I may have some more for ya later, but I have this tiny window between the time I start to fall asleep and the time im so out of it that a nuke exploding at my feet wouldnt wake me that I can think clear enough to actually have decent ideas. and unfortuinatly that time has come...and gone.

User avatar
MacroFest
orc pawn
orc pawn
Posts: 21
Joined: Thu Sep 30, 2004 9:34 pm

Post by MacroFest » Sun Nov 07, 2004 3:25 pm

BuMp :arrow: :arrow:

heklin
decaying skeleton
decaying skeleton
Posts: 4
Joined: Wed Feb 18, 2004 6:36 am

Post by heklin » Mon Dec 13, 2004 11:59 pm

great, simple, and effective macro i love it!!

any ideas on modifying it to keep say, a DS on your target without making it massively complex? ive been fooing around and havent yet found a simple effective way to do it?

currently im useing an event to cast DS on target by tell command but by no means is it simple ><