Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Grind_Flour(){
  2.    
  3.     if(PBot.getStamina()<=30){
  4.         Utils.drink();
  5.     }
  6.     if(PBot.getStamina()>=90{
  7.     if(PBot.getEnergy()<=3000){
  8.    
  9.    
  10.     var allGobs = PBot.getGobs();
  11.     var gobs = [];
  12.    
  13.    
  14.     for(var i=0; i<allGobs.length; i++) {
  15.         if(PBot.getGobName(allGobs[i]) == "gfx/terobjs/barrel")
  16.         {
  17.             gobs.push(allGobs[i]);
  18.         }
  19.     }
  20.    
  21.     PBot.pfRightClick(gobs[0], null);
  22.     PBot.craftItem("flour", 1);
  23.    
  24.     }
  25.     }
  26.     }
  27. }
  28. // PBot.getGobName(allGobs[i]) == "gfx/terobjs/barrel"
  29.  
  30. function pij(){
  31.     Utils.drink();
  32.    
  33.     PBot.closeWindow(PBotWindow);
  34.    
  35. }
  36.  
  37. function test(){
  38.  
  39.    
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement