本帖最后由 懒动行不行 于 2023-9-3 01:25 PM 编辑
我在335客户端测试没有问题了,你在1.12客户端上再测试下
[Lua] 纯文本查看 复制代码 /script local p,c,b,f=GetComboPoints("player"),CastSpellByName; for i=1,40 do b=UnitDebuff("target",i);if b=="破甲" then f=1 break; end;end; if p>0 and not f then c("破甲");elseif p==5 and f then c("剔骨");else c("邪恶攻击") end
/script local p,c,b,f=GetComboPoints("player"),CastSpellByName; for i=1,40 do b=UnitDebuff("target",i);if b=="破甲" then f=1 break; end;end; if p>0 and not f then c("破甲");elseif p==5 and f then c("剔骨");else c("邪恶攻击") end |
因为335因为和谐的原因一些技能名字改了,比如剔骨改成了刺骨,邪恶攻击改成了影袭,如果这个宏还工作不正常,你看看宏里面的中文技能的名称是否正确。另外注意复制到WOW宏里的时候,确认/script前面没有空格
看起来原来宏不工作的原因是GetComboPoints这个API没有指定相应的参数,我搞不清楚你原来的宏怎么能够运行的起来。 |