[Classic] Enable auto loot when casting Pick Pocket

Hi!

Have been searching around and experimenting a bit. Have been unsuccessful to find a topic/macro directly related to what I want.

What I want to achieve is to keep auto loot disabled by default. When I cast Pick Picket I want it to become enabled and disabled after the action is done.

Have been experimenting with several iterations, but this is the basic idea:

#showtooltip
/script SetCVar(“AutoLootDefault”, 1)
/cast Pick Pocket
/script SetCVar(“AutoLootDefault”, 0)

Either it enables the auto loot and it stays on after the action is done, or it doesn’t turn on. Anyone that have any suggestions here?

2 Likes

Can you try if something like this works

#showtooltip
/run SetCVar("AutoLootDefault", 1); C_Timer.After(1, function() SetCVar("autoLootDefault", 0) end)
/cast Pick Pocket
19 Likes

Thank you so much. Works exactly how I want it!

1 Like

I was also struggling to make this same macro, @Ketho you are a legend.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.