item:moveTo suggestion

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
dx876234
Posts: 188
Joined: Sat Jul 24, 2010 6:13 am

item:moveTo suggestion

#1 Post by dx876234 » Sun May 25, 2014 1:57 pm

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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: item:moveTo suggestion

#2 Post by rock5 » Sun May 25, 2014 9:51 pm

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()
  • 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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest