Page 1 of 1

item:moveTo suggestion

Posted: Sun May 25, 2014 1:57 pm
by dx876234
I'm implementing an userfunction to get maid pots while moving old pots to bank and back again for merge but, to my surprise the item:moveTo merges stacks which ruins the merging of maid pots to update expiration to 24h.

So, question is, would it be possible to have one optional argument in the item:moveTo which is named "noMerge" or something simular? I.E. to just move, without merging stacks?

Also, the item:pickup(), can it support pickup N items from stack?

Regards,

-dx

Update: Found the SplitBagItem call, does a pickup of N items

Re: item:moveTo suggestion

Posted: Sun May 25, 2014 9:51 pm
by rock5
Because this is a specific case it's better to just leave it to your userfunction. It should be easy enough to do.

Example, moving stack to empty slot.

Code: Select all

item=inventory:findItem("name")
item:pickup()
empty = bank:findItem(0)
empty:pickup()
With appropriate yrests where needed.

Splitting an item would be similar.

Code: Select all

item=inventory:findItem("name")
RoMCode("SplitBagItem("..item.SlotNumber..","..numberToSplit..")")
empty = bank:findItem(0)
empty:pickup()