Ant Push

Descrição

Evite ser arrastado por players, jogue itens de baixo do seu persongem

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
25
26
27
28
29
30
31
32
local dropItems = { 3492, 3031 } local maxStackedItems = 10 local dropDelay = 600 gpAntiPushDrop = macro(dropDelay , "anti push", function () antiPush() end) onPlayerPositionChange(function() antiPush() end) function antiPush() if gpAntiPushDrop:isOff() then return end local tile = g_map.getTile(pos()) if tile and tile:getThingCount() < maxStackedItems then local thing = tile:getTopThing() if thing and not thing:isNotMoveable() then for i, item in pairs(dropItems) do if item ~= thing:getId() then local dropItem = findItem(item) if dropItem then g_game.move(dropItem, pos(), 1) end end end end end end