Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • getWalking().walk() Problems


    EncoreAspire

    Recommended Posts

    Posted

    Hey guys randomly this method will have my character walk back and forth while trying to get to the given tile? (He's not actually walking to the given tile, but kind of around it) Dont know why. Is there a way of creating a personal walk path, could any one recommend a tutorial or give me a rundown on how to accomplish this?

    Posted

    if(!tileList.isEmpty){
    if(nextTileToWalkTo == null || distanceToNextTileToWalkTo < 5)
    nextTileToWalkTo = tileList.pop();
    }else{
    if(distanceToDestination < 5)
    stop();
    }

    if(nextTileToWalkTo != null)
    if(getWalking().walk(nextTileToWalkTo))
    sleepUntilSomeCondition();
    Posted
    if(!tileList.isEmpty){
        if(nextTileToWalkTo == null || distanceToNextTileToWalkTo < 5)
            nextTileToWalkTo = tileList.pop();
    }else{
        if(distanceToDestination < 5)
             stop();
    }
    
    if(nextTileToWalkTo != null)
        if(getWalking().walk(nextTileToWalkTo))
            sleepUntilSomeCondition();
    

    grazie,does it have to be a queue? Edit: I suppose thats best huh

    Posted

    grazie,does it have to be a queue? Edit: I suppose thats best huh

    I mean...you asked for a walk path, and that would be a path...of tiles. So, yes?

    Only other way I could think of is writing your own web walker. I don't even know where to start for that...so I can't help you there

    Posted

    :D


    I mean...you asked for a walk path, and that would be a path...of tiles. So, yes?


    Only other way I could think of is writing your own web walker. I don't even know where to start for that...so I can't help you there

    is there a way of overriding the auto enable run in the title method?

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.