WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   end of arena event? (https://www.wowinterface.com/forums/showthread.php?t=34166)

b3vad 07-25-10 12:55 PM

end of arena event?
 
i want to make an addon to whisper another char something when arena ends / or number of rival team changes (how hard it can be??)
but i cant find any event fired for it ! searched and found people talking about blizzards arena UI but i cant find anything in it either ! who knows this event ?
----------
and i made an input box to insert 2nd character (that must revive the whisper) into a variable but i cant type anything in it . do anyone have a simple example?
tnx

b3vad 07-27-10 12:56 AM

anyone?
 
it seems nobody in whole world knows this :(
any suggestion ? like checking something in UI

and another question is :
do you know any addon to transfer chat/or combat log from one character to another?

voodoodad 07-27-10 01:13 AM

12 hours isn't a whole lot of time to wait for a reply from someone with that very specific knowledge.

Psychophan7 07-27-10 01:55 AM

Try these events: (any arguments are unknown, according to WoWWiki)

ARENA_OPPONENT_UPDATE
ARENA_SEASON_WORLD_STATE

Then there are these battleground events. I don't know how useful these will be:

UPDATE_BATTLEFIELD_SCORE - Fired whenever new battlefield score data has been recieved, this is usually fired after RequestBattlefieldScoreData() is called.
UPDATE_WORLD_STATES - Fired within Battlefields when certain things occur such as a flag being captured.

Then there is this event, which deals further with world states:

WORLD_STATE_UI_TIMER_UPDATE

b3vad 07-30-10 12:35 AM

Quote:

Originally Posted by voodoodad (Post 200298)
12 hours isn't a whole lot of time to wait for a reply from someone with that very specific knowledge.

well i said that after searching whole wowwiki and any other site i know and i didn't mean nobody in this forum knows . many people know but they dont share .
Quote:

Originally Posted by Psychophan7 (Post 200300)
Try these events: (any arguments are unknown, according to WoWWiki)

ARENA_OPPONENT_UPDATE -- fired only at start of arena (about 5 time)
ARENA_SEASON_WORLD_STATE -- not fired in arena i think.
UPDATE_BATTLEFIELD_SCORE -- fired whole time in arena every time something being cast or changed .
UPDATE_WORLD_STATES -- fired at start of arena(about 10 time) and at end of arena(2 time)
WORLD_STATE_UI_TIMER_UPDATE --not tested yet

I think UPDATE_WORLD_STATES is perfect to find out end of arena but the question is : how we can find out if this event is fired for start of arena or end of arena ? do they have any args?

Ferous 08-04-10 08:13 PM

Can't you do something like this?

(pretend code)

lua Code:
  1. local function tellme()
  2.  
  3. if event == "UPDATE_WORLD_STATES" then
  4. print("This event just ran")
  5.  
  6. end

?

Torhal 08-04-10 09:33 PM

Indeed, you can:

lua Code:
  1. local event_frame = CreateFrame("Frame")
  2.  
  3. event_frame:RegisterEvent("ARENA_OPPONENT_UPDATE")
  4. event_frame:RegisterEvent("ARENA_SEASON_WORLD_STATE")
  5. event_frame:RegisterEvent("UPDATE_BATTLEFIELD_SCORE")
  6. event_frame:RegisterEvent("UPDATE_WORLD_STATES")
  7. event_frame:RegisterEvent("WORLD_STATE_UI_TIMER_UPDATE")
  8.  
  9. event_frame:SetScript("OnEvent",
  10.               function(self, event, addon)
  11.                   print(string.format("Caught event: %s", event))
  12.               end)

Ferous 08-05-10 03:38 AM

So much smarter than me Torhal :P

b3vad 08-05-10 03:47 AM

how about end of arena
 
each of this events fired many times in arena and my chat window looks like

This event just ran
This event just ran
This event just ran
[party]someone : LETS Do IT!
This event just ran
This event just ran
This event just ran
This event just ran
[party]other one : yea!
This event just ran

how i can find out if this event has been fired for end of arena?

yj589794 08-05-10 04:39 AM

Try checking the return values from IsActiveBattlefieldArena when the event fires?

Torhal 08-05-10 07:26 PM

Quote:

Originally Posted by b3vad (Post 201387)
<snip>
how i can find out if this event has been fired for end of arena?

By using the code I supplied above. It will tell you exactly which event just fired instead of saying an event fired.


All times are GMT -6. The time now is 06:18 AM.

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