Commands for past IotMs

or cli_execute("/whitelist clanname");

For incorporation into other script actions, I have the following little function in my library:
Code:
boolean switchClan(int targetID) {
	if ( to_int(my_id()) > 30 && get_clan_id() != targetID ) {
		visit_url("showclan.php?recruiter=1&whichclan="+ targetID +"&pwd&whichclan=" + targetID + "&action=joinclan&apply=Apply+to+this+Clan&confirm=on");
	}
	return ( get_clan_id() == targetID );
}

this lets me easily do stuff like
Code:
if ( !has_effect($effect[Billiards Belligerence]) && get_property_int("_poolGames") < 3 && (get_clan_lounge() contains $item[Clan pool table] || switchClan(84165)) ) // AfHk
	cli_execute("pool 1");
 
Last edited:
How do I start a fight with a witchess monster?

I don't see a helper function I could call so I tried:
Code:
visit_url("campground.php?action=witchess");
visit_url("choice.php?whichchoice=1181&pwd=&option=1");
visit_url("choice.php?option=1&pwd=" + my_hash() + "&whichchoice=1182&piece=1942");
run_combat();

But that doesn't actually start the fight.
 
visit_url("campground.php?action=witchess");
run_choice( 1 );
visit_url("choice.php?whichchoice=1182&option=1&piece=1942&pwd=" + my_hash(), false);
run_combat();
 
Thanks, so it was just missing the 2nd argument.

Next question: same thing but a putty monster

I tried both
Code:
use($item[spooky putty monster]);
run_combat("macro");
and
Code:
if(!use($item[spooky putty monster]))
{
    run_combat("macro");
}
but both stop at the start of the fight before run_combat() is called.
 
Back
Top