Detect flag-capture in AB-style bgs menu

User Tag List

Results 1 to 9 of 9
  1. #1

    Detect flag-capture in AB-style bgs
  2. #2
    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)
    I don't have WoW installed on this computer so I can't test this, but you could try checking if both UnitCastingInfo() = nil, and the object animation = crafting.

    Hope this helps.

  3. #3
    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)
    Thanks The Seadragon,

    But I already got to that conclusion. In order to determine if a flag is being captured using only the 2 bits of information described above I need to check for players who do not have any casting/channeling info, have the crafting animation and being interact-distance from a flag that has the capturing animation. (additionally check if the flag/player relation allows interaction - horde players can't cap horde flags)

    The object animation id for flags (gameobjects) will probably be the same offset as fishing bobbers, so no problem there.

    I do not know where the animation data for players is stored.
    "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

  4. #4
    jjaa's Avatar Contributor
    Reputation
    245
    Join Date
    Dec 2006
    Posts
    562
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It still needs to play a spell visual right?, i don't really remember its been a lonnnng time since i played a BG. If so it prob goes through
    0x005D50A0 CGObject_C::PlaySpellVisualKit(PlaySpellVisualKitData const&)
    at some point

  5. #5
    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 jjaa View Post
    It still needs to play a spell visual right?, i don't really remember its been a lonnnng time since i played a BG. If so it prob goes through
    0x005D50A0 CGObject_C::PlaySpellVisualKit(PlaySpellVisualKitData const&)
    at some point
    Can't confirm nor test anything at the moment - at work. I haven't tried detouring this function just yet. The crafting animation I mentioned is the same when opening locked doors, chests, creating bandages... (without any glowing hands or cast bars).
    "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

  6. #6
    jjaa's Avatar Contributor
    Reputation
    245
    Join Date
    Dec 2006
    Posts
    562
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Robske View Post
    Can't confirm nor test anything at the moment - at work. I haven't tried detouring this function just yet. The crafting animation I mentioned is the same when opening locked doors, chests, creating bandages... (without any glowing hands or cast bars).
    Okay, well you could also try:
    005A53B0 CGUnit_C::GetCurrentAnimation(void) const


    EDIT: btw 00564040 CGPlayer_C::ToggleSheathe(void) is where i'm looking at these animation related functions
    Last edited by jjaa; 07-25-2011 at 07:43 AM.

  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)
    I do have access to IDA though CGUnit_C::GetCurrentAnimation looks very promising, thanks.

    Edit: Great Success,

    Code:
                var cappers = from player in Core.ObjectManager.Players
                              from flag in
                                  from gameObject in Core.ObjectManager.GameObjects
                                  where gameObject.Name.Contains("Flag") || gameObject.Name.Contains("Banner")
                                  select gameObject
                              where !player.IsCasting && !player.IsChanneling
                                && player.CurrentAnimation == Animation.Crafting
                                && player.DistanceTo(flag) < 8
                              select new { Player = player, Flag = flag };
    Animation.Crafting is 123.

    Last edited by Robske; 07-25-2011 at 12:14 PM.
    "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
    EmilyStrange's Avatar Active Member
    Reputation
    34
    Join Date
    Jul 2009
    Posts
    125
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Perhaps it is an aura?

    I haven't researched this at any point, but have you checked for an aura?

    http://www.wowhead.com/spells=0?filter=na=flag

    For example:

    Capture Point Flag Visual - Horde Controlled - Spell - World of Warcraft
    Last edited by EmilyStrange; 07-25-2011 at 01:15 PM. Reason: typo and example

  9. #9
    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)
    Originally Posted by Robske View Post
    Thanks The Seadragon
    No problem.

Similar Threads

  1. Battleground flag captures?
    By Stazz in forum WoW UI, Macros and Talent Specs
    Replies: 0
    Last Post: 05-31-2015, 03:45 AM
  2. Fast flag capture as monk
    By skythex in forum World of Warcraft Exploits
    Replies: 6
    Last Post: 01-09-2013, 05:34 PM
  3. Flagged for PVP in BGs
    By DeadlyMaker in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 11-29-2008, 07:40 PM
  4. [WPE] Wsg flag capture
    By opticalza in forum WoW EMU Exploits & Bugs
    Replies: 10
    Last Post: 09-07-2008, 11:14 PM
  5. [CTF] Capture The Flag Event!
    By ~SaiLyn~ in forum World of Warcraft Emulator Servers
    Replies: 17
    Last Post: 03-21-2008, 05:29 PM
All times are GMT -5. The time now is 04:14 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