用于在《魔兽世界经典版》中将物品从背包移动到银行的LUA命令

我有一个很棒的小LUA命令,可以将所有的矿石移动到我的银行:

/run for b=0,4 do for s=1,GetContainerNumSlots(b) do if strmatch(GetContainerItemLink(b,s),"Ore") then UseContainerItem(b,s);end; end; end;

但我不知道怎么让它移动矿石和石头。 我还是LUA的新手,"或"语句让我有些困惑。 谢谢 :-)

点赞
用户1297035
用户1297035
运行以下命令: 

/run for b = 0, 4 do for s = 1, GetContainerNumSlots(b) do local link = GetContainerItemLink(b, s) if link:match("Ore") or link:match("Stone") then UseContainerItem(b, s) end end end

``` 其中,这段代码的作用是循环遍历容器中的物品,如果其中存在 "Ore" 或 "Stone" 物品,就使用该物品。

2020-05-26 11:13:29