Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 00:21

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help]dead front timer

Discussion on [Help]dead front timer within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2008
Posts: 122
Received Thanks: 26
[Help]dead front timer

any one know how to set the df timer script O.o
this one

PHP Code:
<?php
//
// War Script by mta'chrono
//
$hour_wars = array(14022008);
sort($hour_wars);
$hour_now date('14:00');
$hour_next 04;

foreach(
$hour_wars as $hour_war) {
  if(
$hour_war $hour_now) {
    
$hour_next $hour_war;
    break;
  }
}

$wartime = (mktime($hour_next44) - time(15:00));
?>

countdown_x1500 = <?=$wartime;?>;
function convert_to_time_x1500(secs_x1500)
{
  secs_x1500 = parseInt(secs_x1500);
  hh_x1500 = secs_x1500 / 3600;
  hh_x1500 = parseInt(hh_x1500);
  mmt_x1500 = secs_x1500 - (hh_x1500 * 3600);
  mm_x1500 = mmt_x1500 / 60;
  mm_x1500 = parseInt(mm_x1500);
  ss_x1500 = mmt_x1500 - (mm_x1500 * 60);

  if (hh_x1500 > 23)
  {
     dd_x1500 = hh_x1500 / 24;
     dd_x1500 = parseInt(dd_x1500);
     hh_x1500 = hh_x1500 - (dd_x1500 * 24);
  } else { dd_x1500 = 0; }

  if (ss_x1500 < 10) { ss_x1500 = "0"+ss_x1500; }
  if (mm_x1500 < 10) { mm_x1500 = "0"+mm_x1500; }
  if (hh_x1500 < 10) { hh_x1500 = "0"+hh_x1500; }
  if (dd_x1500 == 0) { return (hh_x1500+":"+mm_x1500+":"+ss_x1500); }
  else {
    if (dd_x1500 > 1) { return (dd_x1500+" days "+hh_x1500+":"+mm_x1500+":"+ss_x1500); }
    else { return (dd_x1500+" day "+hh_x1500+":"+mm_x1500+":"+ss_x1500); }
  }
}
function do_cd_x1500()
{
  if (countdown_x1500 < 0)
  {
    document.getElementById('nationwarx1500').innerHTML = "<b><span style='color: red;'>Deadfront is NOW!!</span></b>";
  }
  else
  {
    document.getElementById('nationwarx1500').innerHTML = convert_to_time_x1500(countdown_x1500) + " hours";
    setTimeout('do_cd_x1500()', 1000);
  }
  countdown_x1500 = countdown_x1500 - 1;
}
document.write("<span id='nationwarx1500'></span>\n");
do_cd_x1500();
im not that good with php
chrisg2010 is offline  
Old 04/26/2010, 06:15   #2
 
antondude's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 690
Received Thanks: 66
$hour_wars = array(14, 02, 20, 08);

There is your times
antondude is offline  
Old 04/26/2010, 10:24   #3
 
elite*gold: 0
Join Date: Sep 2007
Posts: 1,512
Received Thanks: 983
But last DF time must be "00" if you don't set 00, counter will be stop on last time and you must wait 24/h to work again
eLO21 is offline  
Old 04/27/2010, 18:43   #4
 
elite*gold: 0
Join Date: Nov 2008
Posts: 97
Received Thanks: 5
do you have to set the last df time to 00 in DB also???? for it to work correctly? or just in the script?
dannyx12345 is offline  
Old 04/27/2010, 23:07   #5
 
naruto820's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 964
Received Thanks: 233
it does not have any connection to your database
this script just checks the time on the top of the script
Code:
$hour_wars = array(14, 02, 20, 08);
so if you have more dfs like 6 for example u just add 2 more times.
naruto820 is offline  
Old 04/27/2010, 23:29   #6
 
[DEV]AlphaOMEGA's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 142
Received Thanks: 78
Quote:
Parse error: syntax error, unexpected ':' in C:\xampp\htdocs\dfcounter.php on line 17
we did that doesnt work
[DEV]AlphaOMEGA is offline  
Old 04/28/2010, 06:05   #7
 
gedimazs's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 863
Received Thanks: 197
Quote:
Originally Posted by [DEV]AlphaOMEGA View Post
we did that doesnt work
That script is a ****, go to dkundeground and look for DF time script there, you will find fixed one.
gedimazs is offline  
Old 04/28/2010, 07:37   #8
 
elite*gold: 0
Join Date: Apr 2010
Posts: 11
Received Thanks: 2
Quote:
Originally Posted by gedimazs View Post
That script is a ****, go to dkundeground and look for DF time script there, you will find fixed one.
that is the same script from dk underground, dfcounter.
N0bleman80 is offline  
Old 04/28/2010, 13:22   #9
 
