朋友给的代码,可以跟随焦点,但是没法实现焦点上马,自己上马的功能,我看了下,将其改正正确。
源代码是这样的:
[Lua] 纯文本查看 复制代码 local Tbl = BeeUnitBuffList("target")
local Pbuff = BeeUnitBuffList("player")
local focus = BeeUnitBuffList("focus")
----坐骑名称焦点坐骑use后为自己的坐骑。
if BeeCastSpellFast() then return;end
if UnitName("focus") and ((BeeRange("focus")<=25 and BeeRange("focus")>=10) or not BeeUnitIsFollow()) then
FollowUnit("focus");
end
if BeeStringFind("迅捷幽灵虎",focus) and not BeeStringFind("迅捷幽灵虎",Pbuff)
then BeeRun("/use 迅捷幽灵虎")
return;
end
发现问题是,focus不能作为局部变量,虽然bee不提示错误,但是的确错了。
自己改正很简单,如果懒,见附件,5伸手费用。
|