how to auto buy and store in cart and also autoget?

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderator: Moderators

Message
Author
drsuckit
Noob
Noob
Posts: 15
Joined: 01 Nov 2013, 07:26
Noob?: Yes

how to auto buy and store in cart and also autoget?

#1 Post by drsuckit »

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

drsuckit
Noob
Noob
Posts: 15
Joined: 01 Nov 2013, 07:26
Noob?: Yes

Re: how to auto buy and store in cart and also autoget?

#2 Post by drsuckit »

:roll:
how does this work does anyone know this code?
pls help

Raider
The Kore Devil
The Kore Devil
Posts: 672
Joined: 22 Feb 2013, 03:40
Noob?: No
Location: The Netherlands

Re: how to auto buy and store in cart and also autoget?

#3 Post by Raider »

What's you code you have currently set in your config?

Beechbone
Noob
Noob
Posts: 7
Joined: 01 Nov 2013, 17:47
Noob?: No

Re: how to auto buy and store in cart and also autoget?

#4 Post by Beechbone »

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...

Locked