Thread: Money for all!
View Single Post
  #1  
Old 07-28-2007, 12:41 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Money for all!

I am trying to make a target system where you have to shoot the targets...

BUT when ever i lose or gain money it dose the same for all the other players in the room...

so this is my script:
PHP Code:
//NPC Made By *theHAWKER
function onCreated(){
  
this.chat "Shoot Me!";
  
setTimer(.1);
}
function 
onActionAdd(){
  
with(findplayer(params[0])){
    
player.rupees += int(random(0,20));
  }
}
function 
onTimeout(){
  
this.+= random(0,1);
  
this.-= random(0,1);
  
setTimer(.3);
}
//#CLIENTSIDE
function onWasShot(){
  
this.chat "Hit!";
  
triggeraction(x,y,"add",player.account);
  
sleep(.5);
  
this.chat "Shoot Me!";

can someone tell me whats wrong, i think its the player.account part in the triggeraction...
__________________
**FLIP OUT**
Reply With Quote