Pls help me with these codes.

02/01/2011 09:32 Miukx#1
Code:
automacro awakes {
	run-once 1
	shop "Awakening Potion" < 5
	call awakess
}

automacro whites {
	run-once 1
	shop "White Potion" < 50 
	call whitess
}


macro awakess {
		do closeshop
		do move 140 85 payon
		pause 1
		do talk @npc (5 49)
		pause 1
		do store
		do store
		do buy 8 10
		pause 1
		do cart add @inventory (awakening potion)
		pause 1
		do respawn
	}

macro whitess {
		do closeshop
		do move 140 85 payon
		pause 1
		do talk @npc (5 49)
		pause 1
		do store
		do store
		do buy 5 300
		pause 1
		do cart add @inventory (white potion)
		pause 1
		do respawn
	}
I'm working on my macro that my bot will buy itself whenever the pots in that shop are lower than that 50 (whites) and 5 (awakes).

the problem is, my bot is always doing this. even though it already have a enough pots. pls help. T.T