Treasury Addon Autodrop Function |
||
|
Treasury addon autodrop function
Is it safe for my inventory to use Treasury to autodrop junk? Has anyone ever had it drop a wrong item?
Leviathan.Comeatmebro
Offline
inventory slots arent stored internally the way you see them, when you get an item it takes the first available slot and sorting doesn't change slots
this means that 2 steps are needed for an item to displace another example inventory(O = empty) X X X X O X X X O X you put item 3 in sack X X O X O X X X O X you receive 2 drops X X X X X X X X O X note that the other slots aren't changing, this means that the probability of dropping the wrong item is extremely low, effectively impossible in real situations(you'd have to be both storing the item you want to drop and taking out or obtaining another item within the same packet chunk or 300ms) for all effective purposes it will be safe barring any potential breaks from update(also unlikely, packet structure rarely changes) Ok, that makes sense. Thanks for the explanation. It would be nice if I got a dev response too, but I guess this may not be the right place to ask.
Leviathan.Comeatmebro
Offline
it's lua, anyone who looks at it can tell how it works
never mind that i wrote an autodropper for ashita well over a year before treasury had it I've used it a good bit since it's release, haven't had an issue on 3 accounts.
It works the way Comeatmebro describes it. It is only going to have problems if your inventory is changing rapidly, and it could be safeguarded to prevent that (but isn't currently).
Leviathan.Comeatmebro is a dev, just not for Windower :) But he knows what he's talking about, so you can take his word for it.
However, while dropping is relatively stable (as explained above, except for really exotic scenarios), passing/lotting can indeed be incorrect in certain situation. However, in those same situations, manual lotting would be incorrect as well, there's really nothing you can do about that. Offline
Posts: 73
Hey all,
For this addon, is there a way to make set lists to drop? Also, I have 2 items added to drop list and they haven't dropped. Am I missing something in how to setup this addon? Any help that can be offered would be greatly appreciated. Offline
Posts: 516
likard said: » Hey all, For this addon, is there a way to make set lists to drop? Also, I have 2 items added to drop list and they haven't dropped. Am I missing something in how to setup this addon? Any help that can be offered would be greatly appreciated. type //tr drop list to make sure they are actually appearing on the drop list for one thing. The lists is easy, open notepad in your scripts folder and make ur lines like this: Code input \/\/tr drop add Mauler's mantle wait .2; input \/\/tr drop add Anchoret's mantle wait .2; input \/\/tr drop add Mending cape wait .2; input \/\/tr drop add Bane cape wait .2; input \/\/tr drop add Ghostfyre cape wait .2; input \/\/tr drop add Canny cape wait .2; input \/\/tr drop add Weard mantle wait .2; input \/\/tr drop add Niht mantle wait .2; input \/\/tr drop add Conveyance cape wait .2; input \/\/tr drop add Cornflower cape wait .2; input \/\/tr drop add Dispersal mantle wait .2; input \/\/tr drop add Pastoralist's mantle wait .2; input \/\/tr drop add Yokaze mantle wait .2; input \/\/tr drop add Rhapsode's cape wait .2; input \/\/tr drop add Takaha mantle wait .2; input \/\/tr drop add Toetapper mantle wait .2; input \/\/tr drop add Updraft mantle wait .2; input \/\/tr drop add Gunslinger's cape wait .2; input \/\/tr drop add Lutian cape wait .2; input \/\/tr drop add Bookworm's cape wait .2; input \/\/tr drop add evasionist's cape wait .2; input \/\/tr drop add Lifestream cape then just exec the script and type //tr drop list to see whats on the list The commands list in the 'about' link on the lua on/off page will give you all the commands to work this lua how you need. All the commands can be put into macros for easy initiating and De-initating Offline
Posts: 73
Thank you very much. That was exactly what I needed.
Hijacking this cause my question in RQT was never answered. Could you do something similar or does it have a function like lightluggage (since it was said that LL was going to be discontinued and that treasury was the replacement) where you can load a profile and have it pass certain things?
Inside Treasury.lua find the function (line 126)
Code function find_id(name) if name == 'pool' then return pool_ids() elseif name == 'seals' then return S{1126, 1127, 2955, 2956, 2957} elseif name == 'currency' then return S{1449, 1450, 1451, 1452, 1453, 1454, 1455, 1456, 1457} elseif name == 'geodes' then return S{3297, 3298, 3299, 3300, 3301, 3302, 3303, 3304} elseif name == 'avatarites' then return S{3520, 3521, 3522, 3523, 3524, 3525, 3526, 3527} elseif name == 'crystals' then return S{4096, 4097, 4098, 4099, 4100, 4101, 4102, 4103} else return S(ids:key_filter(windower.wc_match-{name})) end end add your own list (before the else) Code elseif name == 'custom1etc' then return S{ID1,ID2...} Typing //tr d a custom1etc will add all the items on that list to your drop list Find the ID using ffxiah URL same way you did for LL edit: if you wanted JSE capes Code elseif name == 'jsecapes' then return S{28617, 28618, 28619, 28620, 28621, 28622, 28623, 28624, 28625, 28626, 28627, 28628, 28629, 28630, 28631, 28632, 28633, 28634, 28635, 28636, 28637, 28638} Cerberus.Flaminglegion said: » Inside Treasury.lua find the function (line 126) Code ... add your own list (before the else)[...] While this technically works it will be overwritten again the next time the addon updates. Someone mentioned they were working on a way to define profiles like these, so maybe this will be added soon. If they don't do it I may add it at some point, but I have quite a large queue of things I'm currently working on, so I can't make any promise on when it'll be done... Offline
Posts: 73
While I am not familiar with coding to write profiles, it is very easy to create a txt document that adds everything you want to the list. Then loading that file when you start is pretty much the same as loading a profile.
IE , look at the sample format Kooljack so generously showed. Change drop --> pass and you have the format for making an auto pass list. Save the filename.txt file in the scripts folder of windower. Then when you load up, say /console exec filename.txt It will add all of your preferences straight to treasury just like loading a profile. Thanks for the replies, think I got it figured out.
If I make a script and just add everything I want like it's shown above it seems to work. (input \/\/tr pass add Manibozho Boots, etc). Is it ok to use the item name or do you have to use their ID? If using item name, can you type the whole thing out or does it have to match how it's abbreviated in game? One last question, is their a function simliar to ll's "if item is not x then pass"? Thanks for the help! Offline
Posts: 73
Yup, use the item names. I typed the whole name out, I didn't try abbreviated versions.
As for a pass all except, it feels like something this could do, but I haven't figured that out myself.
Necro Bump Detected!
[744 days between previous and next post]
Offline
Posts: 75
I need some help, I havent used Treaury in almost a year, booted it up ran into dyna and it wasent dropping anything. Messed around with it a bit and it says when i reload it says: Treasury: lua runtime error: table index is nil
wtf does that mean and how do i fix it? Quote: wtf does that mean Quote: how do I fix it? //tr drop add nameofitem
Necro Bump Detected!
[621 days between previous and next post]
Have you tried deleting and reinstalling Treasury odd?
Post your list, you probably need to recreate it but may be able to find the issue.
When you load treasury I'm assuming you get a "table index is nil" or similar error? Oh yeah, that'd make sense, I keep forgetting others use multiple characters on the same box. /crazy
Necro Bump Detected!
[59 days between previous and next post]
Asura.Jugsofholyness
Offline
It started last week, but my Treasury is randomly auto-dropping things that's not in my /drop list. I assume this is because of the current December 2018 event where you get a SP Gobbie Key added to your inventory a set amount of time after your log-in points is awarded. Today, it tossed some bcnm crests
I've lost one Mog Bonanza marble this way, thank god I don't keep my gear in my inventory anymore cuz that could've gone a lot worse. Of course, that Mog Bonanza marble the addon tossed could've been a Rank 1 winner too but now I'll never know... Offline
Posts: 798
That seems like you have copied over someone else's drop list or you are not reading the config file correctly. Do you only play one character?
Post your settings.xml as this is basically worthless otherwise.
Offline
Posts: 1112
Asura.Jugsofholyness said: » It started last week, but my Treasury is randomly auto-dropping things that's not in my /drop list. I assume this is because of the current December 2018 event where you get a SP Gobbie Key added to your inventory a set amount of time after your log-in points is awarded. Today, it tossed some bcnm crests I've lost one Mog Bonanza marble this way, thank god I don't keep my gear in my inventory anymore cuz that could've gone a lot worse. Of course, that Mog Bonanza marble the addon tossed could've been a Rank 1 winner too but now I'll never know... no issues here so it most likely something locally with you. config fiel corruption ( it happens a lot with treasury for some reason Asura.Jugsofholyness
Offline
Staleyx said: » That seems like you have copied over someone else's drop list or you are not reading the config file correctly. Do you only play one character? No it's my own drop list. I triple box and all 3 accounts have Treasury up. One account has only one character, while the other 2 are maxed out at 32 because of the current event for login points on mules. Treasury Settings LUA |
|
All FFXI content and images © 2002-2024 SQUARE ENIX CO., LTD. FINAL
FANTASY is a registered trademark of Square Enix Co., Ltd.
|