Advertisement
Guest User

Untitled

a guest
Aug 29th, 2013
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //#! name = Mussels auto pick up
  2. //#! tooltip = Automatically pick ups mussels around you, just get close to them and press!
  3. //#! icon = gfx/invobjs/mussel
  4.  
  5. include("api/jBotAPI");
  6.  
  7. function Main(){
  8.     while(true){
  9.         var mussels = jFindObjectByName("mussel", 15);
  10.         if(mussels != null && checkInventory().freeSlots() > 0){
  11.        
  12.                     jDoClick(mussels.getID(), 3, 0);
  13.                     jSleep(100);
  14.                        
  15.                     if(jWaitPopup(200)){jSelectContextMenu("Pick"); jWaitProgress(actionTimeout);}
  16.  
  17.         }else{jToConsole("There isn't more mussels or space in the inventory!"); break;}
  18.     }
  19. }
  20.  
  21. Main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement