Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Gani Construction (https://forums.graalonline.com/forums/forumdisplay.php?f=50)
-   -   Light effects (https://forums.graalonline.com/forums/showthread.php?t=65915)

xAndrewx 05-08-2006 01:44 PM

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 :)


All times are GMT +2. The time now is 07:40 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.