Puxar Itens Ao Redor

Descrição

Puxe itens ao seu redor para de baixo do seu personagem.

Autor:

                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
gpPushDelay = 200 -- safe value: 600ms macro(gpPushDelay, "Puxar Lixo", "End", function() push(0, -1, 0) push(0, 1, 0) push(-1, -1, 0) push(-1, 0, 0) push(-1, 1, 0) push(1, -1, 0) push(1, 0, 0) push(1, 1, 0) end) function push(x, y, z) local position = player:getPosition() position.x = position.x + x position.y = position.y + y local tile = g_map.getTile(position) local thing = tile:getTopThing() if thing and thing:isItem() then g_game.move(thing, player:getPosition(), thing:getCount()) end end