Tell a chars health

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

Moderator: MacroQuest Developers

Shocks
a ghoul
a ghoul
Posts: 101
Joined: Tue Feb 18, 2003 3:26 pm
Contact:

Tell a chars health

Post by Shocks » Tue May 27, 2003 4:16 pm

I am wondering if there is a way that works in the current version of MQ that will return a persons health. I wish to make my cleric heal me if I'm watching too much dam TV. I tried to use the old cleric macros but it’s no good. Any help would be great.


Thanks,
Shocks

User avatar
ap50
a snow griffon
a snow griffon
Posts: 425
Joined: Sun Aug 18, 2002 2:29 pm

Post by ap50 » Wed May 28, 2003 4:50 am

The best you can achieve is having a % figure to work with, using the $target(hp,pct) variable.
[color=yellow][size=92][b]Just because you're paranoid, it doesn't mean everyone isn't out to get you![/b][/size][/color]

fwiggles
a hill giant
a hill giant
Posts: 161
Joined: Mon Jun 17, 2002 8:29 pm

Post by fwiggles » Wed May 28, 2003 12:00 pm

i'm not sure if you mean your char, or the cleric checking your hp, but if yo uwant the cleric to check and heal you you coul use this macro i had lying around somewhere, i never tested but i think it should work.

Code: Select all

|PowerLevel.mac
|--Written by Fwiggles
|
|Directions: Have the person being healed targeted at the start of the macro. |Make sure you have your heal spell on Gem 1, or edit it in the macro.

#turbo
#include MacroKit.inc

Sub Main
/varset v1 $target(name)
/delay 1
/sendkey up up
/sendkey up down
:loop
/if $target(name)!=$v1 {
/target $v1
}
/if n $target(hp,pct)<30 {
/stand
/call CastSpell 1 6.2
}
/goto :loop

/return
|~~~~Note: I wrote this macro a while back so i don't know how well it works, i never tested it and i used celestial healing =P. You will hafta change numbers etc if you don't wanna use that
[color=red]Latest survey shows that 3 out of 4 people make up 75% of the world's population.[/color]

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Wed May 28, 2003 7:19 pm

you'd also need macrokit

compuboy
a ghoul
a ghoul
Posts: 108
Joined: Thu Apr 24, 2003 8:19 am
Location: Good Question, if anyone finds out, let me know

Post by compuboy » Wed May 28, 2003 9:29 pm

which is where.......
ya know, i cant think of anything profound to say here, so....

GO DEVS