• World of Warcraft Addons
  • World of Warcraft
  • Average Rating:

  • Your Rating

  • Share
  • Report Abuse

QuickSplit

  Download the Curse Client

Project Updated:
Files Updated: Thu, Jan 8 2009
Supports Game Version: 3.0.3
Category: Bags & Inventory
Tags:

[Edit Tags]

Project Manager: Bentic
Additional Authors: No additional authors
Current Version: 2.5
License: All Rights Reserved
Avg Daily DL (last 30 days): 5
Downloads Total: 11,139
Favorites: 38
Comments: 32
  • About QuickSplit
  •  

If you hold down Alt and Shift as you click an item in your bags, if the item is a stack it splits it in half automatically rather than having to put in the number to split it up by yourself.

There is now some modifications to the default split frame, a slider bar for setting the amount, and a split multiple button for making more than one stack in the set amount.

This includes options for automatically dropping the new stack in your bags, and also the option to tell you what its doing.

I had lots of help with this project, and the other people who helped are listed in the lua file.

/quicksplit - in game will list the commands and their current settings. There are 2 options for the addon that control its functionality. They work as toggles.

/quicksplit autodrop - turns on or off the addon automatically placing the split stack in an empty item slot.

/quicksplit verbose - turns on or off the text reporting. The addon will still send messages to the default chat frame when something critical happens such as no more slots for items when autodrop is enabled.

  • Downloads (3)
  •  
File Name Release Type Game Version Downloads Date
Addon Curse.com Beta 2.3.3 0 9/29/2008
  File Name Release Type Game Version Downloads Date  
  QuickSplit 2.5 Release 3.0.3 678 1/8/2009
  QuickSplit 2.4.1 Release 2.3.0 217 11/18/2007
  QuickSplit 2.4 Release 2.3.0 14 11/15/2007
  • 1 page(s)
Advertisement
  • Comments

Add Comment  

Add

