/script local function buy (n,q) for i=1, 100 do if n==GetMerchantItemInfo(i) then BuyMerchantItem(i,q) end end end buy ("название предмета", кол-во)
Например
/script local function buy (n,q) for i=1, 100 do if n==GetMerchantItemInfo(i) then BuyMerchantItem(i,q) end end end buy ("Свеча благочестия", 20)





