If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:
Hii there,
From some reason my site castle status script and 7s script shows the date is 1970 & 1987.
any clue on where i can change that ?
and another thing, i was looking through npc's and was looking for the right npc to spawn as the glittering meda trader. which one is it ?
Thanks in advance,
Change server time ?
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Change server time ?
must have been included in the script where you downloaded it.Menuval wrote:and another thing, i was looking through npc's and was looking for the right npc to spawn as the glittering meda trader. which one is it ?
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 42
- Joined: Sat Feb 02, 2008 11:44 pm
Re: Change server time ?
can't find it anywhere. /= any idea where is the main server time settings ?
-
- Posts: 42
- Joined: Sat Feb 02, 2008 11:44 pm
Re: Change server time ?
bump.
I know my linux server time is right.
how can I know what's my gameserver time ?
I know my linux server time is right.
how can I know what's my gameserver time ?
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Change server time ?
what you mean by gameserver time? the time in game? /time ? time on the map? but the time, the real time is taken from jvm and that takes the time from OS region settings.Menuval wrote:bump.
I know my linux server time is right.
how can I know what's my gameserver time ?
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 42
- Joined: Sat Feb 02, 2008 11:44 pm
Re: Change server time ?
@mysql_connect ( $db_serv, $db_user, $db_pass ) or die ('Coudn\'t connect to host');
@mysql_select_db( $db_name ) or die ('Couldn\'t select database');
$sql = @mysql_query('SELECT id,name,taxPercent,siegeDate FROM `castle`') or die('Query failed!');
$gen = "\n";
while ($castle = @mysql_fetch_array($sql))
{
$gen .= "\n".strtolower($castle['name']) . 'info = \'<div class="castleWrapper">';
$gen .= '<div class="castlePic" id="' . ucfirst(strtolower($castle['name'])) . 'Pic"></div>';
$gen .= '<div class="castleInfo">';
$gen .= '<div class="castleName"><strong>' . ucfirst(strtolower($castle['name'])) . ' Castle</strong></div>';
$clan = @mysql_fetch_array(mysql_query('SELECT clan_name,hasCastle FROM `clan_data` WHERE hasCastle = ' . $castle['id']));
$clan_name = (isset($clan['clan_name'])) ? htmlspecialchars($clan['clan_name'], ENT_QUOTES) : 'UNCLAIMED';
$gen .= '<div><strong>Controlled by:</strong> ' . $clan_name . '</div>';
if (isset($clan['clan_name'])) $gen .= '<div><strong>Tax Rate:</strong> ' . $castle['taxPercent'] . '%</div>';
$gen .= '<div><strong>Next Siege:</strong> ' . date('M d Y ',$castle['siegeDate']/1000) . $castle['siegeHourOfDay'] . date(':00 T') . '</div>';
$gen .= '</div></div>\';'."\n\n";
}
$handle = @fopen($filename, 'w+');
@fwrite($handle, $gen);
@fclose($handle);
?>
this is my scrupt btw,
anyone have a link to the newer script with the castle map maybe ?
@mysql_select_db( $db_name ) or die ('Couldn\'t select database');
$sql = @mysql_query('SELECT id,name,taxPercent,siegeDate FROM `castle`') or die('Query failed!');
$gen = "\n";
while ($castle = @mysql_fetch_array($sql))
{
$gen .= "\n".strtolower($castle['name']) . 'info = \'<div class="castleWrapper">';
$gen .= '<div class="castlePic" id="' . ucfirst(strtolower($castle['name'])) . 'Pic"></div>';
$gen .= '<div class="castleInfo">';
$gen .= '<div class="castleName"><strong>' . ucfirst(strtolower($castle['name'])) . ' Castle</strong></div>';
$clan = @mysql_fetch_array(mysql_query('SELECT clan_name,hasCastle FROM `clan_data` WHERE hasCastle = ' . $castle['id']));
$clan_name = (isset($clan['clan_name'])) ? htmlspecialchars($clan['clan_name'], ENT_QUOTES) : 'UNCLAIMED';
$gen .= '<div><strong>Controlled by:</strong> ' . $clan_name . '</div>';
if (isset($clan['clan_name'])) $gen .= '<div><strong>Tax Rate:</strong> ' . $castle['taxPercent'] . '%</div>';
$gen .= '<div><strong>Next Siege:</strong> ' . date('M d Y ',$castle['siegeDate']/1000) . $castle['siegeHourOfDay'] . date(':00 T') . '</div>';
$gen .= '</div></div>\';'."\n\n";
}
$handle = @fopen($filename, 'w+');
@fwrite($handle, $gen);
@fclose($handle);
?>
this is my scrupt btw,
anyone have a link to the newer script with the castle map maybe ?
-
- Posts: 42
- Joined: Sat Feb 02, 2008 11:44 pm
Re: Change server time ?
I just noticed i don't even have the siegehour in my tables.
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Change server time ?
http://l2jserver.com/forum/viewtopic.php?f=94&t=10730Menuval wrote:this is my scrupt btw,
anyone have a link to the newer script with the castle map maybe ?
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 42
- Joined: Sat Feb 02, 2008 11:44 pm
Re: Change server time ?
btw, i've seen a share (not the one you post) that shows the castle status on a map , can't find anymore,
any clue ?
any clue ?