pet health

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

Moderator: MacroQuest Developers

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

pet health

Post by azwildfire » Mon Jan 20, 2003 11:33 am

how do i get the health of my pet reported? is it a variable like $char(pet,hp) or something similar?

THanks

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

Post by L124RD » Mon Jan 20, 2003 1:09 pm

Salutations,
get the id of your pet and then $spawn(id,hp,pct)

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Post by SingleServing » Mon Jan 20, 2003 8:26 pm

L124RD wrote:Salutations,
get the id of your pet and then $spawn(id,hp,pct)
$spawn($char(pet),hp,pct)

?
[color=DarkBlue]Everything,[/color] [color=DarkBlue][b]is[/b][/color] [color=black]black[/color] [color=DarkBlue]and[/color] [color=white]white[/color][color=DarkBlue], when you zoom out it looks[/color] [color=gray]grey[/color][color=DarkBlue].[/color]

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 12:45 am

Salutations,
I don't know what $char(pet) returns... you may just get to use $char(pet,hp,cur) or something... anyone used $char(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:08 pm

$spawn($char(pet),hp,pct)


that works... thank you ...