I found some codes by using HasteDS, like these below:
maximum gold:02246930 05F5E0FF
maximum exp: 02246928 05F5E0FF
.
.
.
it works perfectly in the emulator, so my charactor's level jump to 100 normally. However when I use these codes in the NDSL, some codes do not work(like max exp), but some work fine~! what happened?