How to get Server date and time by reading memory ? menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    Candyboy's Avatar Member
    Reputation
    1
    Join Date
    Oct 2017
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to get Server date and time by reading memory ?

    I know CalendarGetDate() could do, but I want to get server date and time(not client date and time) by reading memory. Anybody help ?

    Thanks.

    How to get Server date and time by reading memory ?
  2. #2
    clestor's Avatar Banned
    Reputation
    3
    Join Date
    Jul 2018
    Posts
    5
    Thanks G/R
    2/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you can't get the accurate time.Server only sent Hour and Minute(When logged in) to the client according to my past research.

  3. #3
    Dysphorie's Avatar Member
    Reputation
    4
    Join Date
    Aug 2011
    Posts
    12
    Thanks G/R
    0/1
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When you connect to the server, your client calculates and stores the time difference between your local computer and the server time.
    At any moment, your client can know the server time by adding your current local time to this time difference.
    This is what the lua function GetServerTime does.
    Look at this function to get the pointer of the stored time difference.

  4. #4
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Not really sure how precise you need it, but the variable g_homeServerTime might be useful to you. You can easily find it referenced in Script_GetGameTime. It's accurate to the minute.

    Code:
    signed int __cdecl Script_GetGameTime(lua_State *L)
    {
      klua_pushnumber(L, COERCE__INT64(g_homeServerTime[1]));
      klua_pushnumber(L, COERCE__INT64(g_homeServerTime[0]));
      return 2;
    }
    Code:
    var time = Offsets.Instance["g_homeServerTime"].Read<int>(6);
    return new DateTime(time[5] + 2000, time[4] + 1, time[3] + 1, time[1], time[0], 0, DateTimeKind.Utc);
    Last edited by Jadd; 07-04-2018 at 10:17 AM.

Similar Threads

  1. [How-To] Guide how to get around On Broken Isles> By raft and by flying without mount.
    By Niek in forum World of Warcraft Guides
    Replies: 1
    Last Post: 11-30-2015, 09:18 AM
  2. [Guide] How to get honor marks and exp all at the same time!
    By MelonFarmer in forum World of Warcraft Guides
    Replies: 49
    Last Post: 08-13-2008, 07:12 PM
  3. How to get both Alliance and Horde on PTR Test Server (PVP)
    By Sabith in forum World of Warcraft Exploits
    Replies: 6
    Last Post: 12-18-2007, 05:50 PM
All times are GMT -5. The time now is 05:32 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search