My splitter addon (inspired by the Superstitious Addon) allows you to split items in your backpack to fill your bag so you can use the itemqueue to collect more items (usually daily items) than you can usually collect. I've also included the option to specify the stack size so you can use it to pre-split a stack of items into the correct sized stack for mailing to your alts.
Addon Syntax:
/splititem, stack_size
item - Can be the slot number or name of the item you wish to split. Optional. Defaults to splitting all items. stack_size - If you wish to split an item into particular stack size then use this option. Optional. Defaults to 1.
item - Can be the slot number or name of the item you wish to merge. Optional. Defaults to merging the last split item/s, otherwise all items. spaces - The number of spaces you want to free up when merging. Used by the splitCollect userfunction. Optional. Defaults to doing a full merge.
item - Can be the slot number, id or name of the item you wish to split. Optional. Defaults to splitting all items. stack_size - If you wish to split an item into particular stack size then use this option. Optional. Defaults to 1.
item - Can be the slot number, id or name of the item you wish to merge. Optional. Defaults to merging the last split item/s, otherwise all items. spaces - The number of spaces you want to free up when merging. Used by the splitCollect userfunction. Optional. Defaults to doing a full merge.
Sets up the options to use splitCollect(). Must be called before using splitCollect() usually in the onload of your waypoint file.
harvestId - The id or name of the item to harvest. Mandatory. questItemId - The id or name of the harvested item in your bag. Mandatory. itemStackSize - The stack size at which the game stops allowing you to collect more. Optional. Defaults to 5.
splitCollectSetup("Pipi Tree Sap", "Pipi Tree Sap", 5)
splitCollect()
Harvests the item using the settings set up by splitCollectSetup. When the item count reaches 1 less than the maximum allowed it will move the items to the magicbox and do a split before collecting so the item remains in the itemqueue. When the itemqueue is full it will do a merge during harvesting the item so it can collect that last item.
Accepts no arguments. Returns "finished" when finished and true if it finds something to collect.
splitCollect()
-- Or if you want to collect all near by
while splitCollect() == true do yrest(100) end
findSplitStack(idOrName, size)
Finds a stack of items in your inventory. If the specified stack size isn't found then it does a split and makes multiple stacks of the item of that size. Useful when sending stacks of daily items to multiple characters.
idOrName - The id or name of the item you want to find. size - The stack size you want to find/create.
Here are a couple of example waypoint files that use the functions.
PipiSap_Send.xml
Collects Pipi Tree Sap in Northern Janost Forest 25 at a time using splitCollect. Then it mails them to an alternate character and then continues collecting. Character needs to be able to kill the mobs.
It has 2 user options
Send_To = "recipient name" -- Character to send the Pipi to. Send_Amount = 0 -- Stop after sending this many. Set to 0, to not stop.
Collects the quest items sent by PipiSap_Send, or other similar waypoint file, and sends them to a list of names, pre-splitting the items using findSplitStack() to speed it up a bit. Will work near any mailbox as it is all run from the onload.
It has 3 user options so you can use it with any dailies or other items.
Recipients = {"name1","name2","name3"} ItemName = 207435 -- Pipi Tree Sap StackSize = 25
Rock, I found an issue on this addon. It seems that when you use a /split, sometimes get the items from the locked bag and place in the unlock bags. Could you check it out?
I'm sure. Is seems that if you have some stacked items on a locked backpack, it will ungroup them and then relocated on the unlocked backpack, of course, leaving one there. I had a character with lots of xmas candies locked in one bag, and suddenly start taking off and placing in unlocked bagpack.
Also, you can use /split item,quantity with the itemname of a stack blocked and it will ungroup and move. This also cause a bug that it will start looping without control when you split and when you merge if there are two stack placed on the locked backpack.
This is the last piece of information I could get from the process. If someone could replicate, it would be nice.
The only thing I can think of is if Kansaki is on a private server and they fugged something up so that locked bags look locked aren't really.
The addon shouldn't even try to use locked bags normally, unless the available bags are not in sequence eg. bag 3 is locked and bag 4 is unlocked. I never catered for that. The addon assumes the bags are in sequence.
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.
Rock, I'm playing in the oficial server. I will explain how I reach to this issue. In a locked bad I had food stacked there. If you call the split function with the ID of one stacked item in the locked backpack, it will split the stacked item and placed under an open backpack, it will leave at least one in the locked backpack. I dont have any other character with items in a locked backpack, so I cant recreate the issue. The character where I discover the issue had xmas candies and chocolate there, like 100 of each. If I call the split funcion with the ID or Name of that item, it will split and move part of that stack into an open backpack. If I can replicate I will try to capture some video and post it here.
Leroy can try again and see if you can replicate it with just one item on the backpack?
EDIT
Rock, could it be that, the character I see that had the backpack 5 locked with the xmas items in there, and the 6 open.