超级宏 左边 /script aaa(); 右边 function aaa() if UnitExists(target) then local x,dot,dbuff,d,p=1,{Requiem,Sargeras,Explosion},{生命虹吸,痛苦诅咒,腐蚀术}; for i=1,3 do p=true; while (UnitDebuff(target, x) ~= nil) do d=UnitDebuff(target, x); if string.find(d,dot[i]) then p=false;break; end x = x + 1; end if p then CastSpellByName(dbuff[i]);break; end end end end
/script if (UnitManaMax(target)100)then aaa({CurseOfTounges,Requiem,Explosion},{语言诅咒,生命虹吸,腐蚀术},3);else aaa({Requiem,Sargeras,Explosion},{生命虹吸,痛苦诅咒,腐蚀术},3);end;
function aaa(aa,bb,cc) if UnitExists(target) then local x,dot,dbuff,j,d,p=1,aa,bb,cc; for i=1,j do p=true; while (UnitDebuff(target, x) ~= nil) do d=UnitDebuff(target, x); if string.find(d,dot[i]) then p=false;break; end x = x + 1; end if p then CastSpellByName(dbuff[i]);break; end end end end
这里需要解释下。~~ 主要右边的aaa()方法可以往里加参数~~ 三个参数分别是
技能英文名 技能中文名 and 个数. 大家可以随意改.~ 根据上次我发的查怪被上dot名字的方法.
/script local a, x = buffs: , 1;while (UnitDebuff(target, x) ~= nil) do a = a .. UnitDebuff(target, x) .. , ;x = x + 1;end;if (x == 1) then a = a .. no buffs.;end;SendChatMessage(a);
/script local x,d,db,p=1,{Requ,Sarg,Expl},{生命虹吸,痛苦诅咒,腐蚀术};for i=1,3do p=true;while UnitDebuff(target,x)do if strfind(UnitDebuff(target,x),d[i])then p=false;break;end;x=x+1;end;if p then CastSpellByName(db[i]);end;end;
if (i==2) then local st,du=CastSpellByName,GetActionCooldown(诅咒增幅编号) if (du=0) then CastSpellByName(诅咒增幅); SpellStopCasting(); end end
CastSpellByName(dbuff[i]);break; end end
编号是用这个宏得出的数字~~
script local s,i,n=诅咒增幅,1;while 1 do n=GetSpellName(i,spell);if n then if strfind(n,s) then ChatFrame1:AddMessage(i);break;end;i=i+1;else break;end;end;
/script local C; if(GetNumRaidMembers()==0) then C = PARTY else C = RAID end SendChatMessage(Summoning %t to ..GetMinimapZoneText().. . Please assist., C) /cast 召唤小鬼
function aaa() if UnitExists(target) then local x,dot,dbuff,d,p=1,{Requiem,Sargeras,Explosion},{生命虹吸,痛苦诅咒,腐蚀术}; for i=1,3 do p=true; while (UnitDebuff(target, x) ~= nil) do d=UnitDebuff(target, x); if string.find(d,dot[i]) then p=false;break; end x = x + 1; end if p then CastSpellByName(dbuff[i]);break; end end end end
/script if (UnitManaMax(target)100)then aaa({CurseOfTounges,Requiem,Explosion},{语言诅咒,生命虹吸,腐蚀术},3);else aaa({Requiem,Sargeras,Explosion},{生命虹吸,痛苦诅咒,腐蚀术},3);end;
function aaa(aa,bb,cc) if UnitExists(target) then local x,dot,dbuff,j,d,p=1,aa,bb,cc; for i=1,j do p=true; while (UnitDebuff(target, x) ~= nil) do d=UnitDebuff(target, x); if string.find(d,dot[i]) then p=false;break; end x = x + 1; end if p then CastSpellByName(dbuff[i]);break; end end end end
这里需要解释下。~~ 主要右边的aaa()方法可以往里加参数~~ 三个参数分别是
技能英文名 技能中文名 and 个数. 大家可以随意改.~ 根据上次我发的查怪被上dot名字的方法.
/script local a, x = buffs: , 1;while (UnitDebuff(target, x) ~= nil) do a = a .. UnitDebuff(target, x) .. , ;x = x + 1;end;if (x == 1) then a = a .. no buffs.;end;SendChatMessage(a);
/script local x,d,db,p=1,{Requ,Sarg,Expl},{生命虹吸,痛苦诅咒,腐蚀术};for i=1,3do p=true;while UnitDebuff(target,x)do if strfind(UnitDebuff(target,x),d[i])then p=false;break;end;x=x+1;end;if p then CastSpellByName(db[i]);end;end;
if (i==2) then local st,du=CastSpellByName,GetActionCooldown(诅咒增幅编号) if (du=0) then CastSpellByName(诅咒增幅); SpellStopCasting(); end end
CastSpellByName(dbuff[i]);break; end end
编号是用这个宏得出的数字~~
script local s,i,n=诅咒增幅,1;while 1 do n=GetSpellName(i,spell);if n then if strfind(n,s) then ChatFrame1:AddMessage(i);break;end;i=i+1;else break;end;end;