Massive buying macro
Quote:
Of course, you can edit the quantity. You can test by 1 unit. I used this macro to buy by 1000 units. Like this, Quote:
|
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.
Code:
/run local C={GetCursorInfo()}if C and (C[1]=="merchant")then BuyMerchantItem(C[2],20)PickupMerchantItem(C[2])end |
It's a 3 option macro which could be used often.
You can buy 1000 units by executing this macro when pressing Ctrl key, 20 units when pressing Alt key. And default quantity is 100 units. Code:
/run C={GetCursorInfo()}if C and (C[1]=="merchant")then a=100;if IsControlKeyDown()then a=1000;end;if IsAltKeyDown()then a=20;end;BuyMerchantItem(C[2],a)PickupMerchantItem(C[2])end |
And without making your variables 'C' and 'a' local you can run in situations that are not predictable.
Especially when you have one of the following (luckily mostly outdated) addons C: https://www.townlong-yak.com/globe/wut/#q:C a: https://www.townlong-yak.com/globe/wut/#q:a |
There is no 255 units limitation. You can buy 1000 units fully by executing this macro when pressing Ctrl key.
You can buy 100 units when pressing Alt key. And to buy stack by stack, default quantity is the maximum stack size of that item.( e.g) 1, 20, 200) Code:
/run C={GetCursorInfo()}if C and C[1]=="merchant"then i=C[2]p=GetMerchantItemMaxStack(i)a=p;if IsControlKeyDown()then a=1000;end;if IsAltKeyDown()then a=100;end;t=a/p;if a<p then t=1;p=a;end;for k=1,t do BuyMerchantItem(i,p)end;PickupMerchantItem(i)end |
is it me or is this guy just repeating himself
|
If you can't see what's the difference, sorry, it may be not for you.
|
All times are GMT -6. The time now is 02:43 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI