Advertisement
martintokio

Untitled

Feb 6th, 2023
998
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. macro(175, "Pull Items", function()
  2.     local trashitem = nil
  3.     for _, tile in pairs(g_map.getTiles(posz())) do
  4.         if distanceFromPlayer(tile:getPosition()) == 1 and #tile:getItems() ~= 0 and not tile:getTopUseThing():isNotMoveable() then
  5.             trashitem = tile:getTopUseThing()
  6.             g_game.move(trashitem, pos(), trashitem:getCount())
  7.             return
  8.         end
  9.     end
  10. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement