Solve count macros

Discuss Interface & Macros for archaeology here

Solve count macros

Postby Morpsend » Sat Jun 11, 2011 3:48 pm

Howdy!

This is where us rare farmers get together to update our stats on farming. When I update on my current stats I press the 1 macro, and the 2 macro.

here are the macros I use.

1) Total solve: this will give 2 lines in your chat box.

Code: Select all
/run print("Total artifacts"); local a =0; for x=1,9 do local c=GetNumArtifactsByRace(x); for y=1,c do local t = select(9, GetArtifactInfoByRace(x, y)); a=a+t;end end if(a>0) then print("Total" .. ": " .. a); end


Example:

Total artifacts
Total: 3304

2) Full list: this macro will give you full info for each race.

Code: Select all
/run local g,a,n,c,r=GetArtifactInfoByRace for x=1,9 do r,a,n,c=0,0,GetArchaeologyRaceInfo(x),GetNumArtifactsByRace(x)for y=1,c do a=a+select(9,g(x,y))r=r+select(3,g(x,y))end print(n..': '..c..' (rare: '..r..' solved: '..a..')')end


Example:

Dwarf: 31 (rare: 4 solved: 114)
Draenei: 10 (rare: 2 solved: 13)
Fossil: 17 (rare: 5 solved: 639)
Night Elf: 25 (rare: 7 solved: 1424)
Nerubian: 9 (rare: 2 solved: 21)
Orc: 10 (rare: 1 solved: 11)
Tol'vir: 12 (rare: 5 solved: 710)
Troll: 17 (rare: 3 solved: 313)
Vrykul: 7 (rare: 2 solved: 59)

3) Small list: this macro will give you a list of only total solves for each race.


Code: Select all
/run print("Total artifacts"); for x=1,9 do local c=GetNumArtifactsByRace(x); local a =0; for y=1,c do local t = select(9,GetArtifactInfoByRace(x, y)); a=a+t; end local rn = GetArchaeologyRaceInfo(x); if( c > 1 ) then print(rn .. ": " .. a); end end


example:

Total artifacts
Dwarf: 114
Draenei: 13
Fossil: 639
Night Elf: 1424
Nerubian: 21
Orc: 11
Tol'vir: 710
Troll: 313
Vrykul: 59

Morpsend
Image
User avatar
Morpsend
Forum Mod Elite
 
Posts: 294
Joined: Sat May 28, 2011 6:02 pm

Return to Interface & Macros

Who is online

Users browsing this forum: No registered users and 1 guest

cron