HTML Code:
function onCreated()
{
this.showCharacter();
this.updategani();
}
function updategani()
{
temp.gType = 1;
temp.rupeeAmounts = {{5, 2}, {30, 3}, {100, 4}};
for (temp.curAmount: temp.rupeeAmounts)
if (rupees >= temp.curAmount[0])
temp.gType = temp.curAmount[1];
this.setCharani("gralats", temp.gType);
}
function onPlayerTouchsMe()
{
player.rupees += rupees;
this.destroy();
}
//#CLIENTSIDE
function onCreated()
this.blockAgain();
Just a re-script, hehe