|
本人只会很简单的宏,复杂点的就搞不明白了
本人只是宏命令的搬运工,以及部分我正在使用的宏
网上发现好多宏不能用,抄袭过来做了一些修改
技能ID宏
/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;
1,致盲+绷带
/施放 致盲
/script local b,s,l;for b=0,4 do for s=1,18 do l=GetContainerItemLink(b,s);if l and strfind(l,"厚符文布绷带\") then UseContainerItem(b,s,1);break;end;end;end
2,破胆+绷带
/施放 破胆怒吼
/script local b,s,l;for b=0,4 do for s=1,18 do l=GetContainerItemLink(b,s);if l and strfind(l,"厚符文布绷带\") then UseContainerItem(b,s,1);break;end;end;end
3,潜行(反复按不出潜行)
/script local a,_;if not UnitAffectingCombat("player") then _,_,a=GetShapeshiftFormInfo(1)
;ifnot a then CastSpellByName("潜行");end;end;
4,如果主手不是匕首,则用邪恶攻击。如果主手是匕首,则把主背包第1格的武器换到主手。
/script GameTooltip:SetInventoryItem("player", GetInventorySlotInfo("MainHandSlot"));if(GameTooltipTextRight4:GetText()~="匕首") then CastSpellByName("邪恶攻击") else PickupContainerItem(0,1);PickupInventoryItem(16);end
5,如果主手不是匕首,则把主背包第1格的武器换到主手。如果是匕首,就背刺
/script GameTooltip:SetInventoryItem("player", GetInventorySlotInfo("MainHandSlot"));if(GameTooltipTextRight4:GetText()~="匕首") then PickupContainerItem(0,1);PickupInventoryItem(16);else CastSpellByName("背刺");end
6,冷血剔骨
/施放 冷血
/script SpellStopCasting();
/施放 剔骨
7,盗贼一键DPS
/script local p,c,b,i,f=GetComboPoints(),CastSpellByName;for i=1,16 do b=UnitBuff("player",i)
;if b and strfind(b,"SliceDice") then f=1;break;end;end;if p>0 而not f then c("切割");elseif p==5 and f then c("割裂");else c("邪恶攻击");end;
8,抓贼宏
/script TargetNearestEnemy({reverse})
/施放 闷棍
9,自动切割(平时用邪恶搌星 若无切割状态 只要有星 立即施放切割 若有 则继续 邪恶搌星 若能搌到5星时切割状态还在 则施放剔骨)
/script local p,c,b,i,f=GetComboPoints(),CastSpellByName;for i=1,16 do b=UnitBuff("player",i)
;if b and strfind(b,"SliceDice") then f=1;break;end;end;if p>0 而not f then c("切割\");elseif p==5 and f then c("剔骨");else c("邪恶攻击\");end;
10,一键3DOT
/script local n,s,k,j,d,f={"Abomi","Sarge","Immol"},{"腐蚀术\","痛苦诅咒\","献祭"};for k=1,3 do f=nil;for j=1,16 do d=UnitDebuff("target",j);if d and strfind(d,n[k]) then f=1;break;end;end;ifnot f then CastSpellByName(s[k]);break;end;end;
风筝版
/script local n,s,k,j,d,f={"Abomi","Requi","Sarge"},{"腐蚀术\","生命虹吸\","痛苦诅咒\"};for k=1,3 do f=nil;for j=1,16 do d=UnitDebuff("target",j);if d and strfind(d,n[k]) then f=1;break;end;end;ifnot f then CastSpellByName(s[k]);break;end;end;
11,献祭 + 宠物攻击
/施放 献祭
/script PetAttack();
12,如果死亡缠绕不在CD就放缠绕,如果CD中则施放恐惧术,连续使用就是 缠绕 + 恐惧
死亡缠绕的编号看图自己填
/script local s,d=GetActionCooldown(死亡缠绕编号);if d<2 then CastSpellByName("死亡缠绕");else CastSpellByName("恐惧术\");end;
13,如果目标是恶魔或元素就放逐,否则恐惧
/script local t=UnitCreatureType("target");if t=="恶魔" or t=="元素生物\" then CastSpellByName("放逐术\");else CastSpellByName("恐惧术\");end;
15,优先驱散自己身上的debuff,没有就驱散对方身上的buff
/script local i,d,s,t,_;for i=1,16 do d,_,t=UnitDebuff("player",i)
;if d and t=="Magic" then s=1;break;end;end;CastSpellByName('吞噬魔法',s);
16,如果带的是虚空则牺牲,不是的话按第一下瞬召虚空,再按一下牺牲,之所以要按两下因为所谓瞬召实际还是有0.5秒时间
/script local c=CastSpellByName;if UnitCreatureFamily("pet")=="虚空行者" then c("牺牲\");else c("恶魔支配\");SpellStopCasting();c("召唤虚空行者");end;
17,宝宝打图腾
/script local t,n,i,_={"根基\","战栗\","地缚","灼热","清毒",};for _,i in t do n=i.."图腾";TargetByName(n,1);endetAttack();
18,没有灵魂石就制造,有就给目标绑灵魂石,并在小队或团队中报告
把做好的灵魂石放在动作条上
/script local s,i="party",灵魂石所在编号;if IsUsableAction(i) then if GetActionCooldown(i)==0 then UseAction(i);if UnitInRaid("player") then s="raid";end;SendChatMessage("%t 已被绑定",s);end;else CastSpellByName("制造特效灵魂石");end;
19,反击,猫鼬,猛禽
/script local b,s,j={反击编号,猫鼬编号,猛禽编号},{"反击\","猫鼬撕咬","猛禽一击\"};for j=1,3 do if IsUsableAction(b[j]) and GetActionCooldown(b[j])==0 then CastSpellByName(s[j]);break;end;end;
20,战、贼:毒蝎
猎、法、术,萨,牧:蝰蛇
骑,德:蝰蛇1
NPC:毒蛇
/script local c,s,t=UnitClass("target"),"毒蛇钉刺",UnitPowerType("target");if UnitIsPlayer("target") then if t==0 then s="蝰蛇钉刺";if c=="圣骑士" 或 c=="德鲁伊" then s=s.."(等级 1)";end;else s="毒蝎钉刺";end;end;CastSpellByName(s);
21,灵猴守护威慑
/script local c,i,b,f,s,d=CastSpellByName;对于 i=1,16 do b=UnitBuff("player",i);if b and strfind(b,"Monk") then f=1;break;end;end;ifnot f then c("灵猴守护");SpellStopCasting();end;s,d=GetActionCooldown(你威慑编号);if d<2 then c("威慑\");end;
22,假死陷阱
/script PetFollow();if UnitAffectingCombat("player") then CastSpellByName("假死");else CastSpellByName("冰冻陷阱\");end;
23,当然使用圣光闪现的时候 自动装备[神性圣契],当我使用驱散的时候 自动装备[优雅圣契]
把两个圣契一个装在身上,另一个放在右边第一个包的第一个格
/script local l=GetInventoryItemLink("player",17);if l and strfind(l,"神性") then CastSpellByName("圣光闪现");else UseContainerItem(0,1);end;
24,放清洁术,如果身上带的不是优雅圣契就先换,再按放清洁术
/script local l=GetInventoryItemLink("player",17);if l and strfind(l,"优雅") then CastSpellByName("清洁术\");else UseContainerItem(0,1);end;
25,有目标就放最高级奉献,没有目标就放1级奉献
/script if UnitCanAttack("target","player") then CastSpellByName("奉献");else CastSpellByName("奉献(等级 1)");end;[附件=2470][附件=2470]
26,平时用低级闪电箭,如果出"元素集中"自动换成最高级闪电箭
/script local c,i,b,f=CastSpellByName;for i=1,16 do b=UnitBuff("player",i);if b and strfind(b,"ManaB") then f=1;break;end;end;if f then SpellStopCasting();c("闪电箭");else c("闪电箭(等级 1)");end;
27,从防御姿态切换到狂暴姿态释放狂暴之怒再切换回防御姿态,狂暴之怒放在左下额外技能拦的第11个。
/script G=GetActionCooldown;
/script if(G(71)<2)then CastShapeshiftForm(3);end /script if(IsUsableAction(71)==1)then CastSpellByName("狂暴之怒");end /script if(G(71)>0)then CastShapeshiftForm(2);end 28,人形态变熊, 其他任何形态then变回人形
/script local c,s,i,a,_=CastShapeshiftForm;for i=1,6 do _,_,a=GetShapeshiftFormInfo(i);if a then s=i;break;end;end;if not s thenSendChatMessage("","yell");c(1);elseif s~=1 then c(s);end;
29,人形态变猫,其他任何形态则变回人形
/script local c,s,i,a,_=CastShapeshiftForm;for i=1,6 do _,_,a=GetShapeshiftFormInfo(i);if a then s=i;break;end;end;ifnot s,then SendChatMessage("","yell");c(3);elseif s~=3 then c(s);end;
30,变身海豹(在水中才有效)其他任何形态then变回人形(在水中时)
/script local c,s,i,a,_=CastShapeshiftForm;for i=1,6 do _,_,a=GetShapeshiftFormInfo(i);if a then s=i;break;end;end;ifnots,thenSendChatMessage("","yell");c(2);elseif s~=2 then c(s)
;end;
31,变身旅行形态
/script local c,s,i,a,_=CastShapeshiftForm;for i=1,6 do _,_,a=GetShapeshiftFormInfo(i);if a then s=i;break;end;end;ifnots,thenSendChatMessage("","yell");c(4);elseif s~=4 thenc(s);end;
32,各种形态变回人形
/script local i,a,_;对于 i=1,6 do _,_,a=GetShapeshiftFormInfo(i);if是then CastShapeshiftForm(i);破;结束;结束;
33,人形态下变鹌鹑,其他任何形态则变回人形
/script local c,s,i,a,_=CastShapeshiftForm;for i=1,6 do _,_,a=GetShapeshiftFormInfo(i);if a then s=i;break;end;end;ifnot s,then SendChatMessage("","yell");c(5);elseif s~=5 then c(s);end;
34,双手/双持武器—>单手武器+盾牌(将防御单手武器放在最后一个包的第一个格子内,盾牌放在第二个格子内。)
/script P=PickupInventoryItem;C=拾取容器项;
/script P(17);if(CursorHasItem())then P(17);if(OffhandHasWeapon())then C(4,2)(17);end else C(4,1)(16);C(4,2)(17);完;
35,双手武器/单手武器+盾牌—>双持武器(将主手武器放在最后一个包的第一个格子内,副手放在第二个格子内。)
/script P=PickupInventoryItem;C=拾取容器项;
/script if(not OffhandHasWeapon())then C(4,1)(16);C(4,2)(17);完;
36,双持武器/单手武器+盾牌—>双手武器(将双手武器放在最后一个包的第一个格子内。)
/script P=PickupInventoryItem;C=拾取容器项;
/script P(17);if(CursorHasItem())then C(4,2);C(4,1)(16);结束;
37,切换姿态
/script CastShapeshiftForm(2),這1是戰鬥姿態,2是防禦姿態,3是狂暴姿態。
38,手雷
/script local b,s,l;if PlayerFrame.inCombat then AttackTarget();end;SpellStopCasting();for b=0,4 do for s=1,18 do l=GetContainerItemLink(b,s);if l and strfind(l,"铁皮手雷") then UseContainerItem(b,s);break;end;end;end;
39,爆发宏
/施放 强力buff 好比奥术强化,能量灌注,血性狂暴等
/script SpellStopCasting();
/script UseInventoryItem(13);13是指饰品1,14是饰品2
/script SpellStopCasting();
/施放 秒人技能
|
|