|
You last visited: Today at 22:23
Advertisement
Heal/Target Group Member with least health [ENG]
Discussion on Heal/Target Group Member with least health [ENG] within the WoW Exploits, Hacks, Tools & Macros forum part of the World of Warcraft category.
12/10/2004, 14:19
|
#1
|
elite*gold: 0
Join Date: Nov 2004
Posts: 141
Received Thanks: 0
|
Quote:
Oh, it's possible. I've written a macro to do it. I'm away from WoW right now, but the code goes something like this:
(The obfuscated variable names are an unfortunate side-effect of the macro length limit.)
local L,P,u,h,m,p = 'player'
P = UnitHealth(L) / UnitHealthMax(L)
for i = 1,4 do
u = 'party' .. i
h = UnitHealth(u)
m = UnitHealthMax(u)
if h > 0 and m > 0 then
p = h / m
if p < P then
L = u
P = p
end
end
end
TargetUnit(L)
As a macro, it would appear as:
/script local L,P,u,h,m,p='player'; P=UnitHealth(L)/UnitHealthMax(L); for i=1,4 do u='party'..i; h=UnitHealth(u); m=UnitHealthMax(u); if h>0 and m>0 then p=h/m; if p<P then L=u; P=p; end end end TargetUnit(L);
And while you're at it, why not throw in a:
/cast Heal Spell(Rank 5000)
The above is nice and all for certain situations, but it doesn't take into account things like players being out of range, dueling someone your grouped with or other odd situations where you really don't want to heal the player with the lowest health.
edit: added a check to be sure players current health is greater than 0 (caught by Braxus)
- danboo
|
|
|
|
05/19/2007, 21:56
|
#2
|
elite*gold: 0
Join Date: Jan 2007
Posts: 12
Received Thanks: 0
|
target functions not possible in macros ..
lolol ... forget it xP
|
|
|
05/20/2007, 10:39
|
#3
|
elite*gold: 20
Join Date: Sep 2006
Posts: 1,100
Received Thanks: 184
|
/script targetUnit(); doesn't work any more you need to use the /tar command to target any thing with a makro
|
|
|
05/20/2007, 11:34
|
#4
|
elite*gold: 0
Join Date: Apr 2006
Posts: 2,524
Received Thanks: 74
|
get isxwow and you can use /script targetUnit();
tested with my priest in deadmines (lol), works
|
|
|
05/22/2007, 20:58
|
#5
|
elite*gold: 0
Join Date: Nov 2005
Posts: 167
Received Thanks: 15
|
was macht das genau?
|
|
|
05/23/2007, 15:54
|
#6
|
elite*gold: 0
Join Date: Aug 2005
Posts: 139
Received Thanks: 13
|
#1 Posted: Dec 10 2004, 15:19
#2 Posted: May 19 2007
...
|
|
|
06/03/2007, 12:57
|
#7
|
elite*gold: 0
Join Date: Oct 2005
Posts: 33
Received Thanks: 0
|
lol
|
|
|
06/03/2007, 14:07
|
#8
|
elite*gold: 0
Join Date: Apr 2006
Posts: 151
Received Thanks: 0
|
war wieder klar...
|
|
|
06/12/2007, 13:38
|
#9
|
elite*gold: 0
Join Date: Jun 2007
Posts: 1
Received Thanks: 0
|
gooood
|
|
|
 |
Similar Threads
|
[Help] Invalid Target/Cannot find Target(ZSZC)
05/29/2010 - SRO Private Server - 4 Replies
Some write they have Problems with ZSZC SRO-DB,
by mobs for example "Ishade/Penon/Ujigi(lvl50-56)",
in the Textbox right side down a message:
"Invalid Target" or " Cannot Find Target",
All have this Problem, a good message, i have the solution!
You need Use SRO-DB Bot V0.8 and NOT V0.9a!
+++Use this and you will have Fun by Botting+++
|
group member porten und grotte
04/18/2010 - Metin2 - 0 Replies
ja also ich wollte mal fragen welche datei man in dem ordner "pack" benötigt um gruppenmitglieder zu porten ich hab zwar schon nen pack ordner mit dieser funktion aber wenn ich den ganzen ordner in einen client schiebe funzt exe nichit mehr weiß einer welche dateien man dafür braucht? und welche datei bracuht man damit die grotte heller is (in dem p server is grotte dunkelblau und man sieht kaum was) ?
|
Heal oder Heal Rain??
07/07/2008 - Flyff - 22 Replies
was is besser also was stellt mehr hp wiederher heal oder heal rain ?
:> bitte um schnelle antwort :>
|
All times are GMT +1. The time now is 22:27.
|
|