wulinnike 发表于 2023-2-23 21:48:08

有没有选矿的脚本写法

就是使用自动选矿的技能,然后可以自定义选矿的矿石名称?

xueying 发表于 2023-2-24 10:38:02

local item = "加固的箱子"      --矿石名称
local min_itemcount = 1      --最小数量,一般是5
local itemspell = "选矿"         --技能,也可以是研磨,分解

if GetItemCount(item) >= min_itemcount and not BeeUnitCastSpellName("player") then
    BeeRun("/cast " .. itemspell)
    BeeRun("/use " .. item);
    return
end

wulinnike 发表于 2023-2-24 10:43:14

太感谢了,谢谢!这个大佬真给力啊
页: [1]
查看完整版本: 有没有选矿的脚本写法