Thread: Shovel
View Single Post
  #13  
Old 07-23-2010, 04:50 PM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
Quote:
Originally Posted by xAndrewx View Post
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.yin temp.sandtiles)
 {
  
setani("ge_shovel",NULL);
  }else
   
setani("shovel2",NULL);
 }
}
//#CLIENTSIDE
function onWeaponFired()
{

 
triggerserver("gui"name"dig");
 
triggerserver("gui"name"randomize");

Reply With Quote