绷带宏:
/script if (GetZoneText() == "Arathi Basin") then UseItemByName("Defiler‘s Runecloth Bandage"); elseif (GetZoneText() == "Warsong Gulch") then UseItemByName("Warsong Gulch Runecloth Bandage"); elseif (GetZoneText() == "Alterac Valley") then UseItemByName("Alterac Heavy Runecloth Bandage"); else UseItemByName("Heavy Runecloth Bandage");end;
/script if( SpellIsTargeting()) then SpellTargetUnit("player");end;
效果:根据3大战场和其他场所自动选择对应3大战场的绷带及厚符问绷带,无目标/目标为敌人/目标不可被绷带/目标为自己时给自己打绷带,目标为友方时对其打绷带。身上带4种绷带就好无论放什么位置。原来为传统宏使用者设计过这个宏但是要分2个先点一个取变量很麻烦,现在既然用这个插件就合并成一键了。
强制对自己绷带宏:
/script TargetUnit("player");
/script if (GetZoneText() == "Arathi Basin") then UseItemByName("Arathi Basin Runecloth Bandage"); elseif (GetZoneText() == "Warsong Gulch") then UseItemByName("Warsong Gulch Runecloth Bandage"); elseif (GetZoneText() == "Alterac Valley") then UseItemByName("Alterac Heavy Runecloth Bandage"); else UseItemByName("Heavy Runecloth Bandage");end;
/script TargetLastTarget();
功能如上一个只是无论什么情况都对自己打(盗贼用丢星,法师用没事)
最完美的冰箱宏:
/script SpellStopCasting(); CancelBuff("Ice Block"); if (GetSpellCooldown(179,0) >= 2) then CastSpell(147,0); else CastSpellByName("Ice Block"); end;
功能:中断正在施放法术并使用冰箱;如果在冰箱中就解冰箱;如果冰箱冷却时间大于2秒则使用急冷。传统冰箱宏能解决冷却中使用急冷的问题,但是又没办法做到像按技能书里拉出来冰箱技能那样1键开1键解,这个宏把2者合并了,需要supermacro的cancelbuff语句支持
注:其中179是我目前的冰箱编号,147是急冷编号,下同
解毒剂宏:
/use Powerful Anti-Venom
/script if( SpellIsTargeting()) then SpellTargetUnit("player");end;
功能:对目标使用解毒剂,无目标/目标为敌人/目标为自己/目标无法使用该物品则对自己使用
铁皮手雷宏:
/script SpellStopCasting();
/use Iron Grenade
功能:使用手雷,再按为取消;不限制手雷放在背包什么位置
一键喝红:
/use Major Healthstone
/use Major Healing Draught
/use Combat Healing Potion
/use Major Healing Potion
效果:按顺序使用极效治疗石,战场5分钟冷却的瓶子,荣誉瓶子,极红