Pazleysox
Member
I don't see a whole lot in the forums about clan hopping. I did find the code below from MrEdge73's script from 2010, and Bale's BaFH script works great for that clan, and I can see how to jump back to my home clan.
I'm looking to be able to hop to a clan that I'm whitelisted to when requested via a PM. Kind of like how faxbot will drop a fax into your machine. I am NOT trying to write a faxbot script, or a faxing of anything type of script. I want my chatbot to be able to help other people with Dreadsylvania. It's already programed to help with banishes, I just want to broaden my horizons.
I'm looking to be able to hop to a clan that I'm whitelisted to when requested via a PM. Kind of like how faxbot will drop a fax into your machine. I am NOT trying to write a faxbot script, or a faxing of anything type of script. I want my chatbot to be able to help other people with Dreadsylvania. It's already programed to help with banishes, I just want to broaden my horizons.
Code:
{
int clan_start = index_of( message.to_lower_case() , "join" ) + 5;
string clan_name = substring( message , clan_start );
if( join_clan( clan_name ) )
{
//chat_reply( "Hooray! I've managed to join " + clan_name + "!" );
print("Hooray! I've managed to join " + clan_name + "!","blue");
}
else
{
//chat_reply( "I'm sorry, I was not able to join " + clan_name + ". Am I already in " + clan_name + "?" );
vprint("I'm sorry, I was not able to join " + clan_name + ". Am I already in " + clan_name + "?","red",-2);
}
}