Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!
Moderator: MacroQuest Developers
-
Guest
Post
by Guest » Thu Nov 20, 2003 1:50 pm
it there anyway to tell what your targets total hit points are? i wrote a macro for PLing with a warrior and it starts to attack once the mob is less than 45% health but i wanted to add damage shields into the equasion but in order to do that i need to get the total hit points and then subtract damage shield damage and then divide by 2. i think i can do it but just wanted to know how to get the HP total if possible.
-
Mckorr
- Developer

- Posts: 2326
- Joined: Fri Oct 18, 2002 1:16 pm
- Location: Texas
Post
by Mckorr » Thu Nov 20, 2003 2:50 pm
Nope. All that info is server side. All you get sent to you is a percentage, for updating your target health guage.
-
Midnight
- a lesser mummy

- Posts: 68
- Joined: Wed Nov 12, 2003 12:51 pm
Post
by Midnight » Thu Nov 20, 2003 5:54 pm
It believe it actually does send HP to the client but it sends a -1 if you're not within melee range.. then the inaccurate HP reading jumps up and down according to some algorthym tied into the percentage. But the actual viewable HP are server side like McKorr said.
-
DreamKing
- a lesser mummy

- Posts: 79
- Joined: Tue Jun 10, 2003 12:29 am
Post
by DreamKing » Thu Nov 20, 2003 7:13 pm
Midnight wrote:It believe it actually does send HP to the client but it sends a -1 if you're not within melee range.. then the inaccurate HP reading jumps up and down according to some algorthym tied into the percentage. But the actual viewable HP are server side like McKorr said.
That used to be the case (not receiving updates when out of range) but I'm pretty sure it's been changed. I can target a mob someone is fighting and run across the zone and the updates still flow smoothly.
-
Xecros
- a lesser mummy

- Posts: 54
- Joined: Tue Apr 22, 2003 9:24 am
Post
by Xecros » Wed Nov 26, 2003 12:02 pm
This is what your looking for
Code: Select all
/if $target(hp,pct)<=45 <place whatever command you want here>