[Macro] Banksorter

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

Chatwiththisname
a lesser mummy
a lesser mummy
Posts: 51
Joined: Sat Oct 16, 2004 8:09 pm
Location: Texas

[Macro] Banksorter

Post by Chatwiththisname » Wed Jul 26, 2017 4:02 pm

Attempted to create a bank sorter, while it does sort your bank, it doesn't sort inside an array. I tried but I was fudging up the movement of the items. The code is there, but either commented out /varset's or the sub call all together. Until then, the items are sorted in real time. First and last item seem to be retarded and refuse to be sorted. Some complications with this macro for me arose from ${String[letters].Compare[moreletters]} not returning expected results. But the end result is probably the same. My sorting loop is likely not accounting for something that I'm overlooking.

/mac banksorter

don't need to have bank open, just be with 20 distance of a banker.

Will target nearest banker, open the bank, open all the bags, compress the bank, collect a list of items, sort the items, and close all open windows. Does not mess with the players inventory, if you want to put things in the bank, and then sort, do it manually. My head hurts from the day 1/2 I spent writing this lol.

I did view the VIP macro, the code might as well have been japanese to me for the most part. But, that macro doesn't work. I couldn't find the problem in it, appears to be an "array index out of bounds" issue. So I wrote this one. As they say on FMJ... There are many like it, but this one is mine. Hope it gets some use.
Attachments
BankSorter.mac
(8.77 KiB) Downloaded 126 times