-
Member
LUA Script: Авто принятие фласки | WoW Circle Wrath of The Lich King 3.3.5
pastebin
Code:
function trade()
local flask = {"Настой бесконечной ярости", "Настой ледяного змея", "Настой каменной крови"}
function AcceptTrade()
TradeFrameTradeButton:Click()
end
if TradeFrame:IsShown() then
for i = 1, 6 do
for k, v in ipairs(flask) do
if GetTradeTargetItemInfo(i) == v then
print("Принял фласку!!!")
AcceptTrade();
end
end
end
end end
local f = CreateFrame("Frame")
f:SetScript("OnUpdate", trade)
-
Member
whats this about, we some english here
-
Originally Posted by
dklfcheat
whats this about, we some english here
Code:
function trade ()
local flask = {"Infusion of Infinite Fury," "Infusion of the Ice Snake," "Infusion of Stone Blood"}
function AcceptTrade ()
TradeFrameTradeButton: Click ()
end
if TradeFrame: IsShown () then
for i = 1, 6 do
**** for k, v in ipairs (flask) do
******** if GetTradeTargetItemInfo (i) == v then
************ print ("Took a Flag !!!")
************ AcceptTrade ();
******** end
**** end
end
end end
local f = CreateFrame ("Frame")
f: SetScript ("OnUpdate", trade)
It looks like if any of the items in the flask variable are put into the trade window it immediately accepts the trade your end, without needing to put in any gold/items yourself.
-
Post Thanks / Like - 1 Thanks
tubikkupilnout (1 members gave Thanks to stoneharry for this useful post)