PHP Code:
function onActionGrabbed()
{
if (this.give == 0)
{
this.give = 1;
player.rupees += 5;
sleep( 3.6);
this.give = 0;
}
}
Just set up a test variable. =]
oh and for the function just put this in a weapon and add it to the player
What you could do so you keep pressing "A" is instead of onKeyPressed, you could use a timeout with keydown().
http://forums.graalonline.com/forums...ad.php?t=78114
http://forums.graalonline.com/forums...ad.php?t=76516