求个可以用的取消buff宏,不要跟我说右键点击右上方buff取消
nostalrius吧
全部回复
仅看楼主
level 8
互帮互助,求个可以用的取消buff宏,不要跟我说右键点击右上方buff取消,我要的是宏,谢谢
2017年02月06日 09点02分 1
level 9
/script local i,a=1;while UnitBuff("player",i) do if string.find(UnitBuff("player",i),"Holy_SealOfProtection") then a=i;break;end;i=i+1;end;if a then CancelPlayerBuff(a-1);end
其中"Holy_SealOfProtection"是buff的代码,需要根据你的buff替换,可以只打部分字符串,比如"Holy_SealOfProtection"简化成“alOfPr”应该也可以,不过最好全一些。
buff代码查询方法:点掉你身上所有其他buff,保持身上仅有需要查询的buff,点一下下面的宏。
/script g,s=GetPlayerBuffTexture,SendChatMessage;a=g(0);if a then s(a)end;
2017年02月06日 11点02分 4
高玩,膜拜。
2017年02月06日 12点02分
牛批
2017年02月06日 12点02分
牛逼
2017年02月06日 16点02分
朋友知道武器buff怎么查吗?比如毒药,磨刀石,风怒武器之类的
2017年02月06日 20点02分
level 11
mark
2017年02月06日 16点02分 6
level 9
发现4楼的宏可以简化,当然2个都不影响使用
/script local i=1;while UnitBuff("player",i) do if string.find(UnitBuff("player",i),"Holy_SealOfProtection") then CancelPlayerBuff(i-1);break;end;i=i+1;end;
2017年02月07日 01点02分 8
level 4
遍历一次玩家身上的buff,然后取消就行了
2017年02月07日 06点02分 9
1