[Lua] 纯文本查看 复制代码 焦点跟随(可以使用)和焦点目标攻击(调试时可以用,实际使用无效)local Tbl = BeeUnitBuffList("target")
local buff = BeeUnitBuffList("player")
BeeRun("/console Sound_EnableSFX 0 ") --该条是往下技能开启静音,防止卡技能导致游戏里技能音乱叫
--是否是团队
if GetNumRaidMembers()>0 then
grouptype="raid"
else
grouptype="party"
end
--跟随焦点
if UnitName("focus") and ((BeeRange("focus")<=30 and BeeRange("focus")>=10) or not BeeUnitIsFollow()) then
FollowUnit("focus");
return
end
--自动攻击焦点目标
if not IsMounted("player") then
BeeRun("/target [harm][@focustarget,harm]");
return true;
end
BeeRun("/console Sound_EnableSFX 1 ") --至此开启技能提示音
第二个 焦点跟随(可以使用)
local Tbl = BeeUnitBuffList("target")
local buff = BeeUnitBuffList("player")
if BeeCastSpellFast() then return;end
if UnitName("focus") and ((BeeRange("focus")<=25 and BeeRange("focus")>=10) or not BeeUnitIsFollow()) then
FollowUnit("focus");
end
大家好 我是用以上2给个脚本测试过了,无论如何都只能焦点跟随而不能主动攻击焦点的目标,请问如何能用魔峰实现类似连点器+/协助 名字 这种宏的功能呢
|