Thread: Set Effect
View Single Post
  #20  
Old 12-02-2009, 07:22 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Actually decided to take it off a timer, and put it in x, y coordinates, to eliminate the use of timers. I have this, but now its not setting, any obvious reason why?

PHP Code:
//#CLIENTSIDE
function onPlayerEnters(){
  
setColorEffect(1111);
  
this.mode 1;
}
function 
onPlayerTouchsMe(){
  
dontblocklocal();
  
drawoverplayer();
  
setTimer(.05);
}

function 
onTimeout(){
  if (
player.x+1.5 in |1725| && player.y+2 in |1337|){
    
setColorEffect(1110.7);
    
this.mode 1;
  }else{
    
setColorEffect(1111);
    
this.mode 1;
  }
  
setTimer(.05);

__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote