Requirements:
To have the recipient automatically accept what you send them, use the AutoTrade addon.
http://www.curse.com/addons/rom/autotrade
Syntax:
You can use any one of a number of formats.
- A single item. (An 'item' such as is returned from inventory:findItem.
- tradeTo("recipient", item)
- tradeTo("recipient", {item1, item2, item3})
- tradeTo("recipient", "itemname" [,number])
- tradeTo("recipient", itemid [,number])
- tradeTo("recipient", {"itemname1", "itemname2", itemid1, itemid2}[, number])
Send 9 Fusion Stones or Random Fusion Stones.
Code: Select all
tradeTo("recipient",{"Fusion Stone","Random Fusion Stone"}, 9)
Code: Select all
tradeTo("recipient", 202846)
Code: Select all
local item
for slot = 61, 240 do
item = self.BagSlot[slot]
item:update()
if item.Name == "Magicbreath Belt" and item.Stats > 3 then
tradeTo("recipient", item)
break
end;
end;
Code: Select all
local item
local itemtable = {}
for slot = 61, 240 do
item = self.BagSlot[slot]
item:update()
if item.Bound == false and item.Stats > 3 then
table.insert(itemtable, item)
end;
end;
tradeTo("recipient", itemtable)
Jandrana for the initial version of the function.