Dont you just Save infrount of da pc, deposit the pokemon you want to duplicate, then press b and click change da box.
While it says saving dont turn off the power, TURN OFF THE POWER
then when your game continues, you will have a pokemon in your party AND in the PC (you just have to click withdraw)