It's very simple to fix..
use:
player.attr[20] = { "ml_hud.gani", param1, param2, etc..};
And do this:
PHP Code:
SCRIPT
function onCreated()
{
sleep( 0.05); // Dunno why, but it doesn't load params in the first 0.05 seconds, it's a bug.
this.health = { params[ 0][ 0], params[ 0][ 1]};
this.mana = { params[ 1][ 0], params[ 1][ 1]};
setTimer( .05);
}
function onTimeOut()
{
showimg(1, "@verdana@b@" @ this.account SPC "HP:" SPC this.health[0] @ "/" @ this.health[1] SPC "MP:" SPC this.mana[0] @ "/" @ this.mana[1], x + 3, y);
changeimgzoom(1, .5);
}
SCRIPTEND