Anti Push: diferenças entre revisões
Saltar para a navegação
Saltar para a pesquisa
(Criou a página com "<span style="font-size: 18px;">Voltar</span> <div class="mw-custom-box"> '''Script Lua:''' <pre> UI.Separator() local dropItems = { 3031 } local maxStackedItems = 3 gpAntiPushDrop = macro(500, "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 the...") |
Sem resumo de edição |
||
(Há uma edição intermédia do mesmo utilizador que não está a ser apresentada) | |||
Linha 36: | Linha 36: | ||
end | end | ||
end | end | ||
end | end | ||
</pre> | </pre> | ||
</div> | </div> | ||
Linha 45: | Linha 45: | ||
[[File:v.png|12px]] Inserir a macro em Tolls > Ingame script editor (Caso possua outros scripts, você deverá rolar a barra até o final, saltar alguns espaços e colar o nome em seguida). | [[File:v.png|12px]] Inserir a macro em Tolls > Ingame script editor (Caso possua outros scripts, você deverá rolar a barra até o final, saltar alguns espaços e colar o nome em seguida). | ||
[[file: | [[file:Anti Push.png]] | ||
[[File:v.png|12px]] | [[File:v.png|12px]] Ter Gold coins em sua Backpack aberta. |
Edição atual desde as 12h36min de 16 de setembro de 2023
Script Lua:
UI.Separator() local dropItems = { 3031 } local maxStackedItems = 3 gpAntiPushDrop = macro(500, "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(), 2) end end end end end end
Para que a macro funcione corretamente, será necessário:
Inserir a macro em Tolls > Ingame script editor (Caso possua outros scripts, você deverá rolar a barra até o final, saltar alguns espaços e colar o nome em seguida).