Jump to content

ni562

Members
  • Posts

    74
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by ni562

  1. I'm not sure i follow..how does checking for null not make it crash? Does it skip the 2nd condition because it's an or and the first condition was true?
  2. Hey thanks, that seems to fix the issue... if i change you're code from if(spinMenu == null || !spinMenu.isVisible()){ to if (!spinMenu.isVisible()) { I get a null pointer on that line...How come it works when I check for null, but crashes when i don't?
  3. The first bit of code runs smoothly, but the 2nd freezes my client... any ideas? if(!player.isAnimating()){ if (!player.isMoving()){ wheel.interact("Spin"); //Wheel is now visible, spin bowstring sleep(random(700, 3000)); spinMenu.hover(); mouse.click(true); if(menu.isOpen()){ sleep(random(700, 3000)); menu.selectAction("Make X"); } } } vs if(!player.isAnimating()){ if (!player.isMoving()){ if(!spinMenu.isVisible()){ wheel.interact("Spin"); //Wheel is now visible, spin bowstring sleep(random(700, 3000)); } spinMenu.hover(); mouse.click(true); if(menu.isOpen()){ sleep(random(700, 3000)); menu.selectAction("Make X"); } } }
  4. ni562

    Mouse speed

    thanks for the info. Isn't it more likely to get banned when you're moving you're mouse a million miles a second?
  5. Hey i'm wondering if mouse speed should be a factor in my script? I think so but just wondering. I'm trying the code bellow but i dont think i see a difference in the mouse speed.. public void onStart(){ mouse.setSpeed(1); }
  6. thanks mate, fixed it with this RS2Object wheel = objects.closest(SPIN_WHEEL);
  7. Hey guys i'm making a flax spinning bot as my first script. I am having a problem creating an entity == to the spinning wheel. import org.osbot.rs07.api.model.Entity; . . . . . Entity wheel = closest("Spinning wheel"); I keep getting "closest(STRING) is undefined for the type class <FlaxPicker>" error. Any ideas?
×
×
  • Create New...