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
  • Interacting with non-visible ground items


    Scorpius

    Recommended Posts

    Has anyone noticed problems with interacting with ground items that are not showing on top of other items or is it just me? I'm simply using .interact("Take") and it keeps spinning around the camera

     

    Example: I cannot take the monk's robe using .interact("Take"), I must trigger a right click on the monk's robe tile (or a ground item that's being rendered on top of the monk's robe) in order to have the menu showing then I am able to interact with it using getClient().getMenu()

     

    NOTE: The list on the right is me (NOT THE SCRIPT) right clicking to show you that the item exists as detected by getGroundItems()

    cOI5Vtr.png

    I just tested the method and it seems to be working fine? Mind showing your code.

     

    https://gyazo.com/089d5844e119e77d32311f16856296f6

     

    Edit: I actually copied your situation to the item and it worked perfectly, there is something wrong with your code.

     

    https://gyazo.com/2f824857736892a1a6d46dd3316cac05

    Link to comment
    Share on other sites

    I just tested the method and it seems to be working fine? Mind showing your code.

     

    https://gyazo.com/089d5844e119e77d32311f16856296f6

     

    Edit: I actually copied your situation to the item and it worked perfectly, there is something wrong with your code.

     

    https://gyazo.com/2f824857736892a1a6d46dd3316cac05

    it doesnt happen all the time, but it does happen sometimes. its when the camera cant get a good angle it will keep spinning till item is gone

    Link to comment
    Share on other sites

    it doesnt happen all the time, but it does happen sometimes. its when the camera cant get a good angle it will keep spinning till item is gone

    What if you set the interaction setting to move only?

    Link to comment
    Share on other sites

    What if you set the interaction setting to move only?

    havent tried i just made it walk first then loot and that worked 

    Link to comment
    Share on other sites

     

    Make it walk ontop of the pile first before looting

     

    This is what I'm already doing, it doesn't work.

     

    Here's my looting method (It jumps into the else block since the target is not on screen [not rendered])

    public boolean interact(String action, Entity target)
    {
        if (target.isOnScreen())
        {
    	EntityDestination ed = new EntityDestination(getClient(), target);
    	InteractionEvent ie = new InteractionEvent(ed);
    	return ie.interactForceRight(action);
        }
        else
        {
            return target.interactForceRight(action);
        }
    }
    
    Link to comment
    Share on other sites

     

    This is what I'm already doing, it doesn't work.

     

    Here's my looting method (It jumps into the else block since the target is not on screen [not rendered])

    public boolean interact(String action, Entity target)
    {
        if (target.isOnScreen())
        {
    	EntityDestination ed = new EntityDestination(getClient(), target);
    	InteractionEvent ie = new InteractionEvent(ed);
    	return ie.interactForceRight(action);
        }
        else
        {
            return target.interactForceRight(action);
        }
    }
    

    cant really help u if u only post this bit of code, discord me the full code or PM

    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.