Couldn't decide if this belongs here or in another section of the forums, so adjust accordingly.
There is a macro I found on the forums that basically just counts the items you mine (Coal, Redstone etc).
I have everything setup properly (or so I thought) but it doesn't seem to be registering the items I'm picking up.
My question is, is %PICKUPITEM% even valid?
I see no mention of it in the Macromod documentation, but that doesn't surprise me. There being no real mention of it on the net though, makes me think it's no longer valid.
I attempted using itemID's (as a last resort since they have been removed), the proper item names (Redstone_Ore, Coal_Ore, Iron_Ore etc.) as well as the default names included with the script.
My label names are correct. I have attempted just adding 1 (int) to the variable, no go there.
My other question is, is if %PICKUPITEM% is not the right method (function, call, w/e), is there one that works the same if not similar?
For your convenience, here's the code:
Code:$${ IF(%PICKUPITEM% = "Coal") @#coal = @#coal + 1 SETLABEL(Stats_Coal,Coal: %@#coal%) ENDIF IF(%PICKUPITEM% = "Iron_Ore") @#iron = @#iron + %PICKUPAMOUNT% SETLABEL(Stats_Iron,Iron: %@#iron%) ENDIF IF(%PICKUPITEM% = "Gold_Ore") @#gold = @#gold + %PICKUPAMOUNT% SETLABEL(Stats_Gold,Gold: %@#gold%) ENDIF IF(%PICKUPITEM% = "dye:4") @#lapis = @#lapis + %PICKUPAMOUNT% SETLABEL(Stats_Lapis,Lapis: %@#lapis%) ENDIF IF(%PICKUPITEM% = "lit_redstone_ore") @#redstone = @#redstone + %PICKUPAMOUNT% SETLABEL(Stats_Redstone,Redstone: %@#redstone%) ENDIF IF(%PICKUPITEM% = "Diamond_Ore") @#diamond = @#diamond + %PICKUPAMOUNT% SETLABEL(Stats_Diamond,Diamond: %@#diamond%) ENDIF IF(%PICKUPITEM% = "Emerald_Ore") @#emerald = @#emerald + %PICKUPAMOUNT% SETLABEL(Stats_Emerald,Emerald: %@#emerald%) ENDIF }$$
Thread Tools
Thread Tools
-
-
This is an old and abandoned macro, this functionality has been added to www.tinyurl.com/314sMacro inside the Statistics macro. I wouldn't recommend to use this version, although it should still work.
I have, however, seen a few problems with SETLABEL() recently. I don't know whether that could be the reason.