Code: Select all
automacro openshop {
       delay 1
            console /Not allowed other player view Equipment/
            console /All Players ignored/
            call {
                    
                    if (@cartamount (Yellow Potion) == 0) goto get
                    if (@cartamount (Orange Potion) == 0) goto get
                    pause 3
                    do openshop
                    pause 10
                    do sit
                    stop
            :get
                    $location = $.pos
                    do talk @npc (146 89)
		    pause 3
		    do talk cont
		    pause 3
		    do talk resp 1
		    pause 3
		    do storage get @storage (Yellow Potion) @eval (50 - @cartamount (Yellow Potion))
		    do storage get @storage (Orange Potion) @eval (50 - @cartamount (Orange Potion))
		    pause 3
		    do cart add @inventory (Yellow Potion) @invamount (Yellow Potion)
		    do cart add @inventory (Orange Potion) @invamount (Orange Potion)
                    pause 10
                    do cart add Orange potion                    
                    do cart add Yellow potion
                    pause 1
                    do move $location
                    pause 3
                    do openshop
                    pause 10
                    do sit
                    stop
            }
    }
automacro soldout {
soldout >= 2
cart "Yellow Potion" <= 1, "Orange Potion" <= 1,
 run-once 1
call {
                    $location = $.pos
                    do talk @npc (146 89)
		    pause 3
		    do talk cont
		    pause 3
		    do talk resp 1
		    pause 3
		    do storage get @storage (Yellow Potion) @eval (50 - @cartamount (Yellow Potion))
		    do storage get @storage (Orange Potion) @eval (50 - @cartamount (Orange Potion))
		    pause 3
		    do cart add @inventory (Yellow Potion) @invamount (Yellow Potion)
		    do cart add @inventory (Orange Potion) @invamount (Orange Potion)
                    pause 10
                    do cart add Orange potion                    
                    do cart add Yellow potion
                    pause 1
                    do move $location
                    pause 3
                    do openshop
                    pause 10
                    do sit
                    stop
		}
	}is my macro ok?
i already put the password of the storage to the config
and some codes there are copy paste but itry it and it run properly
correct me if some of the macros or code are wrong

