Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stack items
#1
Please, Config for stack itens


auto(250)
if not g_game.isOnline() then return end
local items = {}
local containers = g_game.getContainers()
for _, container in pairs(containers) do
if container and container:getItemsCount() > 0 then
local containerItems = container:getItems()
for _, item in pairs(containerItems) do
if item and item:getCount() < 100 and item:isStackable() then
if not items[item:getId()] then
items[item:getId()] = {}
end
table.insert(items[item:getId()], item)
end
end
end
end

for v, k in pairs(items) do
  if #k > 1 and k[2] and k[1] then
    g_game.moveItem(k[2], k[1]:getPosition(), k[2]:getCount())
    sleep(250)
  end
end
Reply

#2
stackitems(optional string location, optional boolean onlyOnce, optional string itemName) [void]: Try to stack items on defined container.
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016