1. i want to autobuy monster's feed
2. keep putting it in cart upto cart's full capacity
3. at the end of the autoget 30 monster's feed from cart evertime it becomes 0
4. when finally the cart has 0 monster's feed i want it to do [1.] and repeat
i tried doing it but there were difficulties
ty
Also how do i stop the bot from autostoring after it has autosell after i type the autosell command?
ty
how to auto buy and store in cart and also autoget?
Moderator: Moderators
Re: how to auto buy and store in cart and also autoget?
how does this work does anyone know this code?
pls help
Re: how to auto buy and store in cart and also autoget?
What's you code you have currently set in your config?
Re: how to auto buy and store in cart and also autoget?
If you know beforehand how much space is left in your cart, this is easy. Sort of...
items_control.txt
Monster's Feed 30 0 0 1 1
=> keep 30 in inventory, store excess in cart, replenish from cart
config.txt
buyAuto Monster's Feed {
npc wherever
standpoint wherever
minAmount 1
maxAmount 5000 (? - calculate yourself!)
}
=> when there is nothing left in inventory buy 5000
So every time there is less then 30 items in your inventory it will move items from your cart to your inventory. When there is nothing left in the inventory (because the cart is empty, too), it will buy 5000 items. Then it will move 4970 of them to the cart the next time it runs the cart checks.
Note that your inventory must be able to hold the full load you buy. Also, if you ever trigger autobuy for any other reason (manually or because you autobuy another item, or because the overloaded inventory after buying triggers a autosell+buy cycle before the move-to-cart happens), the bot will blindly buy another 4970 items because the autobuy does NOT check your cart's content...
items_control.txt
Monster's Feed 30 0 0 1 1
=> keep 30 in inventory, store excess in cart, replenish from cart
config.txt
buyAuto Monster's Feed {
npc wherever
standpoint wherever
minAmount 1
maxAmount 5000 (? - calculate yourself!)
}
=> when there is nothing left in inventory buy 5000
So every time there is less then 30 items in your inventory it will move items from your cart to your inventory. When there is nothing left in the inventory (because the cart is empty, too), it will buy 5000 items. Then it will move 4970 of them to the cart the next time it runs the cart checks.
Note that your inventory must be able to hold the full load you buy. Also, if you ever trigger autobuy for any other reason (manually or because you autobuy another item, or because the overloaded inventory after buying triggers a autosell+buy cycle before the move-to-cart happens), the bot will blindly buy another 4970 items because the autobuy does NOT check your cart's content...