Jump to content

Acerd

Scripter I
  • Posts

    5430
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Posts posted by Acerd


  1.  

    CPU: Intel Core i5-4460 3.2GHz Quad-Core Processor  ($169.99 @ SuperBiiz) 





    Video Card: Gigabyte GeForce GTX 960 4GB Video Card  ($243.88 @ OutletPC) 

    Case: Cooler Master N400 ATX Mid Tower Case  ($44.99 @ Newegg) 



    Total: $658.73  ($813 actually - $850-900 in iran)

    Prices include shipping, taxes, and discounts when available

    Generated by PCPartPicker 2016-06-23 04:53 EDT-0400

     

     

     

    thots?

  2. This has never happened to me so I'm kind of confused why this is happening; basically it walks to an area and interacts with NPC and logs that npc isnt null, goes to bank and then goes back to the area , however this time it logs that the NPC is null.

    What am I doing wrong?

    code:

    NPC npc = getNpcs().closest("NPC"); // onloop
         if (!area.contains(myPlayer()) {
           getWalking().webWalk(area);
                } else {
              if (npc != null) {
           log("npc is not null");
             npc.interact();
              } else {
        log("npc is null");
            }
    }
    
  3. use conditionalsleeps instead of while loops

     

    try tis:

               if (getTrade().isCurrentlyTrading()) {
                      if (getTrade().isFirstInterfaceOpen()) {
                          if (getTrade().acceptTrade()) {
                            new ConditionalSleep(5000) {
                              @Override
                              public boolean condition() throws InterruptedException {
                               return getTrade().isSecondInterfaceOpen();
                               }
                              }.sleep();
                             }
                            } else {
                           if (getTrade().acceptTrade()) {
                             new ConditionalSleep(5000) {
                              @Override
                              public boolean condition() throws InterruptedException {
                               return !getTrade().isCurrentlyTrading();
                               }
                              }.sleep();
                             }
                           }
                                 
    

    idk 100% if code will work cause i wrote it on browser

     

    • Like 1
×
×
  • Create New...