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
item:moveTo suggestion
Re: item:moveTo suggestion
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.With appropriate yrests where needed.
Splitting an item would be similar.
Example, moving stack to empty slot.
Code: Select all
item=inventory:findItem("name")
item:pickup()
empty = bank:findItem(0)
empty:pickup()
Splitting an item would be similar.
Code: Select all
item=inventory:findItem("name")
RoMCode("SplitBagItem("..item.SlotNumber..","..numberToSplit..")")
empty = bank:findItem(0)
empty:pickup()
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Who is online
Users browsing this forum: Semrush [Bot] and 1 guest