Get clan id

From Kolmafia
Revision as of 09:18, 7 November 2014 by imported>Bale (fix return type)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

int get_clan_id()

Returns the Clan ID number of the logged-in character.

Code Sample

This example allows you to visit the clan recruiter page for your own clan. With a little ingenuity your clan leader's name can be parsed from there.

visit_url("showclan.php?recruiter=1&whichclan=" + my_id());

See Also

my_id() | get_clan_name()