Thread: Light effects
View Single Post
  #1  
Old 05-08-2006, 01:44 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Light effects

I don't quite understand why gani's won't check for the light effects enabled featured
PHP Code:
SCRIPT
function onPlayerEnters()
{
  if (
lighteffectsenabled)
  {
    if (
client.options_disabledaynight == NULL)
    {
      if (
playerdir == 0this.lightx 5;
      if (
playerdir == 1this.lightx 6;
      if (
playerdir == 3this.lightx 4;
      if (
playerdir == 2this.lightx 5;
      
onTimeout();
    }
  }
    else  
//I added this just as a ''futher-more'' check
  
{
    
hideimgs(200202);
  }
}
function 
onTimeout()
{
  if (
hours in |07| || hours in |1824|) 
  {
    
showimg(200"era_lamplight_1.png"playerx this.lightxplayery 10);
    
changeimgcolors(2000.9760.9880.7050.25);
    
changeimgvis(2003);
    
changeimgzoom(2001);
    
showimg(201"light2.png"playerx this.lightx 2.5playery 3);
    
changeimgcolors(2010.9760.9880.7050.55);
    
changeimgvis(2013);
    
changeimgzoom(2014);
  } 
   else
  {
    
hideimgs(200202);
  }
  
setTimer(10);
}
SCRIPTEND 
If anyone knows please help, thanks.

Ahh, I found the problem, before I posted this it was in GS1, swapping it all over the GS2 managed to fix the problem. Thanks
Reply With Quote