WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Macro Help (https://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   Buy Specific Item (https://www.wowinterface.com/forums/showthread.php?t=51929)

r3yn01ds 02-18-15 04:58 PM

Buy Specific Item
 
Hello there. I would like a macro that will buy for me a specific item.
I dont want "/script BuyMerchantItem(x , {x})" , because the item is not insale hole time, it has cooldown to respawn in vendor. So i would like a /script BuyMerchantItem that works for exact item's name. Thanks.
:confused:

Banknorris 02-18-15 06:06 PM

Code:

/run MerchantFrame_SetFilter(MerchantFrame,1)for i=1,GetMerchantNumItems()do if GetMerchantItemInfo(i)=="XXXXXXXX"then BuyMerchantItem(i)end end
Replace XXXXXXXX by the name of your item (keep quotes).

r3yn01ds 02-19-15 06:13 AM

Thanks
 
Thanks for respond. It works fine.:banana:


All times are GMT -6. The time now is 09:52 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI