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
  • Check Home Teleport Cooldown


    Recommended Posts

    Hi Guys, 
    new to bot scripting and Java.

    I've checked the API's Java docs and the forums for all of the search terms I can think of but can't find a simple way to determine if the home teleport is on cooldown, or even if the Home teleport has failed because of a cooldown.

    Before I try to interrogate the chat box to see if there is a cooldown message, or check the current users tile, before/after teleport to determine success is there a simpler/more elegant solution to determining if a user can use the home teleport or not?


    Link to comment
    Share on other sites

    i think the easiest way would be to listen for the chat message after interacting with the spell because it sends the game message saying youre unable to use it. i think that is the only check available for using the home teleport. you can implement the ChatListener then use the onGameMessage function it provides

    Link to comment
    Share on other sites

    The message listener approach would probably be the best, but there are other options. 

    Another option could maybe be to wait till your character no longer does the home teleport animation. But it's not a very elegant solution. After making sure you have clicked the home teleport spell;


    MethodProvider.sleep(700, 900);
    MethodProvider.sleepUntil((() -> Client.getLocalPlayer().getAnimation() != 1234), 3000);




    Link to comment
    Share on other sites

    Not that I know of. As others have said: parse the cooldown message extract and the remaining time/save timestamp after teleporting and base your logic on that. Works great.

    Link to comment
    Share on other sites


    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.