求魔兽世界双持武器(两把武器主手副手)换成双手武器的宏

来源:百度知道 编辑:UC知道 时间:2024/05/13 15:45:26
我人物身上装备把鱼竿,用宏能装备上两个匕首,
例如:/equipslot 16 匕首
/equipslot 17 匕首
可当身上装备两把匕首的时候,鱼竿却换不上去,
例如:/equipslot 16 鱼竿
提示我: 没有装备这件物品的栏位
或者有能卸下副手物品的宏? 求高手帮助...(要TBC的.以前的吧要)

装备主副手武器不变,装备鱼竿改为
/equip 鱼竿名

MainhandBag:备用主手武器存放背包编号
MainhandBagSlot:备用主手武器存放格子编号
TwohandsBag:备用副手武器存放背包编号
TwohandsBagSlot:备用副手武器存放格子编号
第一个宏
/script PickupInventoryItem(17)
/script if (CursorHasItem()) then chan(); end
/script if (not CursorHasItem()) then PickupInventoryItem(17);PickupContainerItem(MainhandBag,MainhandBagSlot);PickupInventoryItem(16);PickupContainerItem(TwohandsBag,TwohandsBagSlot);PickupInventoryItem(17) end

再新建一个宏,定义函数chan()

/script chan=function() PickupContainerItem(TwohandsBag, TwohandsBagSlot);PickupContainerItem(MainhandBag,MainhandBagSlot:);PickupInventoryItem(16) end

第二个只用定义就可以了
这个用于双手武器<->单手+副手
只用把武器放到特定位置 再把宏里面的
MainhandBag
MainhandBagSlot
TwohandsBag
TwohandsBagSlot
换成数字就可以了
背包的位置看http://bbs.ngacn.com/read.php?tid=116439&fpage=1