Hi guys,
I found a PQR PvP Ret profile that I like quite a lot (Dominium Ret PvP - http://dl.dropbox.com/u/46903116/Domi%20premop%20v4.rar) - credit to the author. It was made for Pre-MOP, but it still works perfectly so far as I can tell. I was hoping someone could help me edit one small thing in this area of code -
PHP Code:
local sh = select(4, UnitAura("player", "Selfless Healer"))
local myHp = 100 * UnitHealth("player") / UnitHealthMax("player")
local tarHp = 100 * UnitHealth("target") / UnitHealthMax("target")
local p1Hp = 100 * UnitHealth("party1") / UnitHealthMax("party1")
local p2Hp = 100 * UnitHealth("party2") / UnitHealthMax("party2")
local p3Hp = 100 * UnitHealth("party3") / UnitHealthMax("party3")
local p4Hp = 100 * UnitHealth("party4") / UnitHealthMax("party4")
local p5Hp = 100 * UnitHealth("party5") / UnitHealthMax("party5")
if myHp < 60 and sh == 3 then
CastSpellByName(GetSpellInfo(19750), "player")
end
if sh == 3 and p1Hp < 65 and PQR_IsOutOfSight("party1") == false and IsSpellInRange("Word of Glory", "party1") == 1 and not UnitIsEnemy("party1", "player") then
CastSpellByName(GetSpellInfo(19750), "party1")
end
if sh == 3 and p2Hp < 65 and PQR_IsOutOfSight("party2") == false and IsSpellInRange("Word of Glory", "party2") == 1 and not UnitIsEnemy("party2", "player") then
CastSpellByName(GetSpellInfo(19750), "party2")
end
if sh == 3 and p3Hp < 65 and PQR_IsOutOfSight("party3") == false and IsSpellInRange("Word of Glory", "party3") == 1 and not UnitIsEnemy("party3", "player") then
CastSpellByName(GetSpellInfo(19750), "party3")
end
if sh == 3 and p4Hp < 65 and PQR_IsOutOfSight("party4") == false and IsSpellInRange("Word of Glory", "party4") == 1 and not UnitIsEnemy("party4", "player") then
CastSpellByName(GetSpellInfo(19750), "party4")
end
if sh == 3 and p5Hp < 65 and PQR_IsOutOfSight("party5") == false and IsSpellInRange("Word of Glory", "party5") == 1 and not UnitIsEnemy("party5", "player") then
CastSpellByName(GetSpellInfo(19750), "party5")
end
This is his way of handling Selfless Healer stacks. It works perfectly, but I'm wondering is, is there a way to change this code so you can target a specific player name rather than "Party1", etc. Reason being, you don't always get put in the same party slots when you join BG's or raids. I'd rather be able to target the exact character names for my group.
Thanks