Hey, after A LOT of trial and error, I couldn't really figure how its used to send the time probably, I tried to control the time sent many times, I figured out there's 4 bytes that controls the time sent, i tried them as ushorts and as a uint, but still they're pretty ******, so i made a command to test em as 4 individual bytes, but yeah, still no luck, so anyone got any information about this ?
I've posted this many times before, but here's another way of doing it
Quote:
Originally Posted by Zeroxelli
Also, a heads up. People tend to use Environment.TickCount to measure the distance between two points in time in their servers. This is not good practice! Though it is okay in certain circumstances where the difference in time is less than, say, 3-4 weeks, any more than that and it will wrap around to a negative number and screw up your system. I recommend that it is avoided completely, short of checking the time between things inside the server itself, such as your last jump, attack, etc. Other than that, I recommend you use something like a unix epoch timestamp. As I've posted before, use these functions I've made, or something similar:
Code:
public static readonly DateTime Epoch = new DateTime(1970, 1, 1);
public static long Microtime()
{
return Convert.ToInt64((DateTime.UtcNow - Epoch).TotalMilliseconds);
}
public static long MilliSecondsSince(long UTS)
{
return (Microtime() - UTS);
}
public static long SecondsSince(long UTS)
{
return (Microtime() - UTS) / 1000;
}
Of course you can make a simple function to return the seconds instead, but "SecondsSince" works nice for calculating the time between now (use Microtime() to get the UTS timestamp for "Now") and the unix epoch.
Login Time Records 11/21/2010 - Silkroad Online - 40 Replies Post here your longest login time...
My:
~21H - Server RedSea
How many time do you take to login WITHOUT PREMIUM 01/18/2010 - Silkroad Online - 60 Replies brought this old thread up because im interesting and its a fun thread
post server and time you do for logging in (and maybe login server like .30)
My record is 2 hours with server 30
Login-Time at private? 09/11/2009 - SRO Private Server - 7 Replies Hey all,
how much time do I need, to login on a private server? is there always a free spot? or is it same as normal silkroad?
Best time to login to ECSRO 04/09/2009 - SRO Private Server - 6 Replies Hi, here I'm again :)
Can you tell me what hours of GMT +3 is best to login to ECSRO
I mean when ECSRO is not so crowded?