I guess the cool way to do it would be to get the level of the person requesting the info and refine the values returned to either xp or sk Might actually do that....
in my tokens.php I have done just this and also ported it over to !level !lvl and a made a new one called !me that has basically the same thing as !lvl but displays in a blob instead of spamming chat.
Anyways, here is the code from !tokens I used to get the persons level.
//Find player lvl
$result = $this -> bot -> db -> select("SELECT level FROM members WHERE id = " . $this -> bot -> aoc -> get_uid($name));
if (empty($result))
{
$result = $this -> bot -> db -> select("SELECT level FROM whois WHERE id = " . $this -> bot -> aoc -> get_uid($name));
$lvl = $result[0][0];
}
else
{
$lvl = $result[0][0];
}
if (empty($lvl))
{
return "Unable to find your level. Please manually enter it. <pre>help tokens";
}
else
{
return $this -> ShowTokens($lvl, $info[1], $info[2]);
}