Quote:
Originally Posted by xAndrewx
haha you used my old script, thanks.
Inside the gani use
HTML Code:
COLOREFFECT SPRITEINDEX 1 1 1 0.5
|
Thanks xD. I love the shovel script but for somereason it was'nt working properly so i had to script it again. xD mynes sucks but its "ok".
PHP Code:
function onActionServerSide(trigger)
{
if(trigger == "randomize")
{
temp.random=int(random(0,10));
if(temp.random==0)
{
setani("ge_chestfound",NULL);
//adding diff amounts of gralats
}
}
if(trigger == "dig")
{
temp.sandtiles = {170,15,8,301,358,391};
if(tiles[player.x,player.y] in temp.sandtiles)
{
setani("ge_shovel",NULL);
}else
setani("shovel2",NULL);
}
}
//#CLIENTSIDE
function onWeaponFired()
{
triggerserver("gui", name, "dig");
triggerserver("gui", name, "randomize");
}