Drop Lixos

Descrição

Jogar Itens ( Lixo ) no chão

Autor:

                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
UI.Label("Itens Lixo:") if type(storage.trashItems) ~= "table" or not storage.trashItems then storage.trashItems = {283, 284, 285} end local dropContainer = UI.Container(function(widget, items) storage.trashItems = items end, true) dropContainer:setHeight(35) dropContainer:setItems(storage.trashItems) macro(200, "Drop Itens", function() if not storage.trashItems[1] then return end for _, container in pairs(g_game.getContainers()) do for __, item in ipairs(container:getItems()) do for i, trashItem in ipairs(storage.trashItems) do if item:getId() == trashItem.id then return g_game.move(item, pos(), item:getCount()) end end end end end)