求一小D宏
1、冲锋: (1)判断是否在熊/巨熊形态,如果不是则变成熊再冲锋+低吼;如果是则直接冲锋+低吼。 /Script local c,s,i,f,n,a,_=astSpellByName,"巨熊形态";for i=1,GetNumShapeshiftForms() do _,n,a=GetShapeshiftFormInfo(i);if n==s then break;end;end;if a==1 then if IsActionInRange (34) then c("野性冲锋");else c("低吼");end;else c(s);end; 注:红字:34是技能栏编号,使用这个宏前要先把野性冲锋放在一个技能栏位上(放在一些少用的键位上)。具体键位编号见OBLIND的 2、猫形态起手宏(潜行): 在潜行的条件下,毁灭起手,然后检测对方身上是否有精灵之火,没有就上个,有就爪击。 /cast 毁灭 /cast 爪击 /script x=1;found=0;while(UnitDebuff("target",x)) do if(string.find(UnitDebuff ("target",x),"Spell_Nature_FaerieFire"))then found=1;end;x=x+1;end; /script if(found==1)then CastSpellByName("爪击");else CastSpellByName("精灵之火(野性)")end 3、背面攻击宏: 先判断,如果毁灭能用就用毁灭,不能用就撕碎。 /script x=1;found=0;while(UnitBuff("player",x)) do if(string.find(UnitBuff ("player",x),"Ambush"))then found=1;end;x=x+1;end; /script if(found==1)then CastSpellByName("毁灭");else CastSpellByName("撕碎")end 4、突袭+扫击: 如果潜行则使用突袭,否则使用扫击。 /script x=1;found=0;while(UnitBuff("player",x)) do if(string.find(UnitBuff("player",x),"Ambush"))then found=1;end;x=x+1;end; /script if(found==1)then CastSpellByName("突袭");else CastSpellByName("扫击")end 5、树皮+宁静: 判断是否有树皮,没有则放树皮,有则放宁静。简而言之,点一下是树皮,2下是树皮+宁静。 /script x=1;found=0;while(UnitBuff("player",x)) do if(string.find(UnitBuff("player",x),"StoneClaw"))then found=1;end;x=x+1;end; /script if(found==1)then CastSpellByName("宁静(等级 3)");else CastSpellByName("树皮术")end 6、树皮+飓风: 判断是否有树皮,没有则放树皮,有则放飓风。简而言之,点一下是树皮,2下是树皮+飓风。 /script x=1;found=0;while(UnitBuff("player",x)) do if(string.find(UnitBuff("player",x),"StoneClaw"))then found=1;end;x=x+1;end; /script if(found==1)then CastSpellByName("飓风");else CastSpellByName("树皮术")end 因为是2.12新版本,过去很多的宏都取消了,许多判断宏都用不了所以比较难完成