Splitter Addon/Userfunction by Rock5
Posted: Fri Oct 03, 2014 3:24 am
Splitter Addon
Description:
Description:
- 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.
- /split item, 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.
Examples:/merge item, spacesCode: Select all
/split /split 1 /split "Phirius Token Coin", 5
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.
Examples:Code: Select all
/merge /merge 2 /merge "Phirius Token Coin", 5
- split(item, stack_size)
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.
Examples:merge(item, spaces)Code: Select all
split() split(1) split("Phirius Token Coin", 5) split(123456)
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.
Examples:splitCollectSetup(harvestId, questItemId, itemStackLimit)Code: Select all
merge() merge(2) merge("Phirius Token Coin", 5) merge(123456)
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.
Example:splitCollect()Code: Select all
splitCollectSetup("Pipi Tree Sap", "Pipi Tree Sap", 5)
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.
Examples:findSplitStack(idOrName, size)Code: Select all
splitCollect() -- Or if you want to collect all near by while splitCollect() == true do yrest(100) end
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.
Example:Code: Select all
item = findSplitStack("Pipi Tree Sap", 25) UMM_SendInventoryItem(recipient, item)