Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Grind_Flour(){
- if(PBot.getStamina()<=30){
- Utils.drink();
- }
- if(PBot.getStamina()>=90{
- if(PBot.getEnergy()<=3000){
- var allGobs = PBot.getGobs();
- var gobs = [];
- for(var i=0; i<allGobs.length; i++) {
- if(PBot.getGobName(allGobs[i]) == "gfx/terobjs/barrel")
- {
- gobs.push(allGobs[i]);
- }
- }
- PBot.pfRightClick(gobs[0], null);
- PBot.craftItem("flour", 1);
- }
- }
- }
- }
- // PBot.getGobName(allGobs[i]) == "gfx/terobjs/barrel"
- function pij(){
- Utils.drink();
- PBot.closeWindow(PBotWindow);
- }
- function test(){
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement