i just finished making this and tested. it does work careful you cant actually trash items in this game anymore and you cannot sell masterballs.
Code:
[999x Masterballs]
580A0000 04502A80
580A1000 000000B8
580A1000 00000000
580A1000 00000048
780A0000 0000002C
680A0000 00000001 000003E7
780A0000 00000008
640A0000 00000000 00010000
[Credit SkyQueen]