Question regarding AV timer menu

Shout-Out

User Tag List

Results 1 to 12 of 12
  1. #1
    drognir's Avatar Active Member
    Reputation
    28
    Join Date
    Sep 2007
    Posts
    50
    Thanks G/R
    1/0
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question regarding AV timer

    Hello, I've searched extensively, and even tried to locate an offset for a function that returns the total time elapsed for BG's. Basically, I've developed an AV bot, and I am running into one issue. After zoning into AV, I path to the gate and wait for 2 minutes regardless of how long the AV has been going. The problem with that is sometimes people report me inactive. If I could check to see if AV has been going for 2 minutes then I could start pathing immediately rather than waiting at the gate for 2 minutes. I've got this function GetBattleFieldInstanceRunTime, and was able to use a memory editor to find the current timer, but it's not a static offset. I was hoping that there was a static offset for such information, and I'm just missing it. Does anyone have any insight regarding this? Thanks

    Question regarding AV timer
  2. #2
    Kryso's Avatar Active Member
    Reputation
    40
    Join Date
    Jul 2009
    Posts
    97
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was having this issue too, however I was too lazy to find the time how long is battleground running, so I'm just checking if there is a "Ghost Gate" game object (or something like that, don't remember)

  3. #3
    Cheatz0's Avatar Member
    Reputation
    14
    Join Date
    May 2009
    Posts
    36
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Couldn't you check to see if you have the buff that allows you to cast spells without any cost? No buff = bg started

  4. #4
    drognir's Avatar Active Member
    Reputation
    28
    Join Date
    Sep 2007
    Posts
    50
    Thanks G/R
    1/0
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cheatz0 View Post
    Couldn't you check to see if you have the buff that allows you to cast spells without any cost? No buff = bg started
    Hm, that's a pretty good idea, right there. I mean, I don't know how to check if there's buffs or not, but I could certainly cast a few spells on myself and monitor my mana level. If it drops when I cast the spell, no buff! I'll give that a try, thanks a bunch. And as for the previous post, yeah, that seems like a great idea as well. If I can't get this one working I will give it a try!

  5. #5
    drognir's Avatar Active Member
    Reputation
    28
    Join Date
    Sep 2007
    Posts
    50
    Thanks G/R
    1/0
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by drognir View Post
    Hm, that's a pretty good idea, right there. I mean, I don't know how to check if there's buffs or not, but I could certainly cast a few spells on myself and monitor my mana level. If it drops when I cast the spell, no buff! I'll give that a try, thanks a bunch. And as for the previous post, yeah, that seems like a great idea as well. If I can't get this one working I will give it a try!
    Works absolutely beautifully the way that I described above. Thanks so much for the excellent suggestion ;D

  6. #6
    zzgw's Avatar Member
    Reputation
    6
    Join Date
    Mar 2008
    Posts
    31
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Edit: Sorry, misread your post.

  7. #7
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    GetBattlefieldInstanceRunTime() - In milliseconds, the time since battleground started (seems to be queried from server because it is not in sync with time()).

    Gates open at 120000, my bot moves out at 126000.
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  8. #8
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How about you try reversing the game to find out?

    lua_GetBattlefieldInstanceRunTime

    Most relevant address would be: 0x1129334

  9. #9
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Robske View Post
    GetBattlefieldInstanceRunTime() - In milliseconds, the time since battleground started (seems to be queried from server because it is not in sync with time()).

    Gates open at 120000, my bot moves out at 126000.

  10. #10
    naa's Avatar Contributor
    Reputation
    100
    Join Date
    Oct 2006
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are using buff detection you could look for the buff you got until the bg stats.

  11. #11
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Reversed it for you

    Whenever you enter a BG, WoW stores the time between System Startup and BG Start at 0x1129334.

    So you basically just have to use the WinAPI-function GetTickCount() which returns the time since System Startup.

    Code:
    bgRuntime = GetTickCount() - ReadDWORD(0x1129334);
    I am pretty sure I am correct, try it, I was too lazy, I am just addicted at reversing lua functions as its a nice practise for reversing baddies like me.

    Edit: Oh damn, Apoc already posted it, my fault for not reloading the page.

  12. #12
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by flo8464 View Post
    Reversed it for you

    Whenever you enter a BG, WoW stores the time between System Startup and BG Start at 0x1129334.

    So you basically just have to use the WinAPI-function GetTickCount() which returns the time since System Startup.

    Code:
    bgRuntime = GetTickCount() - ReadDWORD(0x1129334);
    I am pretty sure I am correct, try it, I was too lazy, I am just addicted at reversing lua functions as its a nice practise for reversing baddies like me.

    Edit: Oh damn, Apoc already posted it, my fault for not reloading the page.
    Just to be nitpicky... you should call the func at 0x0081EDB0 instead of using GTC or QPC. Let WoW handle the math. (And choice of timing funcs)
    Last edited by Apoc; 09-09-2009 at 03:29 PM.

Similar Threads

  1. Question regarding Metamap
    By calzoned1 in forum WoW UI, Macros and Talent Specs
    Replies: 1
    Last Post: 12-01-2007, 05:44 PM
  2. Question regarding Warden and Model Edit.
    By thrass in forum WoW ME Questions and Requests
    Replies: 10
    Last Post: 09-15-2007, 02:47 PM
  3. Question regarding scamming on EU servers
    By Cinder in forum World of Warcraft General
    Replies: 1
    Last Post: 08-02-2007, 03:49 PM
  4. Another question regarding Title Screens
    By Naravus in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 04-17-2007, 05:27 PM
  5. Question Regarding Naming a Mod.
    By Omega in forum World of Warcraft General
    Replies: 0
    Last Post: 08-15-2006, 11:45 AM
All times are GMT -5. The time now is 09:29 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