Puxar Item

Descrição

Puxa o item no chão de baixo do personagem pra sua bag.

Autor:

                macro(100, "Puxar item pra bag", function()
  local tile = g_map.getTile(pos())
  if tile then
    for _, item in ipairs(tile:getItems()) do
      if item:isPickupable() then
        if g_game.move(item, {x=65535, y=SlotBack, z=0}, item:getCount()) then
          delay(100)
        end
      end
    end
  end
end)