《魔兽世界》经典怀旧服猎人鼠标宏大全
常用宏命令:
showtooltip 自动射击
/cast!自动射击:按下此宏,可避免误操作取消自动射击。
showtooltip 猎人印记
/petattack
/cast 猎人印记:此宏能在施放猎人印记的同时让宠物冲上去攻击。
showtooltip 冰冻陷阱
/cast 假死
/petpassive
/cast 冰冻陷阱:一键完成“假死脱战 + 放置冰冻陷阱”操作,同时将宠物设置为被动状态。
showtooltip 驱散射击
/petpassive
/cast 驱散射击:施放驱散射击时将宠物调整为被动状态,防止其破坏控制。
技能相关宏:
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. 【智能钉刺宏】
/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);
3. 【打贼专用:标记/照明弹】
/script if UnitExists(target) then CastSpellByName(猎人印记);else CastSpellByName(照明弹);end;
4. 【雄鹰守护 + 猎人印记 + 宠物攻击】
/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(雄鹰守护);end;
5. 【灵猴猎豹切换】
/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(猎豹守护);else c(灵猴守护);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(雄鹰守护);else c(灵猴守护);end;
7. 【猎豹雄鹰切换】
/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(雄鹰守护);else c(猎豹守护);end;
8. 【灵猴守护 + 威慑】
威慑的编号看上边基础知识自己填
/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(灵猴守护);SpellStopCasting;end;s,d=GetActionCooldown(你威慑编号);if d2 then UseInventoryItem(13);SpellStopCasting;end;CastSpellByName(多重射击);
11. 宝宝打图腾
/script local t,n,i,_={根基,战栗,地缚,灼热,清毒,};for _,i in t do n=i..图腾;TargetByName(n,1);end;PetAttack;
12. 宠物宏 智能召唤/复活/治疗
/script local p,s=pet,召唤;if UnitIsDead(p) then s=复活;elseif UnitExists(p) then s=治疗 elseif IsAltKeyDown then s=复活;end;CastSpellByName(s..宠物);
13. 【寻找稀有精英宠物】
/script local s=断牙;TargetByName(s,1);if UnitName(target)==s then ChatFrame1:AddMessage(找到);end;上边名字自己修改针对不同目标调整宠物技能自动施放情况
14. 这个宏可以针对不同类型的目标调整宠物技能的自动施放,比如带蝙蝠面对近战应该打开尖啸,而面对法系就应该关掉。
15. 带会爪击的宠物打怪时应该关掉爪击开低吼,而遇到玩家需要关低吼开爪击,这个宏可以自动为你做到。
16. /施放猎人印记
/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;
17. 说明一下,红色的{1,1,1}对应 NPC,蓝色的{1,nil,nil,1}对应有蓝职业,绿色的{1,nil,1}对应战,贼四个 1/nil 对应宠物技能条 4 5 6 7 按钮,1 代表开,nil 代表关,最后一个是 nil 的话可以不写。大家可以自己调整技能和对应职业的开关顺序,毕竟不同 bb 技能不用。