This post has been edited 1 times, last edit by "karmakarma" (Aug 10th 2013, 1:27am)
Quoted
also with those macros Wneter listed above, if you want to use the macro to drop dead targets then add "this" (see below) line to the beginning of each one, and when you have a dead target just click the macro to drop target and search for a new one, or just simply drop target if you know no targets are around. it will also drop you as a target as well just incase you are targetting yourself after buffing or healing
This seemed like it was what I wanted, but when I tried it, it would still target the next nearest mob even I already had a living mob targeted.
Quoted
/run if UnitIsUnit("player", "target") or UnitIsDeadOrGhost("target") then TargetUnit("") end
This post has been edited 1 times, last edit by "Steadyshot" (Aug 10th 2013, 3:16am)
|
|
Source code |
1 2 3 |
local incombat = GetPlayerCombatState()
if not (incombat) then AShot = false; end
if (not (AShot)) and SkillUsable("Autoshot") then CastSpellByName("Autoshot"); AShot = true; end
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
function SkillUsable(SkillName)
x = 1
while (x <= 5G) do
totalCount = etNumSkill(x)
if (totalCount) then
y = 1
while (y <= totalCount) do
local name, _1, icon, _2, rank, _3, tp_to_upgrade, energy_type, usable = GetSkillDetail(x,y)
if string.lower(name) == string.lower(SkillName) and usable == true then
totalCD, remainingCD = GetSkillCooldown(x, y)
if (remainingCD < 1) then
return true
end
end
y = y + 1
end
end
x = x + 1
end
return false
end
|
This post has been edited 1 times, last edit by "LordKaedric" (Aug 10th 2013, 3:00pm)
Thats fine, I just want a macro that doesn't turn it off after it turns it on on the same target.autoshot automatically turns off when you switch targets, and must be re-enabled....
This seems interesting, could you go into more detail on how the add-on works and how I go about setting it up?
Quoted
The way I got around the Autoshot issue was to use a custom add-on rather than an in-game macro. The advantage is the add-on can keep track of variables and you can better control when it is needed. You are also not limited in the number of characters in the same way that a macro is.