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
  • Can't get to work tab switch


    Recommended Posts

    I want to change from inventory to magic tab and cast teleport to house.


    here is my code, which doesn't do anything.

    public void teleport(){
    if(!getTabs().isOpen(Tab.MAGIC)){         //openwithFkey optional later
    Magic teleport = new Magic(null);


    any help appreciated
    Link to comment
    Share on other sites

    Is your teleport() even being called? Check debug console for any errors


    yeh in debugger it sais 

    • [ERROR]01:51:56: Exception has occurred while running! Please report error to developer if problem persists: java.lang.NullPointerException at org.dreambot.api.methods.magic.Magic.castSpell(Magic.java:30) at ayMain.Main.teleporttohouse(Main.java:177) at ayMain.Main.onLoop(Main.java:266) at org.dreambot.api.script.AbstractScript.run(AbstractScript.java:223) at java.lang.Thread.run(Unknown Source)   
    Link to comment
    Share on other sites

    Should be fixed, restart your client and try again.


    didn't work.

    just tried with Teleport to house tabs and it works. 


    But i'd like it to change tabs and cast teleport to house spell

    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.