TunaTuna
VIP-
Posts
5 -
Joined
-
Last visited
-
Days Won
1
Everything posted by TunaTuna
-
scripting How to Optimize Item Selection for My Bot?
TunaTuna replied to ToastLover's topic in Scripting
I wrote this to partially do what you're talking about: private void grabBankItem(int[] itemIDs) { for (int i : itemIDs) { if (!Equipment.contains(i) && !Inventory.contains(i) && Bank.contains((i))) { Bank.withdraw(i); break; } } } Now i can just call that for any equipment I need instead of the stock bank withdraw. It prioritizes the list from first to last. Specifically, I use this for getting the lowest uses jewellery like dueling rings. In your case, you can pass in the IDs of all the items for a certain slot from BIS to worst and itll get that for you. Wouldn't be hard to change it to strings. grabBankItem(new int[]{11190,11191,11192,11193,11194}); This gets me the weakest Digsite pendant that I own. -
Also trying to mine in p2p mining guild. Might be user error but mine goes straight to the 3 at the bank, regardless of other players. Is there a setting so it doesn't crash other people?
-
Overall it works pretty well but there's a few issues. It doesn't count cooked fish + raw fish towards the count. I think it would also be good to turn in all fish regardless of number/cooking once the boss is low. I frequently end runs with 14+ fish despite having the count set to 12. The logic for putting out fires is a bit jank. Instead of just delivering the cooked fish, script will do a 180 to go put out an irrelevant fire that isn't blocking anything and run away to refill the single bucket before finishing the delivery. I think there would also be a benefit to slightly slower reaction times on the waves, the script is almost always the first one tethered. Finally, while uncommon, it doesn't dodge the torrent attack on cannons.