How do you get magmar in Pokemon diamond?

well first to get one get the action replay and go to the fugeo ironworks there rate is 5 so look carefully