Aardwolf Container Sort and Level-get/put

Posted by Madcatz on Tue 17 Nov 2009 02:22 PM — 3 posts, 17,012 views.

#0
I've written a plugin that'll allow you to sort the contents of a container, by level. It'll also allow you to, for example, get all items from level 121 to level 181 from a bag, or put all items that you're carrying from level 41 to 61 into a bag. 6,000 character limit here, it seems, so for now, it can be found here:

http://docs.google.com/Doc?docid=0AQcSJ7QDH5gyZGMzdDRkanZfMGduajRoczNr&hl=en

You'll need to save this file, and then rename to to a .xml file.

Note: It looks like google docs is fubaring the symbols when downloading. You might have to just copy/past into notepad, and then save as a .xml file.

The syntax is shown when installing, it should be pretty self-explanatory. A note about sorting: It takes 1 second for every 4 items when you're sorting a container. This is simply due to the mud only processing 8 commands a second. And you can't do anything while it's sorting, unless you use the SendImmediate feature. So, if your container has 360 items in it, it's going to take a minute and a half for it to sort.

(Note: You don't have to be signed into Google to download/view the file. Just follow the link, and copy/paste into notepad, and save as a .xml file)

By the way, if anyone knows of a better way for me to make this available, I'd be happy to do that, too.
#1
Oh, by the way, the

requires = "4.40"

line...is that just arbitrary, or is it determined somehow? In other words, if I just change this line, will people with earlier versions be able to use it, assuming, of course, that I didn't use anything unique to the newer versions?
Australia Forum Administrator #2
The "requires" line assumes the current version, since presumably that will work. However you can crank that back a bit depending on what features you use. The various function calls display which version they were introduced in when you get help on them.

Version 4.34 introduced miniwindows so you probably don't want to go earlier than that. Version 4.38 introduced the inbuilt SQLite3. Check out the "release notes" page to see if you might safely go back to version 4.39, 4.38 or so on.

Release notes:

http://www.gammon.com.au/scripts/showrelnote.php?productid=0