Jump to content

Chris

Scripter II
  • Posts

    8355
  • Joined

  • Last visited

  • Days Won

    14
  • Feedback

    100%

Everything posted by Chris

  1. My Skype osbotsinatra1 Noob qverkk @qverkk READ: I can make a decent paint for your script for free (just give a little credit )
  2. y = 0 for the x-intercept(s) x = 0 for the y-intercept(s) Skype: osbotsinatra1
  3. private State getState() { NPC yak = npcs.closest("Yak"); if (yak != null) return State.ATTACK; return State.WAIT; } remove this NPC yak = npcs.closest("Yak"); if (yak != null) return State.ATTACK; return State.WAIT; and you could change it in different ways. Mine may not be the best but it works if (!myplayer().isanimating && !myplayer.isUnderAttack) return State.ATTACK; return State.WAIT; then your case can be changed from to.. case ATTACK: NPC target = npcs.closest(new Filter<NPC>() //add the whole filter code snippet i gave at top. here if (target != null && !combat.isFighting() && target.isAttackable()) { target.interact("Attack"); status = "Interacting with Yak"; sleep(random(500, 800)); } break;
  4. NPC target = npcs.closest(new Filter<NPC>() { @Override public boolean match(NPC npc) { return npc != null && npc.getName().equals("Yak") && !npc.isUnderAttack() && npc.getHealth() > 0 && map.canReach(npc); } });
  5. Can confirm that he was doing some questing for me. He hasn't done anything with any of my items but I did pay him before the questing started. He did some of what was promised and I still have hope. I don't want to shame him but I let him take as long as he wanted because I wasn't using the account. Hope its okay to post and I will be changing my password till this dispute clears..
  6. This is my fight class: public class Fighting implements Activity { @Override public boolean shouldDoActivity(Script s) { return (); //Code being validated } //attack anim =390 || 829 for eating @Override public int doActivity(Script s) throws InterruptedException { //....Code being executed } return 0; } And I will try that
  7. How would I effectively initialize a fighting class? My execute() is okay Just my validate() is always returning true and takes a chunk out of my CPU : ~35%+ ( in my fighting node) All my other node calls are fine and use low amounts! : ~8% altogether I only want it to call the Fighting node when NPC is onscreen and Loot is not on the ground. I have tried workarounds to what I can understand from looking through the API but you big scripters can help OSBOTS #1 NOOB SCRIPTER? Example of what I am using: @Override public boolean shouldDoActivity(Script s) { return (Constants.areaDragons.contains(s.myPlayer()) && s.groundItems.closest(Constants.areaDragons,Constants.loot) == null && !s.myPlayer().isAnimating() && !s.myPlayer().isUnderAttack()); //This is where it willl validate if its truel... Execute... etc. } Help me babes
  8. And sell quick as fuck and drop the account and make dif ones
  9. Dual 780tis || 980ti, skylake i5 or i7 processor
  10. Right click osbot file > "Open with..." > Choose an app > select Java
  11. RS2Widget smeltMenu = widgets.get(311,30); if(smeltMenu != null && smeltMenu.isVisible()) smeltMenu.interact("Smelt 10"); smeltMenu.interact("Smelt 10"); "Smelt 10" is what the menu says? it has to be exact wording
×
×
  • Create New...