gpedro
(Global Moderator)
******

Registration Date: 06-29-2020
Date of Birth: Not Specified
Local Time: 10-27-2021 at 06:17 PM
Status: (Hidden)

gpedro's Forum Info
Joined: 06-29-2020
Last Visit: (Hidden)
Total Posts: 47 (0.1 posts per day | 2.39 percent of total posts)
(Find All Posts)
Total Threads: 7 (0.01 threads per day | 0.87 percent of total threads)
(Find All Threads)
Time Spent Online: (Hidden)
Members Referred: 0
Total Likes Received: 24 (0.05 per day | 5.1 percent of total 471)
(Find All Threads Liked ForFind All Posts Liked For)
Total Likes Given: 9 (0.02 per day | 1.95 percent of total 462)
(Find All Liked ThreadsFind All Liked Posts)
Reputation: 27 [Details]
  
gpedro's Most Liked Post
Post Subject Numbers of Likes
[Anti-Push] drop gold and worms to your position 6
Thread Subject Forum Name
[Anti-Push] drop gold and worms to your position Scripts
Post Message
Install:
Just copy and paste on Bot > Tools > Ingame macro editor

Usage:
Go to Bot > Tools. Push the button "anti push" to enable/disable the system.

Note:
1. You need to keep your backpack opened.
2. If you got kicked, try to increase the value of the dropDelay variable.
3. If you want to add more items to drop, add client item id to dropItems variable.

Script:
Code:
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


[Image: https://i.imgur.com/CZhYODA.gif]