He probably used a private script. I know someone who botted his whole account, not even a single level is legit. He used private scripts and didn't get banned.
Don't goldfarm. Bots are nerfed - you'll be banned in a day or something like that. If you are going to bot, do something like swamp tar. I recommend this method since I never got banned for it.