Difference between revisions of "Get clan id"

From Kolmafia
Jump to navigation Jump to search
imported>Bale
(r11208)
 
imported>Bale
(fix return type)
 
Line 1: Line 1:
 
{{
 
{{
 
#vardefine:name|get_clan_id}}{{
 
#vardefine:name|get_clan_id}}{{
#vardefine:return_type|sintring}}{{
+
#vardefine:return_type|int}}{{
  
 
FunctionPage|
 
FunctionPage|

Latest revision as of 09:18, 7 November 2014

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()