Pot Vending Bot

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

vendetta
Noob
Noob
Posts: 4
Joined: 05 Jun 2013, 21:18
Noob?: No

Pot Vending Bot

#1 Post by vendetta »

I need help for a pot vendor config. I know how to AutoBuy from NPC and I know how to autovend; however, I want to integrate the two and I haven't seen any config that would address what I'm looking for.

What I want to do is for the bot to check item total in the cart/vend and when it reaches a certain number it will AutoBuy then put items in the cart then AutoVend again.

example: Sell pots(auto vend),when pots in vend reaches 0, close vend, AutoBuy pots at npc, go back to vend spot then AutoVend again


Is this doable in just adjusting the config/item/shop txts or do I have to make a macro for it?
If so, what would be the code to check for items in cart/vend?


Thanks in advance!
vendetta
Noob
Noob
Posts: 4
Joined: 05 Jun 2013, 21:18
Noob?: No

Re: Pot Vending Bot

#2 Post by vendetta »

Yep it's a macro. Funny enough, found this while trying to make my own.
#######################################
##### Vending in Payon #####
#######################################


#################################
##### Open Shop at location #####
#################################

automacro vend {
location payon
cart "White Potion" > 0
call open_shop
timeout 10
}

macro open_shop {
do move 167 65
}

automacro open_shop_now {
run-once 1
location payon 167 65
call open_my_shop
}

macro open_my_shop {
do move 167 64
pause 1
do openshop
release open_shop_now
}

##########################################################################

####################
##### Buy Item #####
####################


automacro get_whites {
location payon 167 64
console /Shop closed./
cart "White Potion" < 1
exclusive 1
call go_buy
}

macro go_buy {
do move payon 141 85
do move payon_in01 11 49
do talk @npc (5 49)
do store
pause 3
do buy 5 265
pause 3
do cart add White Potion
pause 3
do talk @npc (5 49)
do store
pause 3
do buy 5 265
pause 3
do cart add White Potion
pause 3
do move payon_in01 16 51
do move payon 167 64
}
credit: http://ragnarokbotter.webs.com/apps/for ... n-auto-buy

Will try to test it out