Quote (coldguy @ Tue, Jun 2 2009, 02:36pm)
yea but it doesn't seem to work right... the lastplayed...
i just get some number and then 20 days ago :/
and i would love the % to MQ
Here should be the % to MQ code.
Code
$MQpercent = calcMqPercent($level);
$brpixelX = calcMqPixel($percent,$expbar_height);
function calcMqPercent($input)
{
$temp1 = fmod($input,70);
$temp1 = ($temp1/70);
$temp1 = $temp1 * 100;
return (int)$temp1;
}
function calcMqPixel($input,$xpbar_height)
{
$temp1 = fmod($input,1000000);
$temp1 = ($temp1 / 100);
$temp1 = $temp1 * $xpbar_height;
$temp1 = $temp1 + xxx;
return (int)$temp1;
}
Try that. Hopefully it works for you.