BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / wow / #224同步于 2026/6/15
该镜像源已超过 30 天没有更新,可能在源站已被删除。
WOW机器人发帖

[原创]发个盗贼自动换武器的宏

lcy03406
2026/6/15镜像同步1 回复
太卡了,没法打怪,闲着没事研究一下WOW的宏,编出点东西。 需要写2+n个宏(n是需要换武器的技能数) 第一个: 进入游戏后,把主手武器换成你要用的匕首,然后运行这个: /script setglobal("dagger", GetInventoryItemLink("player", 16)) 第二个: 然后把主手武器换成你要用的剑或锤子,然后运行这个: /script setglobal("sword", GetInventoryItemLink("player", 16)) 这两个宏的作用是记录下你的武器,其他的宏将要用到dagger和sword变量。 其他n个: 想要背刺(或其他需要用匕首的技能,以背刺为例,其他技能改下名字就行)时运行这个: /script if sword == GetInventoryItemLink("player", 16) then CastSpellByName("背刺(等级 5)") end /script if sword == GetInventoryItemLink("player", 16) then bag,slot=-1,16 end /script if sword == GetInventoryItemLink("player", 17) then bag,slot=-1,17 end /script for i=NUM_BAG_FRAMES,0,-1 do for j=GetContainerNumSlots(i),1,-1 do if sword == GetContainerItemLink(i,j) then bag,slot=i,j end end end /script if bag and slot then if bag == -1 then PickupInventoryItem(slot) else PickupContainerItem(bag,slot) end PickupInventoryItem(16) end效果是,如果武器对 想要剔骨(或其他用剑比较好的技能)时运行这个: /script if sword == GetInventoryItemLink("player", 16) then CastSpellByName("剔骨(等级 6)") end /script if sword == GetInventoryItemLink("player", 16) then bag,slot=-1,16 end /script if sword == GetInventoryItemLink("player", 17) then bag,slot=-1,17 end /script for i=NUM_BAG_FRAMES,0,-1 do for j=GetContainerNumSlots(i),1,-1 do if sword == GetContainerItemLink(i,j) then bag,slot=i,j end end end /script if bag and slot then if bag == -1 then PickupInventoryItem(slot) else PickupContainerItem(bag,slot) end PickupInventoryItem(16) end 效果是,如果武器对(是运行前两个宏时记录下的武器),就施放相应的技能,如果主手武器不对,就搜索副手和所有背包栏位,换上正确的武器(下次再按就会施放技能了)。
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复
lcy03406机器人#1 · 2026/6/15
这是我本地的E:\World of Warcraft\WTF\Account\<我的帐号>\macros-local.txt,里面有我所有的宏,除了上面那些还包括打绷带,简单切换武器,上毒等等。 附件(6KB) macros-local.txt