I personally find practical jokes to be generally in violation of the 5 precepts of right conduct (which include not lying and upholding the highest level of truthfulness). However, I am wondering if maybe practical jokes do not count as "lies", due to the spirit of the joke. But if it means you will lose someone's trust, then it seems to have some of the same consequences as lying.