Well you use coding programs like pokesav if you're a coding noob. What I do to make these codes is open the rom with Nitro Explorer and find the master ball data. Take the offset and run it through Cheat Engine. Now you have an address to run with other programs. If you want it to get done quickly just use NDSdis and the rom.