Talk:API GetNumArtifactsByRace

One client has problems: /run c=GetNumArtifactsByRace(8);print("Troll artefacts:"..c); gives 1 /run c=select(9,GetArtifactInfoByRace(8, 1));print("1st troll art count:"..c); gives 0

The goal: /run local s=0;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;s=s+t;end local rn=GetArchaeologyRaceInfo(x);if( c > 1 ) then print(rn..":"..a);end end print("Total:"..s);

so the script above does not work (he has 525 skill and collected a lot in Eastern Kingdoms]

what can this be?

AngelicCare (talk) 09:06, 28 March 2011 (UTC)