Well, first it checks if the player has gotten the second gym badge, if you have then it checks if the script has happened already XD
Ok, but for real, that happens, team magma appears, rival appears, tag battle happens, they lose and go away XD
I been inserting song from platinum using Ipatix DPP sound font and using another patch to insert bw/bw2 music. Though, it been hard for me to insert Virbank City, 50% normal, and 50% O_O.