Signup Now
Results 1 to 9 of 9

Thread: Anti Push

  1. #1
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26

    Anti Push

    Anti Push Hotkey

    Description:

    Throw specified count of items under Your character.
    As far i know there's many people who fight in wars etc. so i've made this simple hotkey for You..

    Configuration:

    Edit trash variable to items you want to drop.
    Edit trashCount variable to set how many items drop per once.
    Edit trashBp variable to set in which backpack are specified items.
    Edit clickWait and pressWait variables to set mouse and keyboard delay.

    Note: windbot is great tool to do fast and safe things but You shouldn't walk while hotkey is enabled !

    Copy code below and paste in Scripter -> Hotkeys, set the key for enable / disable.

    init start
    -- Items which you want throw:
    local trash = {'gold coin', 'worm'}

    -- Count of trash to throw:
    local trashCount = 2

    -- Backpack with trash:
    local trashBp = ('Backpack of Holding')

    -- Waiting time: (mouse and keyboard settings)
    local clickWait = {10, 30} -- it means X to X ms
    local pressWait = {10, 30} -- it means X to X ms


    -- Don't touch below!
    setsetting('Settings/MouseMoveSpeed', 'Instantaneous')
    setsetting('Settings/ScrollMode', 'Click on scrollbar')
    setsetting('Settings/ClickWaitTime', tostring(clickWait))
    setsetting('Settings/PressWaitTime', tostring(pressWait))

    table.id(trash)
    init end


    auto(10)

    for i,j in ipairs(trash) do
    if itemcount(unpack(trash), trashBp) > 1 then
    Self.MoveItems(j, 'ground', trashBp, trashCount) waitping(1, 1.5)
    end
    end

  2. #2
    Free User proxye's Avatar
    Join Date
    Mar 2014
    Posts
    5
    Reputation
    10
    Rep Power
    0
    i will try, thx for this!

  3. #3
    Free User
    Join Date
    Feb 2014
    Posts
    26
    Reputation
    10
    Rep Power
    0
    works perfectly! thank u

  4. #4
    Banned
    Join Date
    Mar 2014
    Location
    Libera
    Posts
    327
    Reputation
    11
    Rep Power
    0
    How come it doesn't work with empty potions? I put in
    init start
    -- Items which you want throw:
    local trash = {'gold coin', 'empty potion flask'}

    -- Count of trash to throw:
    local trashCount = 2

    -- Backpack with trash:
    local trashBp = ('Red Backpack')

    -- Waiting time: (mouse and keyboard settings)
    local clickWait = {10, 30} -- it means X to X ms
    local pressWait = {10, 30} -- it means X to X ms


    -- Don't touch below!
    setsetting('Settings/MouseMoveSpeed', 'Instantaneous')
    setsetting('Settings/ScrollMode', 'Click on scrollbar')
    setsetting('Settings/ClickWaitTime', tostring(clickWait))
    setsetting('Settings/PressWaitTime', tostring(pressWait))

    table.id(trash)
    init end


    auto(10)

    for i,j in ipairs(trash) do
    if itemcount(unpack(trash), trashBp) > 1 then
    Self.MoveItems(j, 'ground', trashBp, trashCount) waitping(1, 1.5)
    end
    end
    But I get an error it throws coins but no empty pots?

  5. #5
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    @Fermonos try local trash = {'gold coin', 283, 284, 285}
    Last edited by mistgun; 09-26-2014 at 06:21 PM.

  6. #6
    Banned
    Join Date
    Mar 2014
    Location
    Libera
    Posts
    327
    Reputation
    11
    Rep Power
    0
    Quote Originally Posted by mistgun View Post
    @Fermonos try local trash = {'gold coin', 283, 284, 285}
    This doesn't work at all, I don't get an error message this time but it doesn't throw coins or pots either xD

    Edit-
    Forgot to add the correct backpack. When I did got an error, didn't throw any gold or pots

    19:22:56 error in Hotkey script Anti push:
    [" local trashCount = 2"]:Anti push:6: '}' expected (to close '{' at line 3) near 'local'
    Last edited by Fermonos; 09-26-2014 at 06:30 PM.

  7. #7
    Free User Benya's Avatar
    Join Date
    Dec 2013
    Posts
    274
    Reputation
    29
    Rep Power
    21
    What is the lowest ms settings you can use? And what is safe?

  8. #8
    Wind Powered
    Join Date
    Feb 2016
    Location
    Brasil
    Posts
    121
    Reputation
    12
    Rep Power
    17
    Works perfectly!

    Thank you

  9. #9
    Free User downloadkct's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    1,167
    Reputation
    25
    Rep Power
    23
    thanks for this, ill try it later
    Old 'n Proud Neobot-Elfbot and blackd user

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •