mine doesnt cast immolate twice !
mine doesnt cast immolate twice !
Thanks for all the above ^^^.
im backkklong time
And I'm taking back what I said about profiles not having solved the problem![]()
Another question, on fights where there's a succession of adds popping, is there a way to code constant target switching always to the one with highest health?
I'm thinking of Heroic Immerseus, for example, when all the Congealed Sha adds come popping out of the floor. It's a tricky one for Destro, because your target for fire and brimstoneing is always in danger of getting instantly vaporized in all the aoe.
Can anyone help me cast rallying cry if any of thise targets drops below 20%?PHP Code:
FriendlyTars = {"player",
"party1",
"party2",
"party3",
"party4",
"party5"
}
Sofar I got this:
Here I want it to be more like if HelpFriendly < 20 then:PHP Code:
function HealCheck(unit) -- Thanks to Bubba<3
if UnitCanCooperate("player",unit)
and not UnitIsCharmed(unit)
and not UnitIsDeadOrGhost(unit)
and not PQR_IsOutOfSight(unit)
and UnitIsConnected(unit)
then return true else return false end
end
function helpFriendly(unit)
if getHp(FriendlyTars) < 20
and HealCheck(FriendlyTars)
then return true else return false end
end
PHP Code:
if helpFriendly then return true end
getHp fucntion: ( To make getHp("unit") < 20 )
PHP Code:
function getHp(unit)
if UnitExists(unit) ~= nil
then
return 100 * UnitHealth(unit) / UnitHealthMax(unit)
end
end
i think you need to loop inside helpfriendly
here try this:
Code:FriendlyTars = { "player", "party1", "party2", "party3", "party4", "party5" } function HealCheck(unit) -- Thanks to Bubba<3 if UnitCanCooperate("player",unit) and not UnitIsCharmed(unit) and not UnitIsDeadOrGhost(unit) and not PQR_IsOutOfSight(unit) and UnitIsConnected(unit) then return true else return false end end function getHp(unit) if UnitExists(unit) ~= nil then return 100 * UnitHealth(unit) / UnitHealthMax(unit) end end function helpFriendly() for i=1, #FriendlyTars do if getHp(i) < 20 and HealCheck(i) then return true else return false end end if helpFriendly() then return true end
Please if someone helped you donate rep to them.
Ah one min I'll mod the code a bit, hard to do this since my wow game time is up and i have no money to get more. but i think this should work
it might need a table sort but like i said i can't test this until i get some game time.Code:FriendlyTars = { "player", "party1", "party2", "party3", "party4", "party5" } order = { } function HealCheck(unit) -- Thanks to Bubba<3 if UnitCanCooperate("player",unit) and not UnitIsCharmed(unit) and not UnitIsDeadOrGhost(unit) and not PQR_IsOutOfSight(unit) and UnitIsConnected(unit) then return true else return false end end function getHp(unit) if UnitExists(unit) ~= nil then return 100 * UnitHealth(unit) / UnitHealthMax(unit) end end function helpFriendly() for i=1, #FriendlyTars do if getHp(FriendlyTars[i]) < 20 and HealCheck(FriendlyTars[i]) then return FriendlyTars[i] else return false end end if helpFriendly() ~= false then shouldtarget = helpFriendly() CastSpellByName(GetSpellInfo(id), shouldtarget) return true end
Last edited by crystal_tech; 10-11-2013 at 04:43 PM.
Please if someone helped you donate rep to them.
anyone have a link to a survival hunter pvp profile? thats updated
I have a BM/MM/SV Hunter PVP Profile
FriendlyTars = {
"player",
"party1",
"party2",
"party3",
"party4",
"party5"
}
function HealCheck(unit) -- Thanks to Bubba<3
if UnitCanCooperate("player",unit)
and not UnitIsCharmed(unit)
and not UnitIsDeadOrGhost(unit)
and not PQR_IsOutOfSight(unit)
and UnitIsConnected(unit)
then return true
end
end
function getHp(unit)
if UnitExists(unit)
then
return 100 * UnitHealth(unit) / UnitHealthMax(unit)
end
end
table.sort(FriendlyTars , function(x,y) return getHp(x) < getHp(y) end)
for i = 1, #FriendlyTars do --- You still need a Range Check otherwise you will waste your shout
if getHp(FriendlyTars[i]) < 20 -- First check the HP (performance wise and your HP check also checks if the unit rly exist
and HealCheck(FriendlyTars[i])
then
PQR_CustomTarget = FriendlyTars[i]
return true
end
end
Last edited by cokx; 10-13-2013 at 12:11 PM.
It would be cool if we could get the functionality that MagicHealingBalls does in PQR - so the reticle/aoe abilities can be cast on units. That is, if you think it's safe.
Its been talked about already and told to come into the 3.0 version of PQR, whenever Xelper is done with that ^^
There is so much talk to weed through - searching for "3.0" shows that it's indefinitely on hold(?) And when I saw it's initial feature list; continuing the whole lua-in-xml ordeal, my heart sunk a bit more.
Why not just use simple, tangible, editable and debug-able lua files for each ability? It seems a wasted effort to include a clunky component editor since that job is done far better elsewhere; a very personal thing - then use one xml to manage the rotation. Basically, ditch the ability editor and add the ability's parameters to the rotation editor. It would make the app smaller and this guy weep with joy.