function av_fav1() {
AvatarGui::clickFav(AvatarGui, 1);
clientCmdUpdatePrefs();
}
if(!$avatarfavbinds) {
$remapDivision[$remapCount] = "Avatar Favorites";
$remapName[$remapCount] = "Favorite 1";
$remapCmd[$remapCount] = "av_fav1";
$remapCount++;
$avatarfavbinds = "1";
}
copy and paste the first part and the part with all the $remap__ things, replace 1 with 2, 3, 4, 5, 6, 7, 8, 9, 0
i know there's almost definitely a way to do this more efficiently but i don't know how, it's the first thing that came to mind.