1.人物信息栏中的武器互换
宏为:/script
pickupinventoryitem(16)ickupinventoryitem(17)
讲解:本宏是对于手上两把武器的互换.其中的(16)为主手,(17)为副手
如:主手是匕首
副手是剑(未用之前)
主首为剑
副手为匕首(使用本宏)
2.(前提:你的手上是双剑)
切换主手武器
宏:/script
if
(
not
cursorhasitem())then
pickupcontaineritem(mainhandbag,mainhandbagslot)
pickupinventoryitem(16)
pickupcontaineritem(mainhandbag,mainhandbagslot)end
讲解:这是在你想换掉主手中的剑而用匕首的宏(本人最爱,双剑练级
匕首吗当然是"荣誉杀敌")
例子:首先你要先选择你背包中,最好是一个不用的格子比如第4个背包中的第1格,这样把(mainhandbag,mainhandbagslot)这宏内容改为(41)
在本宏出现两个上述内容都改为(41)其他原封不动的打下来(注意:本宏中有一些内容之间缝隙大那是空格)
战士
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