本帖最后由 托托 于 2015-12-13 20:37 编辑
更新函数: 2015/12/3 当焦点目标死亡 则清除焦点目标
需要在World of Warcraft\Interface\AddOns\GC文件夹内的wowamfunctions.lua 文件内添加一个函数
function autoFocus(unit)
local arena1hp = aml("arena1","%") ---框体1血量 local arena2hp = aml("arena2","%") ---框体2血量 -- print(arena2hp) if UnitGUID("target") == UnitGUID("arena1") and arena2hp >=1 then amrun("/focus arena2") return true; else if UnitGUID("target") == UnitGUID("arena2") and arena2hp >=1 then amrun("/focus arena1") return true; else if arena1hp <=1 or arena2hp <=1 then amrun("/clearfocus") return true; end end end
end
GC 里面添加脚本 脚本里面写上autoFocus(unit) 就可以了
然后添加一个 宏/脚本 就可以使用了
功能:JJC里面会自动将非当前目标设为焦点目标,你只要切换目标,焦点目标自动更换为另一个敌人
|