Hello everyone, was wondering if any of you can help me with something, I'm looking to have Cobra shot (77767) fired everytime I go below 35 focus... But the thing I came up with don't work ->
Code:
if UnitPower("Player", 2) < 35
return true
Hello everyone, was wondering if any of you can help me with something, I'm looking to have Cobra shot (77767) fired everytime I go below 35 focus... But the thing I came up with don't work ->
Code:
if UnitPower("Player", 2) < 35
return true
@Sillyboo
if *something* then *do something* end
That's quite possible, but you'll need to use a targeting macro. What I've done is create a list over targets that I want to target in a priority setting, then created a TargetUnit macro that targeted units in that macro whenever they were in range of my Mind Blast. That's how I did it back in Dragon Soul Heroic when I first started doing it. I'll sift through my code so you can take a look at it. =)
This will be very interesting ^... btw anyone else is experience huge lag in PTR when PQR is activated?
the only thing i know of is to destroy totems when u mouseover it, whenever this isn´t what u were looking for, sorry ;-(
Code:local typem= UnitCreatureType("mouseover") if UnitExists("mouseover") and UnitCanAttack("player","mouseover") and typem == "Totem" then CastSpellByName(GetSpellInfo(yourspellidhere),"mouseover") CastSpellByName(GetSpellInfo(yourspellidhere),"mouseover") CastSpellByName(GetSpellInfo(yourspellidhere),"mouseover") return true end
Anyone know the best assassination profile now? I've been using nerder's for a long time.
Can anyone help me revive this bgreen function please?
PHP Code:
function GroupInfo()
members, group = { { Unit = "player", HP = CalculateHP("player"), UTT = "playertarget" } }, { low = 0, tanks = { } }
group.type = IsInRaid() and "raid" or "party"
group.number = GetNumGroupMembers()
for i=1,group.number do
if CanHeal(group.type..i)
then
local unit, hp, utt = group.type..i, CalculateHP(group.type..i), group.type..i.."target"
table.insert( members,{ Unit = unit, HP = hp , UTT = utt} )
if hp < 98
then
group.low = group.low + 1
end
if UnitGroupRolesAssigned(unit) == "TANK"
then
table.insert(group.tanks,unit)
end
end
end
if group.type == "raid"
and #members > 1
then
table.remove(members,1)
end
table.sort(members, function(x,y) return x.HP < y.HP end)
local customtarget = CanHeal("target") and "target" -- or CanHeal("mouseover") and GetMouseFocus() ~= WorldFrame and "mouseover"
if customtarget
then
table.sort(members, function(x) return UnitIsUnit(customtarget,x.Unit) end)
table.sort(members, function(x) return UnitCanAttack("player",x.UTT) end)
end
end
function CanHeal(t)
if UnitCanCooperate("player",t)
and not UnitIsEnemy("player",t)
and not UnitIsCharmed(t)
and not UnitIsDeadOrGhost(t)
and not PQR_IsOutOfSight(t,1)
and not UnitDebuffID(t,33786)
and not UnitDebuffID(t,122370)
then
return true
end
end
function CalculateHP(t)
incomingheals = UnitGetIncomingHeals(t) or 0
return 100 * ( UnitHealth(t) ) / UnitHealthMax(t)
end
my old problem (PQR - Rotation Bot)
This problem still exists. Sometimes it may happen or may not happen.
What to do if this happens:
1) /reload
2) logout
3) disable all addons
BaudErorFrame does not detect any errors.
Apart from that, I almost completely finished my profile.
My profile is targeted for PvE DPS Monk. If someone can help me figure out the nature of the error and fix it ... I will be glad to share it.
And the last thing that I need, this is a working version of PQR_IsOutOfSight ("target") or LineOfSight.
Last edited by WWF; 08-06-2013 at 05:07 PM.