daddycool.'s Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 296
Received Thanks: 166
Try this script,

PHP Code:
<?php
//
// War Script by mta'chrono
//
$hour_wars = array(03061215182100);
sort($hour_wars);
$hour_now date('H');
$hour_next 03;


foreach(
$hour_wars as $hour_war)
{
if(
$hour_war $hour_now)
{
$hour_next $hour_war;
break;
}
}

$wartime = (mktime($hour_next00) - time());
?>

<script type="text/javascript">

countdown_x1500 = <?php print $wartime?>; //**********
function convert_to_time_x1500(secs_x1500)
{
secs_x1500 = parseInt(secs_x1500);
hh_x1500 = secs_x1500 / 3600;
hh_x1500 = parseInt(hh_x1500);
mmt_x1500 = secs_x1500 - (hh_x1500 * 3600);
mm_x1500 = mmt_x1500 / 60;
mm_x1500 = parseInt(mm_x1500);
ss_x1500 = mmt_x1500 - (mm_x1500 * 60);

if (hh_x1500 > 23)
{
dd_x1500 = hh_x1500 / 24;
dd_x1500 = parseInt(dd_x1500);
hh_x1500 = hh_x1500 - (dd_x1500 * 24);
}
else
{ dd_x1500 = 0; }

if (ss_x1500 < 10) { ss_x1500 = "0"+ss_x1500; }
if (mm_x1500 < 10) { mm_x1500 = "0"+mm_x1500; }
if (hh_x1500 < 10) { hh_x1500 = "0"+hh_x1500; }
if (dd_x1500 == 0)
{ return (hh_x1500+":"+mm_x1500+":"+ss_x1500); }
else
{
if (dd_x1500 > 1)
{ return (dd_x1500+" days "+hh_x1500+":"+mm_x1500+":"+ss_x1500); }
else
{ return (dd_x1500+" day "+hh_x1500+":"+mm_x1500+":"+ss_x1500); }
}
}

function do_cd_x1500()
{
if (countdown_x1500 < 0)
{
document.getElementById('nationwarx1500').innerHTM L = "<b><span style='color: red;'>Deadfront is NOW!!</span></b>";
}
else
{
document.getElementById('nationwarx1500').innerHTM L = convert_to_time_x1500(countdown_x1500) + " hours Next DeathFront CountDown";
setTimeout('do_cd_x1500()', 1000);
}
countdown_x1500 = countdown_x1500 - 1;
}

document.write("<span id='nationwarx1500'>valami</span>\n"); //**********
do_cd_x1500();

</script>
credits to

Original post:
daddycool. is offline  
Old 04/28/2010, 13:47   #10
 
naruto820's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 964
Received Thanks: 233
for me none of the dead front scripts worked on my xampp for windows. But when I used them in my actual linux webhost most worked fine.
naruto820 is offline  
Old 04/28/2010, 13:49   #11
 
daddycool.'s Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 296
Received Thanks: 166
Works fine with AppServ v2.5.9
daddycool. is offline  
Old 04/29/2010, 07:30   #12
 
Decima's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,297
Received Thanks: 928
the original script works fine as long as u edit 90% of it . . . . .

alternatively u could just learn php and re-write the whole damned thing is a matter of about 10 minutes . . .
Decima is offline  
Old 04/29/2010, 07:56   #13
 
elite*gold: 0
Join Date: Apr 2010
Posts: 11
Received Thanks: 2
Quote:
Originally Posted by Decima View Post
the original script works fine as long as u edit 90% of it . . . . .

alternatively u could just learn php and re-write the whole damned thing is a matter of about 10 minutes . . .
why so angry.. lol yes the 2nd 1 work fine post by darth nerd work fine.. and naruto820 learn some php scripting.. ^^
N0bleman80 is offline  
Old 04/29/2010, 13:49   #14
 
*JayKay*'s Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 472
Received Thanks: 276
Thumbs up Here Script Dead Front Working^^

Here is the script's DF Running counter perfectly you just change the schedules within the php and everything works the download link below to download this file contains a php file and an ajax there who want this:

Download:


Scan:
PHP Code:
Arquivo DF.rar recebido em 2010.04.29 11:45:29 (UTC)
AndamentoCarregando ... na fila aguardando analisando terminado NÃO ENCONTRADO PARADO 


