Jump to content

Acerd

Scripter I
  • Posts

    5430
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Posts posted by Acerd

  1. You can use them, but make sure to properly break out of them.

    Getting a user stuck for 8 hours because a while loop didn't break properly is pretty annoying biggrin.png

     

    I didn't even use 1 while loop in all of my scripts smile.png

     

    Basicly this: (I'm using my own timer class though, not sure how osbots timer work)

    Timer animationTimer = new Timer(0);
    
    public void fletch(){
       if (script.myPlayer().isAnimating())
          animationTimer.reset();
    
       if (animationTimer.getElapsed() > 2000) { //time between animations
          //start fletching
       }else{
          //we are fletching
       }
    }
    

    Khaleesi

    thx

     

  2. Don't use while loops in osbot please.

    Here's my secret. Create a timer. Set it to 0. Check the time passed. Before your fletching method. (Select knife and log). Do a animation check if true reset the timer.

    Then do a else if statements after. Check the timer and see if it passed like 4 secs. Then you would use your fletching method

    Could you give me an example (code) ? im still learning :E

     

    thanks in advance

  3.  

     public boolean isFletching() {
      boolean isFletching = false;
      Timer timer = new Timer(1800, null);
      while (timer.isRunning() && !isFletching) {
       isFletching = myPlayer().getAnimation() != -1 ? true : isFletching;
      }
      return isFletching;
     }
     
     public boolean isStringing() {
      boolean isStringing = false;
      Timer timer = new Timer(1200, null);
      while (timer.isRunning() && !isStringing) {
       isStringing = myPlayer().getAnimation() != -1 ? true : isStringing;
      }
      return isStringing;
     }


     

    These doesnt work can you tell me what im doing wrong?.

  4. AssHerblore

    (I need a 180x180 Logo for free if anyone can make it , also I wouldn't mind a paint aswell)

     

    Features

    Simple and Easy GUI to use
    Basic Paint
    AntiBan

    Makes most potions

     

    Instructions

    1. Start at any bank.

    2.  Make sure your inventory is empty.

    3. Start the script.

    4. Choose your potion.

     

     

    Progress Reports

    None - Script has not been tested - 2 Hours proggy for SDN Upload Request

     

    Download Link

    http://uppit.com/oitbpq1fssdy/assherblore.jar

     
    • Like 1
  5. When I bot I get less bans than when I play legit emote3.png

    This applies to me.

    I've been permed 3 times for playing legit , but never for botting. emote32342.png

     

     

     

    It's working for me...

     

    497pS5n.png

     

    holy shit thats so old

×
×
  • Create New...