Changing rank of whitelisted members

Alhifar

Member
I'm trying to figure out how to change the rank of members of a clan who are whitelisted, but not currently in the clan. So far I have the following:
Code:
else if( on_whitelist( name ) )
{
	string results = visit_url( "clan_whitelist.php?action=update&pwd&player"+pid+"="+pid+"&level"+pid+"="+ranks[rank]+"&title"+pid+"=" );
	if( results.contains_text( "Whitelist updated." ) ) print( "Successfully changed rank!" );
	else print( "Something went wrong!" );
}
where ranks[rank] specifies the correct id for the rank. However, KoL just returns that the whitelist was updated without changing anything. Anyone know what I am doing wrong?
 

lostcalpolydude

Developer
Staff member
I believe you need to include everyone currently on the whitelist in the URL, which makes it significantly more difficult than adding or removing a person from the whitelist.
 
Top