Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 02:25

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


[FOUND] Non Dynamic DF Counter

Discussion on [FOUND] Non Dynamic DF Counter within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
elite*gold: 20
Join Date: Nov 2007
Posts: 2,853
Received Thanks: 1,870
[FOUND] Non Dynamic DF Counter

while i was google'ing for some df code i found this


author: Alexander Schikora"
author_email: creetar+


Extracted code
PHP Code:
<style type="text/css">   
tdthbody{font-size10pttext-align:center;}    
</
style>

<
center>  
    <
b><u>2Moons Deadfront Counter</u></b><br>
        <
div id="now"></div>
            <
p>
                <
div id="times"></div>
                       <
script type="text/javascript">
                       function 
reloadCounter () {
                          var 
now = new Date();         
                         
document.getElementById('now').innerHTML "("+now.toLocaleString()+")";
                          
aTimes = new Array("15""19""23""03");     
                          
tTimes = new Array("16""20""24""04");
                          var 
content "<table border='1' width='100%'><tr><th>Server</th><th>1st</th><th>2nd</th><th>3rd</th><th>4th</th></tr>";
                          
content += "<tr><td>Abaddon</td>";
                          for (
x=0;x<aTimes.length;x++)
                          {
                
curMinOfDay = (now.getUTCMinutes()+(now.getUTCHours()-8)*60);
                
eventMinOfDay aTimes[x]*60;
                
= (curMinOfDay-eventMinOfDay)*-1;
                
hoursTillEvent Math.floor(t/60);
                
minutesTillEvent t-(hoursTillEvent*60);
                
hoursTillEvent = (hoursTillEvent<0)?(hoursTillEvent*-1)+(now.getUTCHours()-8)-2:hoursTillEvent;
                
content+="<td>"+hoursTillEvent+"h "+minutesTillEvent+"min</td>";
                          }
                                    
content += "</tr>";
                          
content += "<tr><td>Trieste</td>";
                          for (
x=0;x<tTimes.length;x++)
                          {
                
curMinOfDay = (now.getUTCMinutes()+(now.getUTCHours()-8)*60);
                
eventMinOfDay tTimes[x]*60;
                
= (curMinOfDay-eventMinOfDay)*-1;
                
hoursTillEvent Math.floor(t/60);
                
minutesTillEvent t-(hoursTillEvent*60);
                
hoursTillEvent = (hoursTillEvent<0)?(hoursTillEvent*-1)+(now.getUTCHours()-8)-2:hoursTillEvent;
                
content+="<td>"+hoursTillEvent+"h "+minutesTillEvent+"min</td>";
                
                          }
                                    
content += "</tr>";
                           
content += "</table>";
                           
document.getElementById('times').innerHTML content;
                       }
                       
reloadCounter();
                     
</script>
<br><INPUT TYPE="button" NAME="refresh" Value="refresh" onClick="reloadCounter()">
</center> 
Works pretty good



janvier123 is offline  
Thanks
2 Users
Old 02/08/2010, 18:57   #2
 
elite*gold: 0
Join Date: May 2008
Posts: 863
Received Thanks: 197
hmm does not work for me. This is what i get and that's all


gedimazs is offline  
Old 02/09/2010, 00:25   #3
 
elite*gold: 20
Join Date: Mar 2008
Posts: 964
Received Thanks: 232
Nice find, works like a charm.
naruto820 is offline  
Old 02/09/2010, 17:36   #4
 
elite*gold: 0
Join Date: May 2009
Posts: 48
Received Thanks: 16
yea, it works.

But what i would love is how to get something like a DF count down and during DF it says the battle is running xD that would be sweeet.


alexzzzzz is offline  
Old 02/10/2010, 05:08   #5
 
elite*gold: 0
Join Date: Feb 2010
Posts: 16
Received Thanks: 0
it works but for sometime it shows wrong timing
dkteler is offline  
Old 02/10/2010, 09:13   #6
 
elite*gold: 20
Join Date: Nov 2007
Posts: 2,853
Received Thanks: 1,870
change:
PHP Code:
                          aTimes = new Array("15""19""23""03");     
                          
tTimes = new Array("16""20""24""04"); 


janvier123 is offline  
Thanks
2 Users
Reply



« [HELP] Game Speed | Threats for hacks in the name of Janvier »

Similar Threads
[GUIDE]Dynamic Ip
09/24/2010 - EO PServer Guides & Releases - 8 Replies
Most of ppl thats have Dynamic ip and they cant get it static for many of reasons this guide will help you to run ur server without the effected with the changing of ip in sure it will not be as static but will be good for Dynamic users 1st you have to download the following : 1-DynDns Play tool By hio 2-AutoPatchServer 3.0 By forcer 3-No-IP Windows Dynamic Update Client v3.0.4
Dynamic DNS
04/10/2010 - Metin2 PServer - Discussions / Questions - 6 Replies
Hallo, ich finde in meiner FritzBox keine Dynamic DNS option kann jemand helfen ?
Dynamic IP
08/08/2009 - Dekaron Private Server - 1 Replies
so i aksed this question in a few threads but i'm afraid it will get missed plus i figured this topic could benefit from it's own thread. what i'm trying to do is make my server public. but since i have a dynamic ip from my ISP it would mean i would have to provide everyone playing with a new loginlist and chanlist file every time my IP changed. so i made an account over at myddns.com but the client does not seem to like using whatever.myddns.com as the address it needs to connect to...any way...
Trojan found in server.exe found in 0919 + Crack by Mandark (Projecthax) post
12/15/2007 - SRO Hacks, Bots, Cheats & Exploits - 26 Replies
WARNING Alright look at what AVG thought of the server.exe that originated form this post: 0919 + Crack by Mandark (Projecthax) glad i didnt bot on my main account :D http://i32.photobucket.com/albums/d34/nellyrev/untitled2.jpg
dynamic DNS
01/30/2007 - WoW PServer Hosting - 0 Replies
several DDNS services can be updated from within the router running DD-WRT. The adventurous can load bits from other WRT projects for other DDNS services there&#39;s no need to run update software from the PC OS (ex dyndns) http://DD-WRT.com



All times are GMT +2. The time now is 02:25.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 3KeUpz52VCbhmLwuwydqxu6U1xsgbT8YT5
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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