Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 12:29

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

Advertisement



Auto-Equipment and Servertime on Homepage ?

Discussion on Auto-Equipment and Servertime on Homepage ? within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1

 
sl1nkz's Avatar
 
elite*gold: 329
Join Date: Feb 2014
Posts: 196
Received Thanks: 15
Auto-Equipment and Servertime on Homepage ?

Hey guys,

as the title already say's im looking for a working Auto-Equipment System from D1-D9 (Seal of Star, Max Blue, +5)

Also im looking for a php code to add the servertime to a homepage.

I will pay for it.

kind regards,

-dope
sl1nkz is offline  
Old 01/02/2016, 04:04   #2
 
B13.'s Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 239
Received Thanks: 26
GOOGLE IT

copy paste the code after pressing generate
as for auto equip i have no idea can't help :c
B13. is offline  
Old 01/02/2016, 19:42   #3
 
elite*gold: 135
Join Date: Mar 2012
Posts: 182
Received Thanks: 80

Please note that i copied it so its better to check it before using it on your server.
Codsey is offline  
Old 02/03/2017, 12:46   #4
 
elite*gold: 0
Join Date: Jul 2013
Posts: 475
Received Thanks: 308
Msg 208, Level 16, State 6, Procedure _ADD_AUTOEQUIP_GEAR, Line 465
Invalid object name 'dbo._ADD_AUTOEQUIP_GEAR'.

Quote:
Originally Posted by DesperadoM View Post

Please note that i copied it so its better to check it before using it on your server.

error

Msg 208, Level 16, State 6, Procedure _ADD_AUTOEQUIP_GEAR, Line 465
Invalid object name 'dbo._ADD_AUTOEQUIP_GEAR'.
therock2007e is offline  
Old 02/03/2017, 21:59   #5
 
"Abner"'s Avatar
 
elite*gold: 0
Join Date: Sep 2016
Posts: 30
Received Thanks: 13
Hello therock2007e,

This error is just pure english, if you went to that row number, you will find "ALTER PROCEDURE", instead, just change ALTER to CREATE and you will be fine.

note: if there are any similar errors, it will be related to database names, you should append them as well (if there are any).

Edit: @, for the server time, here is a simple example using Javascript + php


Best,

Abner.
"Abner" is offline  
Old 02/17/2017, 01:46   #6
 
whitewalker*'s Avatar
 
elite*gold: 0
Join Date: Feb 2017
Posts: 8
Received Thanks: 3
Quote:
Originally Posted by "Abner" View Post
Hello therock2007e,

This error is just pure english, if you went to that row number, you will find "ALTER PROCEDURE", instead, just change ALTER to CREATE and you will be fine.

note: if there are any similar errors, it will be related to database names, you should append them as well (if there are any).

Edit: @, for the server time, here is a simple example using Javascript + php


Best,

Abner.
Oh dude, using ajax that way is a bad idea ( although it's just time printing, because it's not about it it's about the requests ).
You could type a bit longer script - but more efficient.
You can even do that with no ajax usage, like that:
PHP Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
var serverTime = '';
var seconds = 0;

// updates the server time
function updateServerTime()
{
    function updateProcess()
    {
        function addZero(timeType) {
            if(timeType < 10) {
                timeType = '0' + timeType;
            }
            return timeType;
        }
        
        //$('#servertime').load('updateTime.php');
        if(serverTime == '') {
              var data = $('#servertime').html();
              serverTime = data;
              
              serverTime = serverTime.replace('-', ':');
              serverTime = serverTime.replace('-', ':');
              serverTime = serverTime.replace(' ', ':');
              serverTimeArr = serverTime.split(':');
              seconds = serverTimeArr[5];
        }
        else {
            
            var serverTimeObject = new Date();
            
            serverTimeObject.setFullYear(serverTimeArr[0]);
            serverTimeObject.setMonth(serverTimeArr[1] - 1);
            serverTimeObject.setDate(serverTimeArr[2]);
            
            serverTimeObject.setHours(serverTimeArr[3]);
            serverTimeObject.setMinutes(serverTimeArr[4]);
            seconds++;
            serverTimeObject.setSeconds(seconds);
        
        
            var serverYear = serverTimeObject.getFullYear();
            var serverYear = addZero(serverYear);
            
            var serverMonth = 1 + serverTimeObject.getMonth();
            var serverMonth = addZero(serverMonth);
            
            var serverDay = serverTimeObject.getDate();
            var serverDay = addZero(serverDay);
            
            var serverHours = serverTimeObject.getHours();
            var serverHours = addZero(serverHours);
            
            var serverMinutes = serverTimeObject.getMinutes();
            var serverMinutes = addZero(serverMinutes);
            
            var serverSeconds = serverTimeObject.getSeconds();
            var serverSeconds = addZero(serverSeconds);
            
            serverTime = serverYear +'-'+ serverMonth +'-'+ serverDay +' '+ serverHours +':'+ serverMinutes +':'+ serverSeconds;
            
            $('#servertime').html(serverTime);
        }
        
    }
    var timeinit = setInterval(function(){
        updateProcess();
        },1001);
}

$( document ).ready(function() {
    updateServerTime();
});

</script>

<span id="servertime"><?php echo date("Y-m-d H:i:s"); ?></span>
whitewalker* is offline  
Reply


Similar Threads Similar Threads
Maul-Online D11 / Auto System / Auto Equipment / Uniuqe Rank / Auto Event Fun
01/26/2015 - SRO PServer Advertising - 5 Replies
Welcome to Maul-Online official thread! I'm proud to finally present to you the server we spent long time working hard on just to keep it well-established Maul-Online online is based on Vsro files Server Will lunched 22/01/2015 Server : Online We Are Here To Represent To You A Server Which Is The Best Old School Server With The Old iSro Features .
Maul-Online D11 / Auto System / Auto Equipment / Uniuqe Rank / Auto Event Fun
01/25/2015 - SRO PServer Advertising - 51 Replies
http://i.epvpimg.com/pcfKe.jpg Welcome to Maul-Online official I'm proud to finally present to you the server we spent long time thread! working hard on just to keep it well-established Online-Online online is based on Vsro files Server is lunched 22/01/2015 Server time : Online http://i.epvpimg.com/V53Ge.png



All times are GMT +1. The time now is 12:29.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.