I haven't been doing anything with ROMs in a very long time, actually. But based on your name, the description I noted for the offset in my list, and the information about type-9 trainer battles, I suspect it may be related to Oak's tutorial narration somehow. Perhaps it's the number of Pokemon you must defeat, or the number of foes the tutorial system expects you to face?
I'm adding the offsets from http://www.pokecommunity.com/showpos...&postcount=197 to my DB that I don't have yet. You marked 02024029 as unknown. I have it listed as 'poke_quantity'. (Don't know what that means though.) Maybe that helps you.