Originally Posted by
jadethread1
Code:
local a = GetSpellCooldown("Chimera Shot");
local b = UnitDebuff("target","Serpent Sting");
if PQR_IsMoving()
and UnitBuff("player","Aspect of the Fox")
and a == 1
and b == true
then CastSpellByName("Steady Shot")
elseif not
PQR_IsMoving()
and UnitBuff("player","Aspect of the Hawk")
and UnitPower("player", 2) > 50
and a == 1
and b == true
then CastSpellByName("Aimed Shot")
elseif not
PQR_IsMoving()
and UnitCastingInfo("player") == "Steady Shot"
and UnitPower("player", 2) > 50
then SpellStopCasting() end
it worked until I implemented the locals
if chimera shot is on cooldown and serpent sting is on target continue code. Thats what i want it to do thanks.
PHP Code:
if not PQR_IsMoving() and UnitCastingInfo("player") == "Steady Shot" and UnitPower("player", 2) > 50 then SpellStopCasting() end
if UnitBuff("player", GetSpellInfo(aspectofthefoxid)) and PQR_SpellAvailable(chimerashotid) and UnitDebuff("target" GetSpellInfo(sperentstingid)) then
if PQR_IsMoving() then
CastSpellByName(GetSpellInfo(steadyshotid), "target")
elseif not PQR_IsMoving() and UnitPower("player", 2) > 50 then
CastSpellByName(GetSpellInfo(aimedshotid), "target")
end
end
need to fill out the ids, also for
PHP Code:
UnitCastingInfo("player") == "Steady Shot"
this might work
PHP Code:
UnitCastingInfo("player") == GetSpellInfo(steadyshotid)
not sure though, couldn't hurt to try though.
Changed it all to use ids so more than one nationality can use it, russian clients don't like english.
isn't aspect of the fox a stance? if it is then you need to use GetShapeshiftForm() and CastShapeshiftForm(2)
example for seal of truth
if GetShapeshiftForm() ~= 1 then
CastShapeshiftForm(1)
end