1、/script local b,s,j={貓鼬編號,猛禽編號},{貓鼬撕咬,猛禽一擊};for j=1,2 do if isusableaction(b[j]) and getactioncooldown(b[j])==0 then castspellbyname(s[j]);break;end;end;
2、【智能釘刺宏 】牧師不會解毒,應(yīng)該用蝰蛇,反倒是對德魯伊要用蝰蛇1騙驅(qū)毒,到頭來毒蛇無用?其實應(yīng)該對所有怪都用毒蛇 ;功能介紹:按照下列規(guī)則放釘刺 ;戰(zhàn)、賊:毒蝎 ;獵、法、術(shù),薩,牧:蝰蛇 ;騎,德:蝰蛇1 ;npc:毒蛇
3、/script local c,s,t=unitclass(target),毒蛇釘刺,unitpowertype(target);if unitisplayer(target) then if t==0 then s=蝰蛇釘刺;if c==圣騎士 or c==德魯伊 then s=s..(等級 1);end;else s=毒蝎釘刺;end;end;castspellbyname(s);
4、【打賊專用:標(biāo)記 / 照明彈 】;有目標(biāo)就標(biāo)記,沒有就放閃光彈 ;/script if unitexists(target) then castspellbyname(獵人印記);else castspellbyname(照明彈);end;
5、【雄鷹守護(hù) + 獵人印記 + 寵物攻擊 】;/script local c,i,b,f=castspellbyname;for i=1,16 do b=unitbuff(player,i);if b and strfind(b,ravenf) then f=1;break;end;end;if f then c(獵人印記);petattack();else c(雄鷹守護(hù));end;
6、【靈猴 獵豹切換 】;/script local c,i,b,f=castspellbyname;for i=1,16 do b=unitbuff(player,i);if b and strfind(b,monk) then f=1;break;end;end;if f then c(獵豹守護(hù));else c(靈猴守護(hù));end;
7、【靈猴 雄鷹切換 】;/script local c,i,b,f=castspellbyname;for i=1,16 do b=unitbuff(player,i);if b and strfind(b,monk) then f=1;break;end;end;if f then c(雄鷹守護(hù));else c(靈猴守護(hù));end;
8、【獵豹 雄鷹切換】 ;/script local c,i,b,f=castspellbyname;for i=1,16 do b=unitbuff(player,i);if b and strfind(b,etiger) then f=1;break;end;end;if f then c(雄鷹守護(hù));else c(獵豹守護(hù));end;
9、【靈猴守護(hù) + 威懾 】;威懾的編號看上邊基礎(chǔ)知識自己填 ;/script local c,i,b,f,s,d=castspellbyname;for i=1,16 do b=unitbuff(player,i);if b and strfind(b,monk) then f=1;break;end;end;if not f then c(靈猴守護(hù));spellstopcasting();end;s,d=getactioncooldown(你威懾編號);if d2 then useinventoryitem(13);spellstopcasting();end;castspellbyname(多重射擊);
12、寶寶打圖騰 ;/script local t,n,i,_={根基,戰(zhàn)栗,地縛,灼熱,清毒,};for _,i in t do n=i..圖騰;targetbyname(n,1);end;petattack();
13、寵物宏 - 智能召喚/復(fù)活/治療 ;如果寵物存在,死的就復(fù)活,沒死就++,寵物消失了的話就召喚,如果是尸 體消失,請同時按住alt鍵, 會強(qiáng)制使用復(fù)活,因為wow消失了仍然認(rèn)為是活的;/script local p,s=pet,召喚;if unitisdead(p) then s=復(fù)活\;elseif unitexists(p) then s=治療 elseif isaltkeydown() then s=復(fù)活\;end;castspellbyname(s..寵物);
14、【尋找稀有精英寵物 】公共部分已經(jīng)有了,不過鑒于獵人特殊性在專門寫一個 ;/script local s=斷牙;targetbyname(s,1);if unitname(target)==s then chatframe1:addmessage(找到);end; 上邊名字自己修改 針對不同目標(biāo)調(diào)整寵物技能自動施放情況
15、這個宏可以針對不同類型的目標(biāo)調(diào)整寵物技能的自動施放,比如帶蝙蝠面對近戰(zhàn)應(yīng)該打開尖嘯,而面對法系就應(yīng)該關(guān)掉
16、帶會爪擊的寵物打怪時應(yīng)該關(guān)掉爪擊開低吼,而遇到玩家需要關(guān)低吼開爪擊,這個宏可以自動為你做到
17、/施放 獵人印記 ;/script local x,p,j,e,_={1,1,1},unitpowertype(target);if unitisplayer(target) then if p==0 then x={1,nil,nil,1};else x={1,nil,1};end;end;for j=4,7 do _,_,_,_,_,_,e=getpetactioninfo(j);if x[j-3]~=e then togglepetaction(j);end;end;
18、說明一下,紅色的{1,1,1}對應(yīng)npc,藍(lán)色的{1,nil,nil,1}對應(yīng)有藍(lán)職業(yè),綠色的{1,nil,1}對應(yīng)戰(zhàn),賊 四個1/nil對應(yīng)寵物技能條4 5 6 7按鈕,1代表開,nil代表關(guān),最后一個是nil的話可以不寫,
19、大家可以自己調(diào)整技能和對應(yīng)職業(yè)的開關(guān)順序,畢竟不同bb技能不用