help for bot vend

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

jayfongs
Noob
Noob
Posts: 2
Joined: 16 Jan 2011, 12:06
Noob?: No

help for bot vend

#1 Post by jayfongs »

can someone help me for bot vend and refill from storage here is my macro.txt
:oops: :oops: :oops:

automacro gohome {
location not prt_fild05
exclusive 1
run-once 1
call {
do move prt_fild05 288 224
do sit
release gohome
}
}

automacro vend {
inventory White Herb
exclusive 1
run-once 1
call {
do cart add White Herb
release vend
}
}

automacro benta {
cart "White Herb" > 500
exclusive 1
run-once 1
call {
do openshop
do e heh
release benta
}
}

automacro storage {
cart "White Herb" > 500
exclusive 1
run-once 1
call {
do autostorage
release storage
}
}
Uzah
Human
Human
Posts: 25
Joined: 04 Jun 2011, 18:29
Noob?: Yes
Location: pRO Payon

Re: help for bot vend

#2 Post by Uzah »

I presume you can vend, you have set up your storage password in config.txt already and your main problem is the autostorage command so as to refill your shop.
First, delete your last automacro simply because the condition to start the autostorage is wrong; and, replace it with this:

automacro Get 600 White Herbs {
timeout 20
soldout >= 1
cart "White Herb" < 600
exclusive 1
call {
$a = 600
$aa = @cartamount (White Herb)
$aaa = @eval ($a-$aa)
do closeshop
do talknpc 203 123 c r1 #Make sure you edit this part depending on the NPC's coordinates and conversation sequence.
pause 3
do storage gettocart White Herb $aaa
do storage close
}
}

It automatically perform autostorage to get 600 White Herbs when the amount of sold out item slots in your shop >= 1.
And also, regarding "automacro benta" instead of "White Herb" > 500 make it "White Herb" >= 1 so that whenever you get disconnected with less than 500 White Herbs in your cart, you can still continue vending rather than idling.

Next time try to be specific with your problem so that we'll know where to start.
What have you done so far?
User avatar
SkylorD
Moderators
Moderators
Posts: 1197
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil

Re: help for bot vend

#3 Post by SkylorD »

inventory White Herb
The syntax is :
inventory "Item Name" <condition> <value>
Equal on automacro Benta and other...

But,have showed some problem ?
Learn rules
jayfongs
Noob
Noob
Posts: 2
Joined: 16 Jan 2011, 12:06
Noob?: No

Re: help for bot vend

#4 Post by jayfongs »

Image

still same error and still not vending any items
Uzah
Human
Human
Posts: 25
Joined: 04 Jun 2011, 18:29
Noob?: Yes
Location: pRO Payon

Re: help for bot vend

#5 Post by Uzah »

^ I tested the automacro I posted and its running fine. Perhaps you just need to download the latest openkore svn at http://openkore.collectskin.com/.
What have you done so far?
User avatar
SkylorD
Moderators
Moderators
Posts: 1197
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil

Re: help for bot vend

#6 Post by SkylorD »

jayfongs wrote:Image

still same error and still not vending any items
Here :
automacro vend {
inventory White Herb
exclusive 1
run-once 1
call {
do cart add White Herb
release vend
}
}
Where are the quotes in destaqued highlighted line ?
Learn rules
Cozzie
Spam Generator
Spam Generator
Posts: 499
Joined: 04 Apr 2008, 09:30
Noob?: No
Location: Melbourne, City of beer and awful sushis

Re: help for bot vend

#7 Post by Cozzie »

openkore should be able to work without the use of macros in this case isnt it?
Make Openkore Awesome. Join the team.
chocobrowny
Noob
Noob
Posts: 19
Joined: 21 Jul 2011, 01:16
Noob?: No

Re: help for bot vend

#8 Post by chocobrowny »

Cozzie wrote:openkore should be able to work without the use of macros in this case isnt it?

I think jayfongs wanna loop
Vending > Get herb from storage > vending

but jayfongs don't understand basic of automacro condition

I suggest...

1. learn about using automacro condition aka inventory
2. set macro to get herb from storage
3. set macro to vending
4. set automacro for call them with your condition
"...Every coin have two sides, think more widely and Not everything is black and white, there are shades of grey..."
Image