Page 3 of 3 FirstFirst 1 2 3
Results 21 to 23 of 23

Thread: Commands for past IotMs

  1. #21

    Default

    thanks

  2. #22
    Senior Member
    Join Date
    Jun 2016
    Posts
    414

    Default

    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 by the dictator; 09-17-2020 at 03:15 PM.

  3. #23

    Default

    Nice, this helps a lot!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •