Auto refill vend macro? Whats wrong?

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

jrelcess26
Noob
Noob
Posts: 1
Joined: 11 Apr 2011, 21:19
Noob?: Yes

Auto refill vend macro? Whats wrong?

#1 Post by jrelcess26 »

Always getting items in the storage even if the items in the cart are not sold or still there. Anyone can help? I will appreciate it most.

Code: Select all

automacro vend {
delay 1
console /Other players are not allowed to view your Equipment./
cart "Blue Potion" => 1
call open_my_shop
timeout 10
}

macro open_my_shop {
do move prontera 155 55
pause 1
do openshop
stop
}

####################
##### GET Item ######## 
####################

#automacro check_blues {
shop "Blue Potion" < 20
cart "Blue Potion" < 20
exclusive 1
call get_blues
timeout 30
}

macro get_blues {
do closeshop
do move prontera 155 35
do talk @npc (151 29)
pause 1
do talk resp 1
pause 1
do storage gettocart Blue Potion 200
pause 1
do move 155 55 prontera
}

automacro check_cobweb {
shop "Cobweb" < 100
cart "Cobweb" < 100
exclusive 1
call get_cobweb
timeout 30
}

macro get_cobweb {
do closeshop
do move prontera 155 35
do talk @npc (151 29)
pause 1
do talk resp 1
pause 1
do storage gettocart Cobweb 1200
pause 1
do move 155 55 prontera
}

automacro check_bhair {
shop "Blue Hair" < 100
cart "Blue Hair" < 100
exclusive 1
call get_bhair
timeout 30
}

macro get_bhair {
do closeshop
do move prontera 155 35
do talk @npc (151 29)
pause 1
do talk resp 1
pause 1
do storage gettocart Blue Hair 1200
pause 1
do move 155 55 prontera
}

automacro check_iron {
shop "Iron" < 10
cart "Iron" < 10
exclusive 1
call get_iron
timeout 30
}

macro get_iron {
do closeshop
do move prontera 155 35
do talk @npc (151 29)
pause 1
do talk resp 1
pause 1
do storage gettocart Iron 230
pause 1
do move 155 55 prontera
}



##########VEND#############

automacro vend_again {
delay 1
run-once 1
location prontera 155 55
call open_my_shop_again
timeout 5
}

macro open_my_shop_again {
pause 1
do move prontera 155 55
do openshop
release vend_again
stop
}
jbj000
Noob
Noob
Posts: 4
Joined: 14 Feb 2012, 16:17
Noob?: Yes

Re: Auto refill vend macro? Whats wrong?

#2 Post by jbj000 »

I think its because of cart "<name of item>" < 100,, coz if you vend your item that item will no longer be on your cart..