You are not logged in.
xFCB9C-Offset of Trade Table Pointer (2 Byte)
Want to add in some new in-game trades instead of just replacing old ones? Simply repoint the table, copy the old one, and start adding your new entries to the list.
From the Useful Offsets thread.
The data for the trade Pokémon start at 3F:4C24. Every data structure looks like this:
[Dialog no.][Give Pokémon][Trade Pokémon][0x0A for PKMNNAME][2xDV][Item][2xID][0x0A for TRAINERNAME][Sex]
It also goes on elaborate on each of thsoe bytes and what they do exactly. But yeah, you could just go to the old trade table, copy it, paste it into some free space in the same bank, then change the pointer I mentioned so that it points to this new table you inserted. Then you can just start adding new entries to the end of the trade table. You would call them from a script by giving the person a script of
6A 47 95 XX 53 49 90
That would be the script in straight Hex codes, where XX is the number of your new trade. That makes the person turn to face you, load the font, call the trade menu, close the text, unload the font, and end the script. In PKSV format, the code would look like this:
faceplayer loadfont trade 0x?? closetext loadmovesprites end
And the ?? would be the number of the new trade you added to the list.
I hope this helped you out, and I hope it made sense enough.
I am no longer active on this forum. I only pop in from time to time.