WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Battleground scoring (https://www.wowinterface.com/forums/showthread.php?t=36757)

Waky 11-14-10 10:31 PM

Battleground scoring
 
I'm attempting to recreate an addon that tracks your killing blows, honorable kills, etc. in a broker frame. Right now I'm using the following API to find these values:

GetNumBattlefieldScores()
GetBattlefieldScore(i)

These work perfectly for what I'm trying to do except for ONE thing; they won't seem to update unless I open and close the PvP stats frame. Is there a way to get these to work without having to open/close the PvP Stats frame?

Thanks in advance!

Ketho 11-15-10 12:38 AM

There doesn't seem to be any simple way to get it to update..

In WorldStateFrame.lua it calls WorldStateScoreFrame_Update() which updates GetNumBattlefieldScores() and GetBattlefieldScore(index)
.. but it doesn't seem to work :confused:

I also tried a quick opening and then hiding the frame in this macro, but it also didn't work though
Code:

/run ShowUIPanel(WorldStateScoreFrame)
/run HideUIPanel(WorldStateScoreFrame)


lilsparky 11-15-10 02:25 AM

Quote:

Originally Posted by Waky (Post 217817)
I'm attempting to recreate an addon that tracks your killing blows, honorable kills, etc. in a broker frame. Right now I'm using the following API to find these values:

GetNumBattlefieldScores()
GetBattlefieldScore(i)

These work perfectly for what I'm trying to do except for ONE thing; they won't seem to update unless I open and close the PvP stats frame. Is there a way to get these to work without having to open/close the PvP Stats frame?

Thanks in advance!



you should register the event "UPDATE_BATTLEFIELD_SCORE" then periodically call RequestBattlefieldScoreData() i think.

edit: i've always thought a great mod would be to mimic a sports ticker scrolling at the bottom of the screen. have sliding text show the latest stats and interesting info from the current match or even have it listen to a global broadcast from other people running the mod and then show stats from other battlegrounds. not necessarily useful, but it'd be pretty funny.

Ketho 11-15-10 03:31 AM

Did some quick testing and yes lilsparky is right ..

Waky 11-15-10 02:23 PM

Woohoo, that was the problem thank you very much you two. I was so confused why it wasn't updating!

Thanks again very much guys!

Beoko 11-22-10 10:35 AM

Quote:

Originally Posted by lilsparky (Post 217841)
edit: i've always thought a great mod would be to mimic a sports ticker scrolling at the bottom of the screen. have sliding text show the latest stats and interesting info from the current match or even have it listen to a global broadcast from other people running the mod and then show stats from other battlegrounds. not necessarily useful, but it'd be pretty funny.

Bit of a necro, but I found this idea extremely interesting. I made a rough outline of addon functionality:

Code:

- What do you want to broadcast?
    - PvP:
        - Generic Objectives
        - Enemy killing blows
        - Etc
    - PvE:
        - Generic Objectives
        - Raid Boss deaths
        - Etc
- What do you want to see broadcasted to you?
    - PvP:
        - Generic Objectives
        - Enemy killing blows
        - Etc
    - PvE:
        - Generic Objectives
        - Raid Boss deaths
        - Etc
- Which channels do you want to broadcast in?
    - Party
    - Guild
    - Battleground
    - Raid
    - Etc
- Which channels do you listen to for broadcasts from other people?
    - Party
    - Guild
    - Battleground
    - Raid
    - Etc

Of course, this entirely depends on the number of people that install the addon, so it could be something awesome or something that never catches on. I'll have some free time in December, and I'll see where this goes once I'm able to start playing again.


All times are GMT -6. The time now is 05:03 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI