Gammon Forum
Entire forum
MUSHclient
Plugins
Aardwolf Container Sort and Level-get/put
Aardwolf Container Sort and Level-get/put
|
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Madcatz
(10 posts) bio
|
Date
| Tue 17 Nov 2009 02:22 PM (UTC) |
Message
| 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. | top |
|
Posted by
| Madcatz
(10 posts) bio
|
Date
| Reply #1 on Tue 17 Nov 2009 02:47 PM (UTC) |
Message
| 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? | top |
|
Posted by
| Nick Gammon
Australia (22,975 posts) bio
Forum Administrator |
Date
| Reply #2 on Tue 17 Nov 2009 06:52 PM (UTC) |
Message
| 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 |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
11,878 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.