Resultado
0/41 (0%)
Carregando informação do servidor... 
O seu arquivo está na posição1.
Tempo estimado de início é entre 38 e 55 segundos
.
Não feche a janela até que a análise esteja completa
O mecanismo que estava processando o arquivo parounós esperaremos alguns segundos para tentar recuperar o resultado.
Se estiver esperando por mais de cinco minutosvocê terá que reenviar o arquivo
O seu arquivo está sendo analisado por VirusTotal no momento,
os resultados serão exibidos assim que forem gerados
 
Modo compacto Imprimir resultados  O seu arquivo expirou ou não existe
O serviço está parado no momentoo seu arquivo está esperando para ser analisado (posição: ) por tempo indeterminado.
Você pode aguardar por resposta na página (atualização automáticaou digite o seu email no campo abaixo e clique em "enviar" para que o sistema envie uma notificação quando a análise terminar.  Email:  
  

Antivírus Versão Última Atualização Resultado 
a
-squared 4.5.0.50 2010.04.29 
AhnLab-V3 2010.04.29.05 2010.04.29 
AntiVir 8.2.1.224 2010.04.29 
Antiy-AVL 2.0.3.7 2010.04.29 
Authentium 5.2.0.5 2010.04.29 
Avast 4.8.1351.0 2010.04.29 
Avast5 5.0.332.0 2010.04.29 
AVG 9.0.0.787 2010.04.29 
BitDefender 7.2 2010.04.29 
CAT-QuickHeal 10.00 2010.04.29 
ClamAV 0.96.0.3-git 2010.04.29 
Comodo 4710 2010.04.29 
DrWeb 5.0.2.03300 2010.04.29 
eSafe 7.0.17.0 2010.04.28 
eTrust-Vet 35.2.7457 2010.04.29 
F-Prot 4.5.1.85 2010.04.28 
F-Secure 9.0.15370.0 2010.04.29 
Fortinet 4.0.14.0 2010.04.27 
GData 21 2010.04.29 
Ikarus T3.1.1.80.0 2010.04.29 
Jiangmin 13.0.900 2010.04.29 
Kaspersky 7.0.0.125 2010.04.29 
McAfee 5.400.0.1158 2010.04.29 
McAfee-GW-Edition 6.8.5 2010.04.29 
Microsoft 1.5703 2010.04.29 
NOD32 5071 2010.04.29 
Norman 6.04.12 2010.04.29 
nProtect 2010-04-29.01 2010.04.29 
Panda 10.0.2.7 2010.04.28 
PCTools 7.0.3.5 2010.04.29 
Prevx 3.0 2010.04.29 
Rising 22.45.03.03 2010.04.29 
Sophos 4.53.0 2010.04.29 
Sunbelt 6235 2010.04.28 
Symantec 20091.2.0.41 2010.04.29 
TheHacker 6.5.2.0.272 2010.04.28 
TrendMicro 9.120.0.1004 2010.04.29 
TrendMicro-HouseCall 9.120.0.1004 2010.04.29 
VBA32 3.12.12.4 2010.04.28 
ViRobot 2010.4.27.2295 2010.04.28 
VirusBuster 5.0.27.0 2010.04.29 
Informações adicionais 
If you like please thank!
*JayKay* is offline  
Old 04/30/2010, 04:09   #15
 
elite*gold: 0
Join Date: Nov 2008
Posts: 97
Received Thanks: 5
if it wasnt in spanish ro what ever language that is we could use it but no clue how to read/understand it if u can convert to english much appreciated
dannyx12345 is offline  
Reply


Similar Threads Similar Threads
Dead Front Help
03/19/2010 - Dekaron Private Server - 8 Replies
Hey, I've looked through the forums looked at how to change dead front times and add new ones. So I've added 3 extra's to the two default ones 3 hours apart as apparently that's the minimum time between dead fronts but the only thing is they don't start nor announce. I've even tried using the admin command and the Dev console with no luck. Is there anything such as a line of code i might be missing that could have turned it off or disabled it?
Dead Front ?
01/15/2010 - Dekaron - 2 Replies
It's just me, or I can not duplicate the Magimata in Dead Front?
Wall hack in dead front common and dead front ark
05/25/2009 - Dekaron - 6 Replies
what do u type in value type text scan for dead front common and dead front ark?
about the dead front
03/24/2009 - Dekaron - 5 Replies
does anyone can tell me the secret in dead front or "DF" to be sure IN...thx
Dead front dc
06/26/2008 - Dekaron - 8 Replies
Hi.i wanted to go inside Df(chain of fire), and when i tried i dc'd and i get back to windows >.>. I even tried it without the Taiwan map.But still the same problem.I can login with my other chars without any problem.Does anybody knows how to fix it?. Regards~ OverLord



All times are GMT +1. The time now is 00:22.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.