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 » Tue Dec 14, 2004 6:38 am

You can declare a timer that gets set to the DS duration in totalseconds -10 or so seconds on startup. I just use my buffbeg to ask for buffs as they wear off though.
[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]

Rebelt
decaying skeleton
decaying skeleton
Posts: 2
Joined: Tue Jan 18, 2005 6:30 pm

Post by Rebelt » Sun Jan 30, 2005 6:20 pm

Everytime I use it, it keeps targeting myself (not my target) and casting constantly (even though life full). I know its me. What am I doing wrong?

Here is my code:

|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 Playername.PctHPs}<70) {
/goto :heal
} else {
/goto :loop
}


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

/goto :loop

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

Post by heklin » Tue Feb 01, 2005 6:36 am

you need to specify your target,

example :

[code]
/target <playername>

/target somenamehere

[/code]

anotherwords, it should look like this..
[code]
#turbo

Sub Main

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


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

/goto :loop
[/code]


hmm weird, code tags dont wanna work ><

Rebelt
decaying skeleton
decaying skeleton
Posts: 2
Joined: Tue Jan 18, 2005 6:30 pm

Post by Rebelt » Wed Feb 02, 2005 11:42 am

Thank you

mauroxx
orc pawn
orc pawn
Posts: 24
Joined: Mon Jan 31, 2005 5:23 am

what about this?

Post by mauroxx » Thu Feb 03, 2005 6:11 am

Code: Select all

| Usage  /macro heal (Target name) (percentage) (Heal Spell) (delay)
| specify 0 for percentage if u wish to use  delay

#Include spell_routines.inc 
#Turbo
#Chat chat
#chat tell

/declare QHeal outer "Pious Remedy"
/declare bleedingtarget string outer

Sub Main 

:loop 
/if (${Me.Casting.ID}) { 
/goto :loop 
} 

/if (${Defined[Param0]}){
 /target ${param0} 
 } else {
 /echo No target specified, please specify one
 /endmacro
 } 

/if (${Defined[Param1]}){
 /if (${Defined[Param2]}){
  /echo I am gonna heal ${Param0} with ${Param2} at ${Param1}%
  /if (${target}.PctHPs}<${Param 1}) { 
  /call heal 
  }
 } else {
  /if (${Defined[Param2]}){
   /echo I am gonna heal ${Param0} with ${Param2} at default 70%
   /if (${target}.PctHPs}<70) { 
   /call heal 
   } else {
   /echo I am gonna heal ${Param0} with Complete Healing at default 70%
   /if (${target}.PctHPs}<70) { 
   /call cast Complete Healing
 }
}

/if (${Defined[Param3]}){
 /if (${Param2}==0){
  /echo I am gonna heal ${Param0} with ${Param2} with ${Param3} delay
  :spellrdy
  /if (${Me.SpellReady["${param2}"]}){
   /delay ${Param3}
   /call heal
   } else {
   /goto :spellrdy
   } 
  }
 } 
}

|in case someone needs a fast heal
/if (${ChatText.Equal[heal]} || ${ChatText.Equal[heal me]}){ 
 /target pc ${ChatSender} 
 /if (${Target.Type.Equal[PC]} && ${Target.Distance}<=150) { 
  /tell ${ChatSender} Quick Heal inc 
  /call cast ${QHeal}
 }
 /target ${Param0}
/return 
}

|in case someone tells you to heal a target with fast heal
/if (${ChatText.Equal[heal ${bleedingtarget]}){ 
 /target pc ${bleedingtarget} 
 /if (${Target.Type.Equal[PC]} && ${Target.Distance}<=150) { 
  /tell ${bleedingtarget} Quick Heal inc 
  /call cast ${QHeal}
 }
 /target ${Param0}
/return 
}

 
/goto :loop 


Sub heal 
 /if (${Me.SpellReady["${param2}"]}) /call cast "${param2}" nodismount 
  
/return  

this includes
/tell heal target
/tell heal
/mac supercleric.mac tank percentage spell
or
/mac supercleric.mac tank 0 spell delay


Mauroxx

mauroxx
orc pawn
orc pawn
Posts: 24
Joined: Mon Jan 31, 2005 5:23 am

grrr

Post by mauroxx » Thu Feb 03, 2005 7:30 am

plz help... i tryed to run this macro i posted but... i keep getting an error on if clauses like

Code: Select all

/if (${Defined[Param0]}){ 
 /target ${param0} 
 } else { 
 /echo No target specified, please specify one 
 /endmacro 
 } 
and i get :
Failed to parse /if ..... couldnt find command to execute... can anyone help?

Mauroxx[/quote]

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

Post by MacroFest » Mon Feb 07, 2005 3:43 pm

Why would you post a different macro under mine? From what I see your macro really isn't KISS, and it really isn't nice to advertise other macros in one's post... And then ask for help on the macro you posted because you can't get it to work...

mauroxx
orc pawn
orc pawn
Posts: 24
Joined: Mon Jan 31, 2005 5:23 am

because...

Post by mauroxx » Wed Feb 09, 2005 6:25 am

because:

a) is same kind of macro
b) only healing at 70 is completely unuseful since it depends how many mobs are hitting you so it needs more options
c) cause posting an improvement to a macro is not denied anywere

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

