Thread: Set Effect
View Single Post
  #22  
Old 12-08-2009, 09:04 PM
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
Finally got time to come back to this. All it says on player is "out", which its in the correct coordinates, so I dont know why its not saying "IN".

PHP Code:
//#CLIENTSIDE
function onPlayerEnters()
{
  
setColorEffect(1, 1, 1, 1);
  
this.mode = 1;
  
player.chat = "START";
}
function 
onPlayerTouchsMe()
{
  
dontblocklocal();
  
drawoverplayer();
  
setTimer(0.05);
}
function 
onTimeout()
{
  if (
player.x+1.5 in |17, 25| && player.y+2 in |13, 37|)
  {
    
setColorEffect(1, 1, 1, 0.7);
    
this.mode = 1;
    
player.chat = "IN";
  }else
  {
    
setColorEffect(1, 1, 1, 1);
    
this.mode = 1;
    
player.chat = "out";
  }
} 
__________________
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