< 魔兽世界百科 >
|
![]() |
这些宏都是很实用的,但是我发现这些宏都有语法错误,如果把技能名称改为中文后,直接粘贴的话根本不能使用,请各位老大帮忙检查一下,能否在中文版中使用。
多谢
1. 主副手交换
/script PickupInventoryItem(16);if(CursorHasItem()) then PickupInventoryItem(17);end
2. 给主手上毒
/script for x=0,4 do for y=1,GetContainerNumSlots(x)
do if (string.find(GetContainerItemLink(x,y) or "","Crippling Poison II"))
then UseContainerItem(x,y); return;end end end
/script PickupInventoryItem(16);
3. 给副手上毒
/script for x=0,4 do for y=1,GetContainerNumSlots(x)
do if (string.find(GetContainerItemLink(x,y) or "","Instan Poison VI"))
then UseContainerItem(x,y); return;end end end
/script PickupInventoryItem(17);
4. 打绷带不失去目标
/script for x=0,4 do for y=1,GetContainerNumSlots(x)
do if (string.find(GetContainerItemLink(x,y) or "","Heavy Runecloth Bandage"))
then UseContainerItem(x,y); return;end end end
/target Lormy
5. 伏击后主手更换为剑
/script CastSpellByName("Ambush(Rank 6)")
/script if ( not CursorHasItem() ) then PickupContainerItem(3, 16); PickupInventoryItem(16);end
6. 直接使用治疗石
/script for x=0,4 do for y=1,GetContainerNumSlots(x)
do if (string.find(GetContainerItemLink(x,y) or "","Major Healthstone"))
then UseContainerItem(x,y); return;end end end
7. 伏击后主副手更换武器
/script CastSpellByName("Ambush(Rank 6)")
/script PickupInventoryItem(16); if (CursorHasItem()) then PickupContainerItem(3,16);
PickupInventoryItem(17);PickupContainerItem(3,15);end
8. 一键ss+剔骨
/script CastSpellByName("Backstab(Rank 8)")
/script GCP=GetComboPoints();
/script if (GCP < 5) then CastSpellByName("Sinister Strike(Rank 8") else
CastSpellByName("Eviscerate(Rank 8)");end
9.一键换剑并使用邪恶攻击
/script GameTooltip:SetInventoryItem("player",GetInventorySlotInfo("MainHandSlot"))
GameTooltip:Hide();if(GameTooltipTextRight3:GetText()=="Dagger")then PickupContainerItem(3,9);
PickupInventoryItem(16);end
/script CastSpellByName("Sinister Strike(Rank 8)")
10. 一键换匕首并使用背刺
/script GameTooltip:SetInventoryItem("player",GetInventorySlotInfo("MainHandSlot"))
GameTooltip:Hide(); if (GameTooltipTextRight3:GetText()=="Sword")then PickupContainerItem(3,9);
PickupInventoryItem(16);end
/script CastSpellByName("Backstab(Rank 8)");
11. 警告队友.
/script pl=UnitLevel("target");pn=UnitName("target");pc=UnitClass("target");
pf=UnitFactionGroup("target");if(pn~=nil) then SendChatMessage(format("%s: I see %s, Level:%s,
Class:%s",pf,pn,pl,pc),"party")else DEFAULT_CHAT_FRAME:AddMessage("No Target");end
12. Set Assist button to Target
/script if(UnitName("target")~=nil)then EditMacro(1,"Assist"..UnitName("target"),nil,"/assist
"..UnitName("target"),1)SendChatMessage("MA set 2 "..UnitLevel("target").."
"..UnitRace("target").." "..UnitClass("target").." "..UnitName("target"),"party");end
13. Sap Macro with Target info
/script if UnitCanAttack("player","target") then SendChatMessage("Sapping!!!
lvl "..UnitLevel("target").." ---> "..UnitName("target").." Class:"..UnitClass("target"),"party")
CastSpellByName("Sap(Rank 3)");end
打开编辑器,shift+点击技能就可以了
引用本页地址(点击复制到粘贴板) 粘贴到你想引用的网页。
HTML形式的传播:
论坛形式的传播: