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
  • npcs #interact


    Novak

    Recommended Posts

    java.lang.NullPointerException
    	at org.dreambot.api.methods.MethodProvider.getLocalPlayer(MethodProvider.java:23)
    	at org.dreambot.api.methods.input.mouse.destination.EntityDestination.interact(EntityDestination.java:213)
    	at org.dreambot.api.methods.input.mouse.destination.EntityDestination.interact(EntityDestination.java:189)
    	at org.dreambot.api.wrappers.interactive.NPC.interact(NPC.java:158)
    	at nodes.TanNode.execute(TanNode.java:36)
    	at org.dreambot.api.script.impl.TaskScript.onLoop(TaskScript.java:81)
    	at org.dreambot.api.script.AbstractScript.run(AbstractScript.java:125)
    	at java.lang.Thread.run(Thread.java:745)
    
    

    error at:

    NPC tanner = getNpcs().getClosest(3231);
    
    if(tanner.isOnScreen())	
    			{
    				tanner.interact("Trade");
    				//sleep
    			}
    

    why is it throwing this?  the npc is valid and visible(yes the id is correct, but does same thing with string)

    Link to comment
    Share on other sites

    java.lang.NullPointerException
    	at org.dreambot.api.methods.MethodProvider.getLocalPlayer(MethodProvider.java:23)
    	at org.dreambot.api.methods.input.mouse.destination.EntityDestination.interact(EntityDestination.java:213)
    	at org.dreambot.api.methods.input.mouse.destination.EntityDestination.interact(EntityDestination.java:189)
    	at org.dreambot.api.wrappers.interactive.NPC.interact(NPC.java:158)
    	at nodes.TanNode.execute(TanNode.java:36)
    	at org.dreambot.api.script.impl.TaskScript.onLoop(TaskScript.java:81)
    	at org.dreambot.api.script.AbstractScript.run(AbstractScript.java:125)
    	at java.lang.Thread.run(Thread.java:745)
    
    

    error at:

    NPC tanner = getNpcs().getClosest(3231);
    
    if(tanner.isOnScreen())	
    			{
    				tanner.interact("Trade");
    				//sleep
    			}
    

    why is it throwing this?  the npc is valid and visible(yes the id is correct, but does same thing with string)

     

     

    Actually this has to do with getLocalPlayer Node/TaskScript with the current release. It has already been fixed, though the update hasn't been push. For the meanwhile, a way to get around this is by getPlayers.myPlayer.

     

    Though I promise this will be fixed in the upcoming update, which will be hopefully early tomorrow morning.

     

    Also, for further issues/errors, you can use our tracker: http://dreambot.org/forums/index.php?/tracker/project-3-dreambot/

    Link to comment
    Share on other sites

    You should also be doing a null check before tanner.isOnScreen();

    there is one in the accept method, thank you though

    Actually this has to do with getLocalPlayer Node/TaskScript with the current release. It has already been fixed, though the update hasn't been push. For the meanwhile, a way to get around this is by getPlayers.myPlayer.

     

    Though I promise this will be fixed in the upcoming update, which will be hopefully early tomorrow morning.

     

    Also, for further issues/errors, you can use our tracker: http://dreambot.org/forums/index.php?/tracker/project-3-dreambot/

    the execute method does not even have a getLocalPlayer or getPlayers method which is why I'm confused as to why its happening 

    Link to comment
    Share on other sites

    there is one in the accept method, thank you though

    the execute method does not even have a getLocalPlayer or getPlayers method which is why I'm confused as to why its happening 

     

    Interacting calls for the player, just look at the stack trace :)

    Link to comment
    Share on other sites

    Interacting calls for the player, just look at the stack trace :)

    so i will have to wait until the next update for npc interaction to work?

    Link to comment
    Share on other sites

    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.