heal macro??

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

sangoku22
decaying skeleton
decaying skeleton
Posts: 9
Joined: Fri Jan 17, 2003 12:25 am

heal macro??

Post by sangoku22 » Tue Jan 21, 2003 1:10 pm

What would be a macro that heals you and your pet when hp gets below 50%? just by casting first gem spell??

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Post by Fippy » Tue Jan 21, 2003 4:30 pm

It would be a healing macro.
Fippy

This is my girl. But Rizwank had her first :-)
[img]http://www.btinternet.com/~artanor/images/fairy_bounce09.gif[/img]

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Tue Jan 21, 2003 4:49 pm

Salutations,

Code: Select all

sub main
:healloop
 /if n $char(hp,pct)<=50 /cast 1
/goto :healloop
/return
now I know thats simple but.. if you want more complex you can edit it to use spell sub or somethign...

sangoku22
decaying skeleton
decaying skeleton
Posts: 9
Joined: Fri Jan 17, 2003 12:25 am

Post by sangoku22 » Tue Jan 21, 2003 8:35 pm

ok thx!

but will this work for my pet??

azwildfire
Contributing Member
Contributing Member
Posts: 72
Joined: Fri Jul 05, 2002 5:12 am
Location: Phoenix arizona
Contact:

Post by azwildfire » Wed Jan 22, 2003 1:11 pm

Code: Select all

sub main 
:healloop 
/if n $char(hp,pct)<=50 /cast 1 
/if n $spawn($char(pet),hp,pct)<=50 /cast 1
/goto :healloop 
/return
that $spawn($char(pet),hp,pct) part is for your pet *it is what i use and works at least* but just be ware your pet health does not update unless you are with in range of it