求个盗贼主副手武器互换的宏

2024-11-27 10:37:39
推荐回答(2个)
回答1:

不要宏就能实现

1、把相应的武器图标拖到技能栏,比如说把匕首放在“-”,剑放在“=”
2、打开按键设置
3、把“-”设置成鼠标滚轮向下滚,“=”设置成鼠标滚轮向上滚

该方法的缺点:
1、要占两个技能格子(动作条那么多,其实也没什么)
2、只能是匕首和单手剑
3、不能实现自动取消潜行

优点:
1、不需要写宏
2、想什么时候换就什么时候换

要用宏的话也很简单:
/script PickupInventoryItem(16)PickupInventoryItem(17)
每点一下就更换一次

但我是在网吧上网,宏由比较难记,所以我一般都不用宏的

回答2:

武器相关
Bag:物品存放背包编号
Slot:物品存放格子编号
MainhandBag:备用主手武器存放背包编号
MainhandBagSlot:备用主手武器存放格子编号
OffhandBag:备用副手武器存放背包编号
OffhandBagSlot:备用副手武器存放格子编号
TwohandsBag:备用双手武器存放背包编号
TwohandsBagSlot:备用双手武器存放格子编号
4.A
对主手武器或双手武器使用砺石
/script
UseContainerItem
(Bag,Slot)
/script
PickupInventoryItem
(16)
4.B
更换备用主手武器或双手武器
/script
UseContainerItem
(Bag,Slot)
/script
PickupInventoryItem
(16)
副手的对应宏,将16换为17即可。
4.C
切换主手武器和副手武器
/script
PickupInventoryItem(16);PickupInventoryItem(17)
盗贼可以用这个宏来互换手中的剑与匕首。
4.D
双手武器
->
(主手武器+副手物品)
/script
PickupContainerItem(MainhandBag,
MainhandBagSlot)
/script
PickupInventoryItem(16)
/script
PickupContainerItem(TwohandsBag,
TwohandsBagSlot)
/script
PickupContainerItem(OffhandBag,
OffhandBagSlot)
/script
PickupInventoryItem(17)
(主手武器+副手物品)
->
双手武器
/script
PickupInventoryItem(17)
/script
PickupContainerItem(OffhandBag,
OffhandBagSlot)
/script
PickupContainerItem(TwohandsBag,
TwohandsBagSlot)
/script
PickupInventoryItem(16)
/script
PickupContainerItem(MainhandBag,
MainhandBagSlot)
副手物品可以是盾牌、副手武器、副手装备品。注意以上几个宏使用之时,鼠标上不要拖有物品,否则会出错。如要避免,可以使用CursorHasItem()来进行预判断。参看下面的几个宏:
4.E(主手武器+副手物品)<->
(单手武器+副手物品)
/script
if
(
not
CursorHasItem()
then
PickupContainerItem(mainhandBag,
mainhandBagSlot);
PickupInventoryItem(16);
PickupContainerItem(mainhandBag,
mainhandBagSlot);
PickupContainerItem(offhandBag,
offhandBagSlot);
PickupInventoryItem(17);
PickupContainerItem(offhandBag,
offhandBagSlot);
end
4.F
单主手武器或双手武器
->
(主手武器+副手物品)
/script
if
(
not
CursorHasItem()
then
PickupContainerItem(mainhandBag,
mainhandBagSlot);
PickupInventoryItem(16);
PickupContainerItem(mainhandBag,
mainhandBagSlot);
PickupContainerItem(offhandBag,
offhandBagSlot);
PickupInventoryItem(17);
if
(
CursorHasItem()
then
PickupContainerItem(offhandBag,
offhandBagSlot);
end
end
(主手武器+副手物品)->
单主手武器或双手武器
/script
if
(
not
CursorHasItem()
then
PickupInventoryItem(17);
if
(
CursorHasItem()
then
PickupContainerItem(offhandBag,
offhandBagSlot);
end
PickupContainerItem(mainhandBag,
mainhandBagSlot);
PickupInventoryItem(16);
PickupContainerItem(mainhandBag,
mainhandBagSlot);
end
4.G
更换备用主手武器
/script
if
(
not
CursorHasItem()
then
PickupContainerItem(mainhandBag,
mainhandBagSlot);
PickupInventoryItem(16);
PickupContainerItem(mainhandBag,
mainhandBagSlot);
end