PDA

View Full Version : Battle Ground Data


Kruskan
16-09-2006, 11:52 AM
Is it possible to use a one line command to retrieve data about a battle ground?

For example, who has the flag in WSG, how many captures does each team have, is Blacksmith/Farm taken or contested or unattacked, and basically anything that shows up in Blizzards default UI.

I have tried to find the command on wowwiki's API function list, but have been unable to find any function to help me out. Only thing I can find is determining a players stats in a BG.

If someone could point me in the right direction I would be very grateful.

include
17-09-2006, 03:52 PM
no, there aren't direct functions for this.

you have to catch the "messages". like: "the horde gets the mine, one minute left" (or similar).



but... why should someone use an addon to know, which base is attacket and whatever? just open the battlemap (shift-click on the battleground-icon next to your minimap)

Kruskan
17-09-2006, 06:42 PM
To create a customized battle map -_-

shadar
20-09-2006, 06:41 AM
have you tried this addon?
http://ui.worldofwar.net/ui.php?id=1935
i think you could like it:D

vallerius
04-10-2006, 12:53 AM
Huzzah, someone mentioned my mod :D

The process of getting the information you want is a little indirect, but not impossible.

Take a look on wowwiki for these functions:
GetWorldStateUIInfo (this gets the score info you see at the top of the screen)
GetBattlefieldFlagPosition (this gets the location of the friendly flag carrier, but NOT the enemy. it does NOT return the name of the flag carrier, that's a bit more involved)

And these events:
UPDATE_WORLD_STATES (updates to the score at the top of the screen)
WORLD_MAP_UPDATE (potential updates to map POIs, such as the nodes in AB)
CHAT_MSG_BG_SYSTEM_ALLIANCE
CHAT_MSG_BG_SYSTEM_HORDE
CHAT_MSG_BG_SYSTEM_NEUTRAL (these 3 contain the chat events in gulch and stuff. you have to parse these to get some of the info)