You need to login or register to post.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
  • JuddMan said 

    Nice mod. It replaces the missing quick split i used to use in auctioneer classic. I did however, modify my copy to use control instead of alt, because Auctionator uses alt-click on items to search for auctions, which disables the quick split whenever you're at the auction house. (i was used to using control from the days of auctioneer classic too).

    I found one error that pops up whenever you try to split an empty slot.

    Near line 191, where it says:

    if ( QSStackSplitFrame.maxStack < 2 ) then
    QSStackSplitFrame:Hide();
    return;
    end

    If you click in an empty slot it will throw up an error about a nil value. the fix is to add check for nil:

    if ( ( not QSStackSplitFrame.maxStack ) or
    QSStackSplitFrame.maxStack < 2 ) then

    Reply Report Permalink
  • Bentic said 

    There already is a 1 button, you just shift click the left arrow to go to minimum, and shift click the right arrow to go to maximum.

    As for the other split numbers, i simply chose numbers that seemed to be common fractions. The slider bar and arrows should allow for easy adjustments.

    Reply Report Permalink
  • Sharky said 

    one suggestion

    quick split buttons for 1 2 5 20 100 would make much more sense than 5 10 25 50 100

    keep up the good work!

    Reply Report Permalink
  • net said 

    could you please reupload your latest file, we have got an issue with one of our mirror, it shouldn t happen again, thank you.

    Reply Report Permalink
  • Bentic said 

    Ahh.. Well i apologize for that then. I don't know if i can get past that problem with the current way i am hooking the function.. but i will see if its possible.. only problem is with only 3 modifier keys, and having 2 already used, and the third used by a lot of addons for a different function, I may unfortunately not have a choice.

    Reply Report Permalink
  • Sharky said 

    Shift + Alt changes Keyboard Layout on German Windows (global Windows Hotkey), so you can imagine the havoc it can cause. :D

    Reply Report Permalink
  • Bentic said 

    Updated for UI version 20000. Working on some new functionality that I hope to have included by Christmas, but no promises. :)

    Reply Report Permalink
  • Yeah, after some days of reading and testing I managed to make my first addon. It restacks items and splits them too, so that it has the complete functionality of Quick-Split which anyway is broken. You can get it at http://ui.worldofwar.net/ui.php?id=1539, but I will put in onto this website also, now that it is finished. Regarding the splitting of stacks all you have to do is ALT-leftclick on a stack, put in the desired stack size and the stack is then split in several smaller stacks with that new size.

    Reply Report Permalink
  • I wonder why nobody has ever made an addon which automatically stacks all stackable items when there is no more room in your inv. This should be a native function of WoW, but as it is not there should be an addon.

    I will try to make such a thing for myself.

    Cheers Thomas

    Reply Report Permalink
  • Bentic said 

    Im afraid i dont use myinventory or any other inventory bag mods.. and I dont have time at the moment to get into them. I know this version on Curse of my addon works fine with the current version of the game tho. only reason i can see it doing what you say is that myinventory onclick function is getting called before quicksplit and thus quicksplit is not getting called at all. either that or you're accidentally not clicking on a stacked item.. but i doubt that.

    Reply Report Permalink
  • Jadieh said 

    "If you hold down Ctrl and Shift as you click an item in your bags, if the item is a stack it splits it in half automatically rather than having to put in the number to split it up by yourself."

    If *I* hold down Ctrl and Shift as I click on an item in my bags, the dressing room opens and it says "Cannot equip this item". The stack is not split. :(

    Reply Report Permalink
  • jade said 

    if you have myinventory, just copy this code and paste it somewhere in the QuickSplit_Onload() function

    if MyInventoryFrameItemButton_OnClick then MyInventoryFrameItemButton_OnClick=QuickSplit_Splitter; end

    Reply Report Permalink
  • Jadieh said 

    Just gives the usual window asking for how many. :(

    This is a huge pity. I would also like to see an addon that can automatically split a stack into singles (bagspace permitting)...

    Reply Report Permalink
  • Lamarex said 

    I also think it would be very cool if u could make stacks turn into singles. Lots of drops sells better single, than stacked, but its a pain in the a.. to unstack all the time.

    Lama

    Reply Report Permalink
  • Ramble said 

    Sorry I didn't get back to you sooner. Anyhow, the way you'd want to check for MI and MB is to check for the OnClick events way to check for the addons would be to see if their frames exists.

    if MyInventoryFrameItemButton_OnClick then

     -- hook to your own function 

    end if MyBankFrameItemButton_OnClick then

     -- hook to your own function 

    end

    I'm not so sure how much you want to expand this project, but I'm envisioning a completely redone Inventory interface with MI, MB, and further replacements for the stack split frame, the Loot Frame, and group loot roll frames. If you're interested, heres what I think would make for a cool SplitStack frame:

    • Simplify: translucent background like in MI and MB.
    • Add info about what you're splitting to the Split window. The function to show the split gives you the button, and from that you should be able to get the bag/slot, thus the item. I'm thinking show a copy of the item button and the name like it looks in the loot window.
    • Replace the +item -item buttons and the edit box with a slider. The code for sliders isn't too complicated, I've got some in the MI config panel. Most of the time it's useless to use the buttons, and tedious to type a value. The largest stacks I think people typically want to split are 20, picking a discrete value between 1 and 20 isn't that bad on a slider.
    • Default the split ammount to half. You could probably throw an option for this sort of thing somewhere.

    Just throwing it out to ya. It's something I might do eventually if you're not interested. Rothran's suggestion doesn't seem too bad, especially since you have autodrop code implemented already. Of course it also assumes you can pickup and drop multiple times in a script, which I think is OK, I haven't messed with it though. Anyways, it'd require more input than just clicking the items, since you would need to know how big each stack was; You'd also need to calculate total free slots to figgure out the ammount of times you could split it.

    Looking forward to future features ;-)

    Reply Report Permalink
  • Bentic said 

    Rhothran - That functionality is WAY beyond the scope of my project goal, but perhaps in a future version, i'll have to see. At the very least the splitting option is much more possible than the combining option.

    Ramble - Thanks for that info, it helps a lot. A further question.. Is there any way for me to check if either of those addons are loaded and thus change my function calls? Im not sure if that exists.

    I'll try and look into it in any case.

    Reply Report Permalink
  • Ramble said 

    Bentic: to get this working with MyInventory: Hook MyInventoryFrameItemButton_OnClick. The only major difference in MyInventory item buttons and regular item buttons is you can't use this:GetParent():GetID(), this:GetID() to get the bag and slot numbers. Instead, use bag, slot = MyInventory_GetIdAsBagSlot(this:GetID())

    I don't know how much you tested this stuff with Bank inventory splitting (which until the patch is somewhat buggy, I'll explain that more if you need me to), but there's probably issues with MyBank supporting this too for the same reason. For MyBank, the function to hook is MyBankFrameItemButton_OnClick to get the bag and slot numbers: bag, slot = this.bagIndex, this.itemIndex;

    I'm working on updating MyInventory, and I'd acutally like you to get the bag and slot numbers the same way as in MyBank, but it won't be available until I can get a version up. Hope this helps.

    Reply Report Permalink
  • Rhothran said 

    Great Addon - Me loves it. But I have a couple suggestions. 1. It'd be cool if you could make it so that it can take a stack of say... 20, and split it into 20 stacks of 1, or 10 stacks of 2... I suppose that might take a bit of work to implement, but would be cool. 2. Would it be possible to make it able to rejoin a bunch of different stacks and put them into the least amount of item spaces? For Example, you have 3 stacks of fish. 1 stack of 8, 1 stack of 3, and one stack of 16. You Ctrl + Shift + Right Click or something, on one of the stacks, and you end up with 1 stack of 20, and 1 stack of 7. That'd be wicked.

    Reply Report Permalink
  • Bentic said 

    My code is pretty simple, im guessing it must be the different itembuttons that make it not work then.. since mine simply hooks the function when you click on an inventory bag item.

    Reply Report Permalink
  • Ramble said 

    I doubt just disabling Autodrop will help; the issue is that MyInventory's custom ItemButtons have their own handling for Item Splits. I'm doing lots of work with MyInventory, basically taking it over. I'm going to take a look at your code later and maybe I can offer some suggestions what needs to get changed (either on your end or mine).

    Reply Report Permalink
  • Similar Addons
  •  

Average downloads per day

  1. 7,815 Bagnon Bags & Inventory
  2. 2,457 ArkInventory Bags & Inventory
  3. 2,051 Altoholic Guild, Bags & Inventory, Mail...
  4. 1,920 XLoot Bags & Inventory
  5. 1,875 RatingBuster Bags & Inventory