How to get ArenaData without manually inspecting.(SOLVED)

Locked and being moved to appropriate class sections

How to get ArenaData without manually inspecting.(SOLVED)

Postby DaggerSized » 03 Mar 2014, 22:01

Hello AT Community,

# I have been searching around, but I haven't found the answer to my problem.
# I am not good at scripting.
I want a macro/script to instantly return ArenaTeamData of a unit(player) by simply targeting a unit .

So far the only way I have been able to get ArenaTeamData is by inspecting a target and then (MANUALLY!) go to the PvP Panel of this unit, so I need a command to open the PvP Panel of a Unit.
A method I think that should work is by requesting the 'server' to send this ArenaTeamData with the command : "RequestInspectHonorData()". This command doesn't work for me, I think this because of the following script:
________________________________________________________
/script RequestInspectHonorData() print( HasInspectHonorData() )
________________________________________________________
If I use this script when I am targeting a Unit, it returns "Nil"
If I use this script when I am inspecting a Unit his PvP Panel, it returns "1"

Because the "HasInspectHonorData()" returns true when I simply inspect someone their PvP Panel, it is sure there is some code or command for it.

An answer to any of these questions can help:
1. Is there a command/way to open the PvP Panel of a Unit without manually clicking?
2. Am I using the command "RequestInspectHonorData()" properly?
3. Did AT change the "RequestInspectHonorData()" (if that is possible)?
4. Is there an other way of querying the AT-server for ArenaTeamData of a unit?

Thank you for your time. :)

Greetings,
Daggersized
Last edited by DaggerSized on 04 Mar 2014, 13:29, edited 3 times in total.
User avatar
 
Posts: 3
Joined: 03 Mar 2014, 21:10
 

Re: How to get ArenaTeamData without manually inspecting.

Postby cdscds » 03 Mar 2014, 22:21

/script for i=1,3 do t,s,r,_,_,_,_,_,_,ra=GetArenaTeam(i) ChatFrame1:AddMessage(""..s.."v"..s.." - "..t..": "..r.." (Rank "..ra..")") end

do this
User avatar
 
Posts: 5
Joined: 03 Mar 2014, 19:15
 

Re: How to get ArenaTeamData without manually inspecting.

Postby DaggerSized » 03 Mar 2014, 23:09

Hi cdscds,

Thank you for this fast response.
This script works, but it returns the ArenaTeamData of myself.

The script I want to make returns the ArenaTeamData of someone else I am targeting.
So my problem is to acquire the information of someone else his Arena Teams without manually inspecting.

Please take a look at my first post again and the three questions. Let me know if I have to be more specific.
User avatar
 
Posts: 3
Joined: 03 Mar 2014, 21:10
 

Re: How to get ArenaData without manually inspecting.(UNSOLV

Postby Neemeroth » 04 Mar 2014, 11:43

What data are you interested in exactly ?
Holeeh
User avatar
 
Posts: 40
Joined: 27 Oct 2012, 14:56
Location: EU
 

Re: How to get ArenaData without manually inspecting.(UNSOLV

Postby Kouia » 04 Mar 2014, 12:22

You're trying to monitor your TargetUnit's ArenaTeams(-ratings) without "manually inspecting" the PVP - Tab I presume?

Kinda like this?
http://oi57.tinypic.com/2mg73ud.jpg

The Code:
http://pastebin.com/A5daqV3p

It seems to take a while to get the required Information from GetInspectArenaTeamData hence the OnUpdate function (Could this be caused by the InspectFrame and / or PvPTab not loading instantly?). I'd be really interested on how to acquire these Information (if possible) without all the Inspect trouble.
User avatar
 
Posts: 14
Joined: 17 Feb 2013, 03:22
 

Re: How to get ArenaData without manually inspecting.(UNSOLV

Postby DaggerSized » 04 Mar 2014, 13:26

Hi Kouia,

That is exactly what i needed!

Script to open the PvP-Panel of your target:
__________________________________________________
/script InspectFrame_Show('target') InspectSwitchTabs(2)
__________________________________________________
So there is actually a simple script to open the PvP-panel -,-. Anyway, thank you!

Yeah, the script has a latency of 0.2 seconds it seems like. Just enough time to download the ArenaTeamData of the Unit, before this script starts processing this information.

For your last question:
To acquire this information, it must be queried. When you inspect someone his PvP-Panel, your WoW-game client queries HonorData and ArenaTeamData from some server where all the data is saved. This data will be downloaded and it gets implemented in the game.
By opening someone his PvP-Panel this data is also queried.
I believe on the official WoW server this data can be queried with "RequestInspectHonorData()" (So no inspect is required). Dunno if something like this works on AT.

It is explained here:
https://github.com/Blizzard/api-wow-docs
User avatar
 
Posts: 3
Joined: 03 Mar 2014, 21:10
 

Return to Macros

Who is online

Users browsing this forum: No registered users and 6 guests