WoWInterface - View Single Post - Massive buying macro
View Single Post
08-19-20, 11:30 AM   #2
Fishing Trainer
Seerah's Avatar
WoWInterface Super Mod
Join Date: Oct 2006
Posts: 10,797
Stick a local in front of your declaration of the C variable so that your macro doesn't collide with any other poorly named leaked globals also named C in any addons you use.

/run local C={GetCursorInfo()}if C and (C[1]=="merchant")then BuyMerchantItem(C[2],20)PickupMerchantItem(C[2])end
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote