1、/script local b,s,j={貓鼬編號(hào),猛禽編號(hào)},{貓鼬撕咬,猛禽一擊};for j=1,2 do if isusableaction(b[j]) and getactioncooldown(b[j])==0 then castspellbyname(s[j]);break;end;end;
2、【智能釘刺宏 】牧師不會(huì)解毒,應(yīng)該用蝰蛇,反倒是對(duì)德魯伊要用蝰蛇1騙驅(qū)毒,到頭來(lái)毒蛇無(wú)用?其實(shí)應(yīng)該對(duì)所有怪都用毒蛇 ;功能介紹:按照下列規(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..(等級(jí) 1);end;else s=毒蝎釘刺;end;end;castspellbyname(s);
4、【打賊專用:標(biāo)記 / 照明彈 】;有目標(biāo)就標(biāo)記,沒(méi)有就放閃光彈 ;/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ù) + 威懾 】;威懾的編號(hào)看上邊基礎(chǔ)知識(shí)自己填 ;/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(你威懾編號(hào));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ù)活,沒(méi)死就++,寵物消失了的話就召喚,如果是尸 體消失,請(qǐng)同時(shí)按住alt鍵, 會(huì)強(qiáng)制使用復(fù)活,因?yàn)閣ow消失了仍然認(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)有了,不過(guò)鑒于獵人特殊性在專門寫(xiě)一個(gè) ;/script local s=斷牙;targetbyname(s,1);if unitname(target)==s then chatframe1:addmessage(找到);end; 上邊名字自己修改 針對(duì)不同目標(biāo)調(diào)整寵物技能自動(dòng)施放情況
15、這個(gè)宏可以針對(duì)不同類型的目標(biāo)調(diào)整寵物技能的自動(dòng)施放,比如帶蝙蝠面對(duì)近戰(zhàn)應(yīng)該打開(kāi)尖嘯,而面對(duì)法系就應(yīng)該關(guān)掉
16、帶會(huì)爪擊的寵物打怪時(shí)應(yīng)該關(guān)掉爪擊開(kāi)低吼,而遇到玩家需要關(guān)低吼開(kāi)爪擊,這個(gè)宏可以自動(dòng)為你做到
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、說(shuō)明一下,紅色的{1,1,1}對(duì)應(yīng)npc,藍(lán)色的{1,nil,nil,1}對(duì)應(yīng)有藍(lán)職業(yè),綠色的{1,nil,1}對(duì)應(yīng)戰(zhàn),賊 四個(gè)1/nil對(duì)應(yīng)寵物技能條4 5 6 7按鈕,1代表開(kāi),nil代表關(guān),最后一個(gè)是nil的話可以不寫(xiě),
19、大家可以自己調(diào)整技能和對(duì)應(yīng)職業(yè)的開(kāi)關(guān)順序,畢竟不同bb技能不用