Thread Tools Display Modes
06-26-11, 02:42 PM   #1
logaholic
A Fallenroot Satyr
Join Date: Mar 2010
Posts: 21
achievement tracking

just wondering if it can get fixed, as im sure its a easy fix. Or at least what needs to be changed in the code while awaiting a new version to come out:

Currently when trying to track the achievement "Got my mind on my money" the carbonite tracker displays the number in copper and would rather not see it display 755750466 / 1000000000

And im only assuming its a easy fix for it to display 75575g 4s 66c / 100000g

edit: just having it show that large copper number is kinda demeaning
 
06-26-11, 03:11 PM   #2
Chmee
A Molten Giant
Join Date: Dec 2006
Posts: 960
Demeaning? Nonsense!

If the goal is 10000 gold, and you already have 75000+, you have a bigger problem than "it displays in coppers!"
 
06-27-11, 12:38 AM   #3
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
Doable in the front end but perhaps changing one API could also work (not tested):

Code:
local gold = {
  [1176] = 1, -- 100g
  [1177] = 1, -- 1000g
  [1178] = 1, -- 5000g
  [1180] = 1, -- 10000g
  [1181] = 1, -- 25000g
  [5455] = 1, -- 50000g
  [5456] = 1, -- 100000g
  [1182] = 1, -- 10000g (quest rewards)
  [5752] = 1, -- 30000g (quest rewards)
}
local oAchCritInfo = GetAchievementCriteriaInfo
function GetAchievementCriteriaInfo(id, i, ...)
  if not i then return oAchCritInfo(id, i, ...) end
  local ach = {oAchCritInfo(id, i, ...)}
  if gold[id] then
    ach[4] = GetDenominationsFromCopper(ach[4])
    ach[5] = GetDenominationsFromCopper(ach[5])
  end
  return unpack(ach)
end
Only problem I can think of is that the addons can expect number values from these specific achievements yet with this override they will get strings and may fail and result in errors -still trying won't hurt. ;P
 
06-27-11, 03:11 PM   #4
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,364
That achievement is actually for looting 100,000g. For some odd reason if you track it in Carbonites watch window the amounts appears in all copper denomination. If you track it through Blizzards objectives tracker, however, it appears in the proper g, s, c display. Weird.
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?


Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.
Carbonite-CLASSIC<----- GitHub link to Carbonite Classic. Thanks to ircdirk for this!
 
 

WoWInterface » Featured Projects » Carbonite » Carbonite Archive » achievement tracking


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