There are two kinds of external power pack: high voltage (330V) and low voltage (6V). The main purpose of high voltage pack is to shorten the recycle time. It also lengthens the time between battery charge or battery replacement. The main purpose of low voltage pack is to lengthen the time between battery charge or battery replacement.
The current version of Pentax 540 does NOT accept external high voltage. The original 540 version and the 500 do.
A 330V shock from a high voltage pack can be nasty, but it should not happen if you know what you're doing.
Please tell me what you'd like to do. I used to mess around with high voltage packs a bit. I may be able to help.
This was one of my threads about the Pentax TR.