#I WANT TO BUY YOU THE SCRIPT TO LOOT ITEMS FROM THE GROUND!! CONTACT ME PLEASE

1 messages · Page 1 of 1 (latest)

torpid roostBOT
#
celauro has been warned

Reason: Capital letters

quick mauve
#
    pickUp = { 3031, 3035, 3043 }, -- ITEMS TO PICK UP
    CheckPOS = 3 -- DISTANCE
}
local macrotime = 200 -- DELAY MACRO
macro(macrotime, "Free Items", function()
  for x = -c.CheckPOS, c.CheckPOS do
    for y = -c.CheckPOS, c.CheckPOS do
    local tile = g_map.getTile({x = posx() + x, y = posy() + y, z = posz()})
      if tile then
      local things = tile:getThings()
        for i, item in pairs(things) do
          if table.find(c.pickUp, item:getId()) then
            local containers = getContainers()
            for _, container in pairs(containers) do
              g_game.move(item, container:getSlotPosition(container:getItemsCount()), item:getCount())
              break
            end
          end
        end
      end
    end
  end
end)```