The 39-year-old pilot, identified only by his initials, MSO, was arrested Wednesday at Jakarta's Soekarno-Hatta International Airport shortly after arriving from Kuala Lumpur.

The airport customs office did not say which carrier the pilot worked for, but the flight number indicated it was a Malaysia Airlines plane.

"The results of his urine test came back positive for meth, MDMA and cocaine. So, at the time of the flight, he was under the influence," Hengky Tomuan Parlindungan Aritonang, an official at the airport customs office, told reporters in the Indonesian capital.

Customs officials found 14 bags of ecstasy -- more than 70,000 pills -- in the pilot's suitcase, and four grams of meth, thought to be for personal use, in his hand luggage.

Hengky said the pilot likely did not expect to be checked in the special customs lane for pilots and crew, "but the monitoring we carry out is the same" for everyone.