如果你没有装团队事件监控就把RE.DelayCall改成HM.DelayCall,如果你没装海鳗也没装团队事件监控,那用不了,两个必装一个。
/script
local a = 16501
local UseBagItem = function(szName)
local me = GetClientPlayer()
for i = 1, 5 do
for j = 0, me.GetBoxSize(i) - 1 do
local it = GetPlayerItem(me, i, j)
if it and it.szName == szName then
OnUseItem(i, j)
end
end
end
end
for i = 0 ,999 do
RE.DelayCall(i*a,function()
UseBagItem("佳·回元餐")
Output("use:"..i)
end)
end