跪求XD实用的宏

来源:百度知道 编辑:UC知道 时间:2024/05/11 19:01:09
哪位高手会编一些高级一点的宏命令呢?XD用的 谢谢哦!~
输入时有什么注意事项没有? 怎么用不起呢

最近在用的几个宏命令(德鲁依)
第一个
/script local i,j,b,f,p;for i=1,40 do f=nil;p='raid'..i;if UnitIsVisible(p) then for j=1,16 do b=UnitBuff(p,j);if b and strfind(b,'Regen') then f=1;break;end;end;if not f then TargetUnit(p);CastSpellByName('野性印记');break;end;end;end;
自动给团队里面没有野性印记的人补一个野性印记,不用在一个一个的找人了,也可以换成野性赐福。

第二个
/Script x=1;found=0;while(UnitBuff('target',x)) do if(string.find(UnitBuff('target',x),'Rejuvenation'))then found=1;end;x=x+1;end;
/Script if(found==1)then CastSpellByName('迅捷治愈');else CastSpellByName('回春术(等级 11))')end
给目标加个回春,如果目标身上已经有回春了就使用迅捷治愈,可以有效的节约我们的空格位置。

第三个--我最喜欢的
/script SpellStopCasting()
/施放 自然迅捷
/script SpellStopCasting()
/施放 治疗之触(等级 11)

第四个
/script if (UnitName('Target') ~=nil and UnitIsFriend('player','Target')) then CastSpellByName('复生');SendChatMessage('帅哥,快起来吧,前面还有很多好装备