Page 1 of 1

create empty trash slot

Posted: Mon Nov 30, 2015 10:43 am
by imajor
Hi,

I want to copy the trash inventory from a character to another, including empty slots. How can I do that? I can call insert on the new inventory to all the items in the old, but I need to skip empty slots, because insert won't accept that. Any ideas?

Thanks in advance

Re: create empty trash slot

Posted: Mon Nov 30, 2015 1:38 pm
by imajor
I solved it with a gigantic hack, for the empty slots I just insert some cheap items (f.e. iron stick) and remove then in the next game tick. If I remove then in the same game tick, then the slots are not correct. I would still be veryhappy if someone could give me the proper way for doing this. Also when I copy quickbars, is there a way to copy the lock status of a slot?