Code: Select all
automacro vend {
delay 1
console /Other players are not allowed to view your Equipment./
cart "Blue Herb" => 1
call open_my_shop
timeout 10
}
macro open_my_shop {
do move prontera 142 100
pause 1
do openshop
stop
}
####################
##### GET Item ########
####################
#automacro check_deadbranch {
shop "Dead Branch" < 50
cart "Dead Branch" < 50
exclusive 1
call get_deadbranch
timeout 30
}
macro get_deadbranch {
do closeshop
do move prontera 142 100
do talk @npc (146 89)
pause 1
do talk resp 1
pause 1
do storage gettocart Dead Branch 100
pause 1
do move 142 100 prontera
}
automacro check_blueherb {
shop "Blue Herb" < 100
cart "Blue Herb" < 100
exclusive 1
call get_blueherb
timeout 30
}
macro get_blueherb {
do closeshop
do move prontera 142 100
do talk @npc (146 89)
pause 1
do talk resp 1
pause 1
do storage gettocart Blue Herb 100
pause 1
do move 142 100 prontera
}
automacro check_greenherb {
shop "Green Herb" < 100
cart "Green Herb" < 100
exclusive 1
call get_greenherb
timeout 30
}
macro get_greenherb {
do closeshop
do move prontera 142 100
do talk @npc (146 89)
pause 1
do talk resp 1
pause 1
do storage gettocart Green Herb 900
pause 1
do move 142 100 prontera
}
automacro check_pricklyfruit {
shop "Prickly Fruit" < 100
cart "Prickly Fruit" < 100
exclusive 1
call get_pricklyfruit
timeout 30
}
macro get_pricklyfruit {
do closeshop
do move prontera 142 100
do talk @npc (146 89)
pause 1
do talk resp 1
pause 1
do storage gettocart Prickly Fruit 100
pause 1
do move 142 100 prontera
}
automacro check_emptybottle {
shop "Empty Bottle" < 100
cart "Empty Bottle" < 100
exclusive 1
call get_emptybottle
timeout 30
}
macro get_emptybottle {
do closeshop
do move prontera 142 100
do talk @npc (146 89)
pause 1
do talk resp 1
pause 1
do storage gettocart Empty Bottle 400
pause 1
do move 142 100 prontera
}
automacro check_witchedstarsand {
shop "Witched Starsand" < 100
cart "Witched Starsand" < 100
exclusive 1
call get_witchedstarsand
timeout 30
}
macro get_witchedstarsand {
do closeshop
do move prontera 142 100
do talk @npc (146 89)
pause 1
do talk resp 1
pause 1
do storage gettocart Witched Starsand 400
pause 1
do move 142 100 prontera
}
##########VEND#############
automacro vend_again {
delay 1
run-once 1
location prontera 142 100
call open_my_shop_again
timeout 5
}
macro open_my_shop_again {
pause 1
do move prontera 142 100
do openshop
release vend_again
stop
}