How do you get a Pokemon with the ability trick?
well.. you search around and if i remember right kadabra have the ability trick
Trick can only be learned by level up in diamond and pearl. However, in Platinum there is a move tutor on Route 212 who will teach a Pokemon trick in return for colored shards. More information about what Pokemon learn the moves when check here http://bulbapedia.bulbagarden.net/wiki/Trick_(move) KADABRA AND ALAKAZAM CAN LEARN TRICK AT LV 46
Unfortunately, the TM Trick does not exist. It is a move known by particular Pokemon, but is not available to teach Pokemon via a Technical Machine. There is a similarly named TM, though, named TM92 - Trick Room. This can be found on Route 213, inside a house. A clown will give it to you if you talk to him.