Now this requires a very specific setup and im using it for Archeology Botting, Its prob not the best way to handle this but was fun to learn how to do it so here it goes.
This is a compileation of 6 macros. The first 5 have to be set on the Bottom Left Actionbar that is enabled in the Interface menu. Macro 6 can be anywhere
Macro1:
Code:
/run part1 = ("itemids = {};itemcount = {}; v=0 for i=0,4 do for j=1,GetContainerNumSlots(i)do n=(GetContainerItemLink(i,j)or'') if(not n:find ('fdf')) then do itemcount[v] = select(2,GetContainerItemInfo(i,j)) do itemids[v] = ");
/click ActionButton2
Macro2
Code:
/run part2 = ("GetContainerItemID(i,j) v = (v+1) end end end end end;");/click ActionButton3
Macro3
Code:
/run value = 0;
/run RunScript(part1 .. part2);
/click ActionButton4
Macro4
Code:
/run i=0; k=#itemcount;ic=0; while i <= k do value = (value+(select(11,GetItemInfo(itemids[i]))*itemcount[i])) i=(i+1) end ;
/click ActionButton5
Macro5
Code:
/script
/run SendChatMessage(("I have %dg %ds %dc"):format(value / 100 / 100, (value / 100) % 100, value % 100), "WHISPER", "ORCISH", "Novaior");
/run value=0;
/changeactionbar 1
Macro6
Code:
/changeactionbar 6
/click MultiBarBottomLeftButton1
Check it out and let me know what you think, also taking all macro requests and if you can make this cleaner im up for suggestions