335怎么写跟随后攻击啊?
我写了个跟随宏if BeeCastSpellFast() then return;end
if UnitName("focus") and ((BeeRange("focus")<=25 and BeeRange("focus")>=10) or not BeeUnitIsFollow()) then
FollowUnit("focus");
end
还有一个攻击宏的目标的代码。,,,,不知道对不对
--自动攻击焦点目标
if not IsMounted("player") then
BeeRun("/target [@focustarget,harm]");
return true;
end
这俩怎么实现啊?跟随的宏实现了,攻击的宏没反应啊?????
local focus = "focus"
local focuscombat = BeeUnitAffectingCombat(focus)
local attacking = BeeUnitAffectingCombat()
if 干饭 or 喝水 or 坐骑 or 施法中 or 光荣牺牲 then
return true;
end
if BeeRange(focus) < 35
and focuscombat
and not attacking then
if UnitExists("focustarget")
and UnitIsEnemy("focustarget") then
RunMacroText("/target focustarget\n/attack")
end
end idlng 发表于 2022-7-11 07:27 PM
local focus = "focus"
local focuscombat = BeeUnitAffectingCombat(focus)
loca ...
调试不过啊,这个干饭喝水是什么鬼啊? 你看不见我~ 发表于 2022-7-11 10:55 PM
调试不过啊,这个干饭喝水是什么鬼啊?
干饭{:6_233:}
就是
BeePlayerBuffTime("喝水")>0 --干饭
or BeePlayerBuffTime("进食")>0 --喝水 idlng 发表于 2022-7-11 11:00 PM
干饭
就是
大佬,,看看我这个写的,,总是跟随,不停止,而且攻击方向和距离都不对,稍微方向不对,或者远一点就攻击不到,什么问题啊?
local focus = "focus"
local focuscombat = BeeUnitAffectingCombat(focus)
local attacking = BeeUnitAffectingCombat()
if BeePlayerBuffTime("喝水")>0 or BeePlayerBuffTime("进食")>0 or BeePlayerBuffTime("召唤军马")>0 then
return true;
end
if BeeCastSpellFast() then return;end
if UnitName("focus") and ((BeeRange("focus")<=30 and BeeRange("focus")>=20 or not BeeUnitIsFollow())) then
FollowUnit("focus");
end
if BeeRange(focus) < 35
and focuscombat
and not attacking then
if UnitExists("focustarget")
and UnitIsEnemy("focustarget") then
RunMacroText("/target focustarget\n/attack")
end
end
http://www.luacn.net/thread-27413-1-1.html
进来学习下科普贴啊!!! 进来学习。。。感谢大佬科普。。。 学习。。。感谢大佬科普。。。
页:
[1]