Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
this question is for both pokemon gold/silver and emerald. i want to make it so they give you 20 pokeballs instead of 5, so does anyone know where the offset of this script is in an hex editor in either game?
You should use a map editor like Advance Map for Emerald (I don't know gen II ROM hacking but should work the same way), go to the event tab, select the person event (Professor Birch in his lab in Emerald) and edit the script directly.
It should be a "giveitem" command followed by the PokéBall index number in hex then the number of PokéBalls given in hex (5 balls so 0x5 in hex), just change it to 20 in hex so 0x15.
You should repoint your script with dynamic offsets and ensure you use FF as free space for Emerald but I am in bed on my phone righ now so I can explain it tomorrow.