Problems with item:moveTo inventory
Posted: Mon Mar 13, 2023 3:53 am
i have a function in my secret garden script, that automatically moves the items to the itemshop bank, but it works not really good...
the script is running, every item appears at the mouse cursor, but only 20-30% of the items will be moved.
myabe it is an address or a timing problem. i tried to set a "yrest(1000)" after the "item:moveTo("isbank")" but no success with this.
can anybody help me or probably having a similar problem?
the script is running, every item appears at the mouse cursor, but only 20-30% of the items will be moved.
myabe it is an address or a timing problem. i tried to set a "yrest(1000)" after the "item:moveTo("isbank")" but no success with this.
can anybody help me or probably having a similar problem?
Code: Select all
inventory:update();
yrest(1000);
for slot = 1, 240 do
item = inventory.BagSlot[slot]
if item and item.ItemShopItem then
item:moveTo("isbank")
end;
end;
[/code
thank you :-)