My id

From Kolmafia
Revision as of 12:39, 25 February 2010 by imported>StDoodle
Jump to navigation Jump to search

Function Syntax

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

Special

When no character is logged in, this function returns "0".