pbTrainerBattle(PBTrainers:kMnTrainer,"Ash",_I("That was fun!"),false,4,true) would start a battle against Ash where it's not a double battle(because it's false), he uses version 4 of his team and you are allowed to lose(true).
For fly, open the editor, go to "Set Metadata" and select the outdoor map. Set "Outdoor" to true.
And Herpahermaderp, this isn't the rom-hacking section.