The ID frame and the shiny PID frame are not the same thing. Right now you are aiming for the ID frame, which is on frame 43.
Once you have hit your ID, save in front of the gift box. Then you need to restart and hit your seed for the IV/shiny PID (the first seed that you found with flawless IVs). Take the Tepig from the gift box, do the battles, and see what nature you got. Try to find that nature in the PID frame list for that seed, or in the PID frame list from the Trainer ID Searcher. Then you will know how many times you need to advance your PID frame to get your shiny. After that, reset and hit that seed again, and save as many times as you need to advance the PID frame. If you did everything correctly and hit the right Timer0, you should have your shiny flawless Jolly Tepig.