Hmm, if you got the script for account id's, you may just have to change the mysql query where account.account to player.player
I don't exactly know if this won't cause a error because of the other script but that would be the easiest way to explain.