[Question] How to determine if a bg has started? menu

User Tag List

Page 1 of 3 123 LastLast
Results 1 to 15 of 33
  1. #1
    Deathvortex's Avatar Member
    Reputation
    1
    Join Date
    Oct 2009
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] How to determine if a bg has started?

    Sadly i dind't find anything related to this in the forum

    Can anyone point me in the right direction how i can determine when a bg is starting? Currently i'm working with wait times. It's working. But if i join a bg which has already startet it doesn't look very human to stand around for a specific time in the starting area

    [Question] How to determine if a bg has started?
  2. #2
    audible83's Avatar Member
    Reputation
    4
    Join Date
    Jun 2008
    Posts
    48
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    example : in WSG, do a gameobject search for the doors...

    or ( untested )

    GetBattlefieldInstanceRunTime() ( lua function )

    if this one is 0 then BG hasnt started yet

    Good luck.

  3. #3
    Deathvortex's Avatar Member
    Reputation
    1
    Join Date
    Oct 2009
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you

  4. #4
    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)
    Originally Posted by audible83 View Post
    example : in WSG, do a gameobject search for the doors...

    or ( untested )

    GetBattlefieldInstanceRunTime() ( lua function )

    if this one is 0 then BG hasnt started yet

    Good luck.
    more like 120000
    "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

  5. #5
    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)
    Note that GetBattlefieldInstanceRunTime is also 0 if the client hasn't recieved that information from the server yet. I've got a bunch of cases where the client never recieved it, even though the BG has been going on for ages. I don't know why, but atleast it's not too reliable.

  6. #6
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by zzgw View Post
    Note that GetBattlefieldInstanceRunTime is also 0 if the client hasn't recieved that information from the server yet. I've got a bunch of cases where the client never recieved it, even though the BG has been going on for ages. I don't know why, but atleast it's not too reliable.
    Blizzard should really fix that Don't really know any other non retarded way to determine if a bg has started, any ideas?

  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)
    Originally Posted by zzgw View Post
    Note that GetBattlefieldInstanceRunTime is also 0 if the client hasn't recieved that information from the server yet. I've got a bunch of cases where the client never recieved it, even though the BG has been going on for ages. I don't know why, but atleast it's not too reliable.
    I vaguely remember a way to force a battleground information query. (It gets done when you lookup the scoreboard) I'm sure you'll find an answer in blizzard's lua scripts
    "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
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look at the opcodes listed in the 3.2.2 thread and look for the one that queries for battleground status. Search for a reference to CNet_SendPacket that pushes that opcode. Reverse back to the lua function that initiates it.

  9. #9
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lanman92 View Post
    Look at the opcodes listed in the 3.2.2 thread and look for the one that queries for battleground status. Search for a reference to CNet_SendPacket that pushes that opcode. Reverse back to the lua function that initiates it.
    Alrighty then !

  10. #10
    schlumpf's Avatar Retired Noggit Developer

    Reputation
    755
    Join Date
    Nov 2006
    Posts
    2,759
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just run against the door until it opens. Thats the easiest way and looks human. Or just read the chat. Thats the way I would do it when entering a battleground.

  11. #11
    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)
    Aren't the gates/doors game objects?

    Why not just check if they're there or not...

  12. #12
    peterwurst's Avatar Member
    Reputation
    11
    Join Date
    Jul 2006
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep thats the easiest way, the gate is named "Ghost Gate" and in EOTS you have to check for "Visual Banner".

  13. #13
    Reflection's Avatar Legendary
    Reputation
    783
    Join Date
    Mar 2008
    Posts
    3,377
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Doesn't the flag also spawn once the game starts? another gameobject to use, then.

    Freelance Digital Artist
    https://reflectionartwork.deviantart.com
    You did not desert me
    My brothers in arms


  14. #14
    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)
    Long time since i last played a bg - but do you not still have the prep buff when the bg is starting?
    "Back" in the glider days i used it to check for bg start.

  15. #15
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lua GetBattleGroundStatus

    Code:
    #define BGNone			0
    #define BGQueued		1
    #define BGWaiting		2
    #define BGActive		3
    https://tanaris4.com

Page 1 of 3 123 LastLast

Similar Threads

  1. [Question] How to determine whether the quest completed, after the quest has been turne
    By DawnFoods in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 12-31-2016, 09:42 PM
  2. [C++ Script] [Question] How to determine Creature HP mode LFR / HEROIC / FLEXI
    By keivulan in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 10-31-2014, 12:18 PM
  3. [Question]How to determine if a frame is shown
    By leather in forum WoW Memory Editing
    Replies: 5
    Last Post: 11-28-2009, 03:22 PM
  4. Question: How to change from priv. serv to blizzards?
    By Bridude in forum World of Warcraft General
    Replies: 5
    Last Post: 03-21-2007, 10:07 PM
All times are GMT -5. The time now is 03:01 PM. 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