I saw that, but some of the codes for pokemon are like 03xxxxxx, and adding that to 14000000 takes it to the 17000000 region, which is out of the memory region's area (unless the codes for Y are that drastically different, and it has a different region from X)C'mon, don't be so lazy. The formula for converting ARCodes to NTR is only two posts above yours.
Edit: also, when writing a value, can you do a single byte? I seem to get an error when trying that, and I have to write atleast 2 bytes