Thread Tools Display Modes
03-20-10, 03:11 PM   #1
Somberland
A Murloc Raider
Join Date: May 2009
Posts: 4
Achievement - Complete?

Hi there, I'm trying to figure out how I can see that a specific Achievement was completet, I tryed the "GetAchievementCriteriaInfo(ID)" function, but it won't display me the right Achievement for the ID (used the ID's from wowhead).

So can maybe anyone help me with that?

thanks!
  Reply With Quote
03-20-10, 03:38 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Unless I'm misunderstanding you, you are using the incorrect function. GetAchievementCriteriaInfo() is to get info about a specific *criteria* of an achievement (an achievement with multiple steps/things to complete). You are looking for just GetAchievementInfo().
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
03-20-10, 03:43 PM   #3
Somberland
A Murloc Raider
Join Date: May 2009
Posts: 4
1 million thank you's!
tryed to get it work for around 2 hours, looks like I oversight the GetAchievementInfo
  Reply With Quote
03-20-10, 03:52 PM   #4
Somberland
A Murloc Raider
Join Date: May 2009
Posts: 4
Btw, can I also check the Achievemets of other players with this function? Looks like it only display's my Data
  Reply With Quote
03-20-10, 03:58 PM   #5
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,930
Doesn't look like it. Can't see any UnitAchievement or similar on wowwiki at any rate.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
03-20-10, 06:45 PM   #6
Somberland
A Murloc Raider
Join Date: May 2009
Posts: 4
Shouldn't it be possible with GetAchievementComparisonInfo(AchievementID);?

With this code I get a "nil":

Code:
ClearAchievementComparisonUnit(); SetAchievementComparisonUnit("mouseover");
AchievementDoneTarget = GetAchievementComparisonInfo(AchievementID);
print (AchievementDoneTarget);
Edit:// Ok I get it.

Last edited by Somberland : 03-21-10 at 11:09 AM.
  Reply With Quote
03-21-10, 08:33 AM   #7
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
The data from achievements on other players is not available until then event "INSPECT_ACHIEVEMENT_READY" has fired. When you call SetAchievementComparisonUnit(unit) it takes about 0 to 2 seconds before it fires.

I really recommend using ClearAchievementComparisonUnit() before moving onto another unit to avoid any conflict.

Edit1: Don't confuse GetAchievementComparisonInfo() with GetComparisonStatistic() which I did once.

Edit2: There doesn't really seem to be any range on how far you can inspect people, they just need to be "seen" by the client which means UnitExists(unit) and UnitIsVisible(unit) is enough.
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.

Last edited by v6o : 03-21-10 at 08:48 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Achievement - Complete?


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