LUA check Battleground status menu

User Tag List

Results 1 to 8 of 8
  1. #1
    Iaccidentallytwink's Avatar Elite User
    Reputation
    591
    Join Date
    Aug 2007
    Posts
    1,020
    Thanks G/R
    1/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA check Battleground status

    So; I know how to check if a battleground is active, ready, etc. But how can I tell if a battleground just ended? And how could I have this fire at the time that the BG ends.


    LUA check Battleground status
  2. #2
    Wopak's Avatar Active Member
    Reputation
    59
    Join Date
    Jul 2008
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use GetBattlefieldInstanceExpiration()
    If it's > 0 then the BG ended

    Documentation is here GetBattlefieldInstanceExpiration - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons

  3. #3
    Iaccidentallytwink's Avatar Elite User
    Reputation
    591
    Join Date
    Aug 2007
    Posts
    1,020
    Thanks G/R
    1/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome, thanks. +2 Rep for you!

    What's the best way to fire this check?


  4. #4
    Wopak's Avatar Active Member
    Reputation
    59
    Join Date
    Jul 2008
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Create a frame and check for the event that fires when the BG ends, want me to dig up some code ?

  5. #5
    Wopak's Avatar Active Member
    Reputation
    59
    Join Date
    Jul 2008
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahh well whatever, here some code, i didnt test it tho

    Download - VirusScan

  6. #6
    Iaccidentallytwink's Avatar Elite User
    Reputation
    591
    Join Date
    Aug 2007
    Posts
    1,020
    Thanks G/R
    1/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I should have given you +5 Rep instead of +2, I can't rep you again >_<.

    Your help is much appreciated. Any chance I could poke your brain for some LUA help via Skype?


  7. #7
    Wopak's Avatar Active Member
    Reputation
    59
    Join Date
    Jul 2008
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd be glad to help anyway i can, but atm i don't have much time at hand. I'm making an addon and also i've just just had a daughter. So if you need help, better off asking here at ownedcore or another forum. Then me or someelse will help best they can ofc

  8. #8
    shindaustin's Avatar Active Member
    Reputation
    35
    Join Date
    Dec 2006
    Posts
    502
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +5 Rep for helping him out.

    iAccidentlytwink, if you find anything useful in the twinking community feel free to share

Similar Threads

  1. lua check if target is player
    By Thomja in forum WoW UI, Macros and Talent Specs
    Replies: 6
    Last Post: 01-22-2014, 08:47 AM
  2. [VB] Check server status help
    By fastelf in forum Programming
    Replies: 2
    Last Post: 05-23-2011, 12:08 PM
  3. [Lua] Custom Battleground
    By Dr. Cheasterfield in forum WoW EMU General Releases
    Replies: 43
    Last Post: 09-06-2010, 05:54 AM
  4. PC/MAC Check bot status via Twitter/Iphone/SMS
    By turner850 in forum World of Warcraft Bots and Programs
    Replies: 12
    Last Post: 05-03-2010, 10:32 PM
  5. [LUA] Check a Spawned unit's HP? Is it possible?
    By controlsx2 in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 05-20-2009, 09:57 AM
All times are GMT -5. The time now is 12:00 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