Debugged it to
Code: Select all
RoMScript("SplitBagItem("..item.BagId..","..need..")")
I've used the element fuser script a few weeks ago successfully.
Code: Select all
RoMScript("SplitBagItem("..item.BagId..","..need..")")
Code: Select all
/run SplitBagItem(GetBagItemInfo(1),3)
Code: Select all
/script SplitBagItem( 1 , 5 );
Code: Select all
local function Fuse(id,num)
-- Move items to magic box
local need = num
local magicslot = 51
print("fuse%s-%s", id, num )
for i = 61,240 do
local item = inventory.BagSlot[i]
item:update()
if item.Available and (not item.Empty) and item.Id == id then
printf("got @ "..i)
if item.ItemCount > need then
printf("split "..need.." of "..item.BagId.." ")
RoMScript("SplitBagItem("..item.BagId..","..need..")")
rest(1000)
need = 0
else
item:pickup()
need = need - item.ItemCount
end
yrest(200)
inventory.BagSlot[magicslot]:pickup() yrest(200)
magicslot = magicslot + 1
end
if need == 0 then break end
end
yrest(500)
-- Press 'Confirm'
RoMScript("MagicBoxRequest()");
yrest(500)
EmptyMagicbox()
inventory:update()
end
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests