GetGameTime ? menu

User Tag List

Results 1 to 6 of 6
  1. #1
    jarjar1's Avatar Sergeant
    Reputation
    1
    Join Date
    Oct 2012
    Posts
    52
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GetGameTime ?

    Code:
    .text:00921750                var_C           = qword ptr -0Ch
    .text:00921750                arg_0           = dword ptr  8
    .text:00921750
    .text:00921750 55                             push    ebp
    .text:00921751 8B EC                          mov     ebp, esp
    .text:00921753 DB 05 84 D3 FB+                fild    dword_FBD384
    .text:00921759 56                             push    esi
    .text:0092175A 8B 75 08                       mov     esi, [ebp+arg_0]
    .text:0092175D 83 EC 08                       sub     esp, 8
    .text:00921760 DD 1C 24                       fstp    [esp+0Ch+var_C]
    .text:00921763 56                             push    esi             ; int
    .text:00921764 E8 27 BE BF FF                 call    sub_51D590
    .text:00921769 DB 05 80 D3 FB+                fild    dword_FBD380
    .text:0092176F 83 C4 04                       add     esp, 4
    .text:00921772 DD 1C 24                       fstp    [esp+0Ch+var_C]
    .text:00921775 56                             push    esi             ; int
    .text:00921776 E8 15 BE BF FF                 call    sub_51D590
    .text:0092177B 83 C4 0C                       add     esp, 0Ch
    .text:0092177E B8 02 00 00 00                 mov     eax, 2
    .text:00921783 5E                             pop     esi
    .text:00921784 5D                             pop     ebp
    .text:00921785 C3                             retn
    Here is the disassembly for GetGameTime() in 5.0.5.16048. I don't quite understand where the pointer is, or how to read the correct value. Also is this GetGameTime() the one that is used as the server tick? ex: The WOW API returns to you minutes and hours, but I guess the WOW API converts the milliseconds to that?

    GetGameTime ?
  2. #2
    ccKep's Avatar Member
    Reputation
    11
    Join Date
    Jan 2010
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your function:

    Code:
    signed int __cdecl sub_921750(int a1)
    {
      lua_pushnumber(a1, (double)dword_FBD384); // Hours
      lua_pushnumber(a1, (double)dword_FBD380); // Minutes
      return 2;
    }
    API - GetGameTime returns hours and minutes. (server time)

    base + 0xBBD384 = Hours
    base + 0xBBD380 = Minutes
    Last edited by HI5; 11-01-2012 at 01:22 PM.

  3. #3
    jarjar1's Avatar Sergeant
    Reputation
    1
    Join Date
    Oct 2012
    Posts
    52
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But I need the server tickcount in uint. not hours and minutes. Unless this is the wrong function.

    Originally Posted by ccKep View Post
    Your function:

    Code:
    signed int __cdecl sub_921750(int a1)
    {
      lua_pushnumber(a1, (double)dword_FBD384); // Hours
      lua_pushnumber(a1, (double)dword_FBD380); // Minutes
      return 2;
    }
    API - GetGameTime returns hours and minutes. (server time)

    base + 0xBBD384 = Hours
    base + 0xBBD380 = Minutes
    Last edited by HI5; 11-01-2012 at 01:24 PM.

  4. #4
    ccKep's Avatar Member
    Reputation
    11
    Join Date
    Jan 2010
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Take a look at UpdateTime (0x6C98E0).

  5. #5
    bigtimt's Avatar Active Member
    Reputation
    41
    Join Date
    Mar 2008
    Posts
    100
    Thanks G/R
    2/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are in C#, I think using Environment.TickCount wil lwork

  6. #6
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by bigtimt View Post
    If you are in C#, I think using Environment.TickCount wil lwork
    He says he want the server tickcount, which you can't get. Only the local one.

All times are GMT -5. The time now is 01:38 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