do party request 0
pause 2
do party request 1
pause 2
do party request 2
But the number of players is changing and the macro does not work properly

The solution would be to add in an update in openkore commands to bear the name of the player that you are calling for party :
party request (<player #>|<player name>)
party kick (<party member #>|<party name>)
Sorry for my English ...