Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- macro(175, "Pull Items", function()
- local trashitem = nil
- for _, tile in pairs(g_map.getTiles(posz())) do
- if distanceFromPlayer(tile:getPosition()) == 1 and #tile:getItems() ~= 0 and not tile:getTopUseThing():isNotMoveable() then
- trashitem = tile:getTopUseThing()
- g_game.move(trashitem, pos(), trashitem:getCount())
- return
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement