Jump to content

SpanishFly

Trade With Caution
  • Posts

    9
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by SpanishFly

  1. Create a global instance of shop in your script. To do so, place this above your onStart method: Shop shop = new Shop(this); Here is an example of how you can use the shop after you have have created the global instance: if (shop.isOpen()) { ShopItem fireRune = shop.getShopItem(FIRE_RUNE_ID); //FIRE_RUNE_ID is a global int with value of 554 if (fireRune != null && fireRune.getAmount() > 0) { fireRune.buy10(); } }
  2. It's spam clicking for me and I haven't been able to solve the problem yet. I don't like the osbot API very much. If I could do someting simple like this: public void buy10() { Point p = item.getPoint(); scr.client.moveMouseTo(p); scr.sleep(Script.random(250, 300)); scr.client.clickMouse(false); Point optionPoint = new Point(p.x, p.y + Script.random(67, 70)); scr.client.moveMouseTo(optionPoint); scr.client.clickMouse(true); } I would be able to make something that atleast works, but we have to use MouseDestinations, RectangleDestinations and have a bunch of extra arguments to the mouse methods and I can't find any explanation of these objects and methods. http://osbot.org/api/ is not very helpful.
×
×
  • Create New...