My id

From Kolmafia
Revision as of 21:31, 21 May 2010 by imported>Bale
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

string my_id()

Returns the Character ID of the logged-in character.

Code Sample

This example allows you to visit your own charsheet.

visit_url("showplayer.php?who=" + my_id());

See Also



When no character is logged in, this function returns the Character ID of the last logged-in character or 0 if no character has logged in yet.