Jump to content

Ande

Members
  • Posts

    555
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Posts posted by Ande

  1. This have happened few times to me. Sometimes when npc dies/vanishes(like random events), the client still shows the npc id as if the npc still was there. First I thought it was some bug in my script but then I turned on the npc debug and noticed it showed the id.

    Logging out and in works in some cases but not always and you have to hop world to solve the issue.

     

    This happened when the bot exited surprise exam. It tried to interact with that npc for like 30minutes until I noticed it.

    1a32693881.png

    7801a8cb77.png5bc5c7257d.png

  2.  I was really bored one night and decided to do something productive and came up with this.

     public boolean interactWithTableItem(GroundItem tableItem, String action, int tableHeight) throws InterruptedException {
            Point p = org.osbot.script.rs2.utility.Utilities.getScreenCoordinates(bot, tableItem.getGridX(), tableItem.getGridY(), tableHeight);
            int height = (int) tableItem.getMouseDestination().getBoundingBox().getHeight();
            int width = (int) tableItem.getMouseDestination().getBoundingBox().getWidth();
            return selectOption(null, new RectangleDestination(p.x - width / 2, p.y - height / 2, width, height), action);
        }

    It seems to work well on small items like pots,garlics and books. Didn't test on anything bigger.

     

    You can get the table height by using:

    RS2Object table = closestObjectForName("Table");
    int height = table.getModel().getHeight();
    

    Not sure if that is the right value but it should be something around 100-125 for most tables/crates etc.

    • Like 2
  3. The mouse movements when interacting with moving npcs seems to be a bit laggy. The mouse is moving very slowly sometimes.

    I'm using selectEntityOption() with mousespeed 16

    Dunno if this should be posted to the Errors/Bugs section.

     

    The gif is bit bad but I think you can see the problem.

     

    8e32b9f444.gif

  4. Been in OFFLINE mode for like 10hours. Tried disabling av and firewall, redownloading client, restarting client, deleting OSBot folder, using older versions 1.6.3-1.7.11.

    I'm using jdk1.7.0_25

    Nothing seems to work so I think there might be something wrong on the servers and many people seems to be experiencing the same problem.

     

    [iNFO ][06/23/13 07:14:57 ip.]: Connecting to remote server...

    [iNFO ][06/23/13 07:15:02 ip.]: Failed to connect to remote server!

    java.net.SocketTimeoutException: connect timed out

    at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)

    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)

    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)

    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

    at java.net.PlainSocketImpl.connect(Unknown Source)

    at java.net.SocksSocketImpl.connect(Unknown Source)

    at java.net.Socket.connect(Unknown Source)

    at org.osbot.eB.e(zm:214)

    at org.osbot.eB.E(zm:170)

    at org.osbot.E.run(zm:422)

    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

    at java.util.concurrent.FutureTask.run(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

    at java.lang.Thread.run(Unknown Source)

    [iNFO ][06/23/13 07:15:03 ip.]: Retrying in 5 seconds...

    • Like 1
×
×
  • Create New...