示例#1
0
 @Override
 public int loop() {
   // TODO Auto-generated method stub
   if (!Players.getMyPlayer().isMoving() && !Players.getMyPlayer().isAnimating()) {
     pickpocketNpc(getNpcId(npcChoice));
   }
   return Random.next(300, 600);
 }
示例#2
0
 /**
  * Anti ban
  *
  * @param npc
  * @return true
  */
 public boolean antiBan(Npc npc) {
   Logger.print("Anti-ban");
   int val = Random.next(1, 7);
   switch (val) {
     case 1:
       Camera.rotateRandomly();
       break;
     case 2:
       Camera.face(npc);
       break;
     case 3:
       Mouse.moveRandomly(0, 1000);
       break;
   }
   Sleep.millis(100, 400);
   return true;
 }