I modified your macro to do exactly what you described: run around and buy items that qualify and continue with the search (except it won't keep searching while running.) Unfortunately, I called buy.inc from the VIP tradeskill macros, and so can't put the modifications I made here in the regular for...