Post by MacroFest » Mon Feb 21, 2005 2:48 pm

a) It is nowhere near the same kind of macro, besides, it's far from KISS
b) It doesn't "only" heal at 70, you can change that variable, I guess you just can't read
c) sure, posting an improvement to a macro isn't denied anywhere, but it's not an improvement first of all. It's a totally different macro, that you can't even seem to get to work. People like my macro, you can start a new thread for yours. It's totally rude to post another macro on someone's thread..

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

Post by MacroFest » Mon Apr 18, 2005 4:23 pm

Bump ~ Recieved a PM asking about this macro, so I am bumping it!
:D Live on Macro, Live on :D

This is a very useful macro, use it as you wish!

pythag
orc pawn
orc pawn
Posts: 23
Joined: Sun Jan 23, 2005 5:25 am

possible suggestion to this

Post by pythag » Wed Apr 20, 2005 7:34 am

I am not anywhere good enough to do this - but if you could add a tell command to cast1 or cast2 ect would keep buffing simple if you were using a druid say,

ie

/tell <powerleveler> cast 1 = power leveler cast spell slot 1 (damage shield)

/tell <powerleveler> cast 2 = power leveler cast spell slot 2 (Temp)

you can then control the buffs from one toon and rather than other bot macros I have seen can be used for any level rather than a high level buffer. Also you could set a DS between fights, rather than having it mid fight

Think this would be a simple way of doing things - if its simple to do or not thats another question, but this is a great macro anyway thank you

Draconis
a lesser mummy
a lesser mummy
Posts: 40
Joined: Tue Mar 23, 2004 4:53 pm

Re: possible suggestion to this

Post by Draconis » Wed Apr 20, 2005 1:18 pm

pythag wrote:I am not anywhere good enough to do this - but if you could add a tell command to cast1 or cast2 ect would keep buffing simple if you were using a druid say,

ie

/tell <powerleveler> cast 1 = power leveler cast spell slot 1 (damage shield)

/tell <powerleveler> cast 2 = power leveler cast spell slot 2 (Temp)

you can then control the buffs from one toon and rather than other bot macros I have seen can be used for any level rather than a high level buffer. Also you could set a DS between fights, rather than having it mid fight

Think this would be a simple way of doing things - if its simple to do or not thats another question, but this is a great macro anyway thank you
something like this?
http://macroquest2.com/phpBB2/viewtopic ... 9826#79826

if so yay i get to dig my macro out again. and one of these days I need to switch it over to an IRC chat command system, ah well ill get to it.

pythag
orc pawn
orc pawn
Posts: 23
Joined: Sun Jan 23, 2005 5:25 am

Yeah that would do it

Post by pythag » Wed Apr 20, 2005 2:27 pm

Yes Draconis that does it although would love to see where/how that began could you PM me if you still have it?

Draconis
a lesser mummy
a lesser mummy
Posts: 40
Joined: Tue Mar 23, 2004 4:53 pm

Post by Draconis » Wed Apr 20, 2005 3:47 pm

Well that came from looking at this macro actually. I wanted to be able to add some stuff to it and do what you are asking. So I banged out this beauty http://www.macroquest2.com/phpBB2/viewtopic.php?t=10448 and after 3 pages of suggestions and over 6 ( i stopped counting at 6) rewrites, I came out with what is posted in the above thread.

pythag
orc pawn
orc pawn
Posts: 23
Joined: Sun Jan 23, 2005 5:25 am

Thank you for the help

Post by pythag » Thu Apr 21, 2005 8:01 am

Ok Draconis thanks for the starting point, will post what I make in a new thread, and leave this one alone. And thanks Macrofest gave me a real good starting point :wink: