Thread Tools Display Modes
07-25-10, 12:55 PM   #1
b3vad
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 21
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
  Reply With Quote
07-27-10, 12:56 AM   #2
b3vad
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 21
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?
  Reply With Quote
07-27-10, 01:13 AM   #3
voodoodad
Large, Friendly Letters!
 
voodoodad's Avatar
Join Date: Oct 2008
Posts: 1,632
12 hours isn't a whole lot of time to wait for a reply from someone with that very specific knowledge.
__________________

~ no need to make the message completely obnoxious - Cairenn
  Reply With Quote
07-27-10, 01:55 AM   #4
Psychophan7
A Chromatic Dragonspawn
Join Date: Feb 2006
Posts: 153
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
  Reply With Quote
07-30-10, 12:35 AM   #5
b3vad
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 21
Originally Posted by voodoodad View Post
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 .
Originally Posted by Psychophan7 View Post
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?
  Reply With Quote
08-04-10, 08:13 PM   #6
Ferous
Sheer Sense of Doom
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 863
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

?
  Reply With Quote
08-04-10, 09:33 PM   #7
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
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)
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote
08-05-10, 03:38 AM   #8
Ferous
Sheer Sense of Doom
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 863
So much smarter than me Torhal :P
  Reply With Quote
08-05-10, 03:47 AM   #9
b3vad
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 21
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?
  Reply With Quote
08-05-10, 04:39 AM   #10
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
Try checking the return values from IsActiveBattlefieldArena when the event fires?
  Reply With Quote
08-05-10, 07:26 PM   #11
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
Originally Posted by b3vad View Post
<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.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » end of arena event?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off