Results 1 to 9 of 9

Thread: Anti Push

  1. #1
    Normal User
    Join Date
    Jan 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3

    Anti Push

    if someone pushes you, the bot should walk itself to the last location back.

    Example:

    if islocation (x,y,z) = false
    then
    reachlocation (x,y,z)
    end

    But this way doesnt work.

  2. #2
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    PHP Code:
    if not islocation() then
    reachlocation
    (x,y,z)
    end 
    or

    PHP Code:
    if posx ~= or posy ~= y then
    reachlocation
    (x,y,z)
    end 
    Last edited by shanp; 01-24-2014 at 12:38 PM.

  3. #3
    Normal User
    Join Date
    Jan 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    if not islocation() then
    reachlocation(x,y,z)
    end

    i tried this, but if i push my char away from the location, he doesnt move back.

    i need this action for (32208,32295,6)
    for checking the world board at adventurer guild.

    If i push my char to (32208,32294,6) he doesnt move back to (32208,32295,6)
    Last edited by Xray_2014; 01-24-2014 at 01:19 PM.

  4. #4
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    try my second proposal

  5. #5
    Normal User
    Join Date
    Jan 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    if posx ~= x or posy ~= y then
    reachlocation(x,y,z)
    end

    So how do i write it then?
    like this?

    if posx ~= 32209 or posy ~= 32294 then
    reachlocation(32208,32295,6)
    end

    Because with this it doesnt work aswell.

  6. #6
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    PHP Code:
     local x 32208
    local y 
    32295
    local z 
    6
    if posx ~= or posy ~= y then
    reachlocation
    (x,y,z)
    end 
    x,y,z are coordinates where you want to stand

  7. #7
    Normal User
    Join Date
    Jan 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    doesnt work aswell.

    Thats my code:


    " Actions
    List
    Anti-Push
    Script
    local x = 32208;
    local y = 32295;
    local z = 6
    if posx ~= x or posy ~= y
    then
    reachlocation(x,y,z)
    end
    /Script
    SpamRate 800 to 1000 /SpamRate
    Enabled yes /Enabled
    /Anti-Push
    /List
    Setup /Setup
    Enabled yes/Enabled
    /Actions
    "
    Anything wrong there,no or?
    Last edited by Xray_2014; 01-24-2014 at 02:19 PM.

  8. #8
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    its ok but reachlocation not comming into x,y,z position, just reaching them when hes moved more then 1 sqm

    you cant put it to cavebot?

    stand - your location
    action wait(1000)

    and set cavebot to yes
    Last edited by shanp; 01-24-2014 at 02:29 PM.

  9. #9
    Normal User
    Join Date
    Jan 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    I got it there also, but problem is if some1 pushes me here, the bot does not working directly back there,
    thats why i wanted to try an action.

Posting Permissions

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