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:
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?
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!" );
}