Neon Bot
Welcome to NBot! NBot says to Login or Register!
iCookPro - Cathy Cooker Rawrbotad

Join the forum, it's quick and easy

Neon Bot
Welcome to NBot! NBot says to Login or Register!
iCookPro - Cathy Cooker Rawrbotad
Neon Bot
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Neon Bot
NBot build 11.2a launched! Click Here!
Bad Ideas make for great stories
We need more site Activity! Don't let us lose hope in everyone!

You are not connected. Please login or register

iCookPro - Cathy Cooker

2 posters

Go down  Message [Page 1 of 1]

1iCookPro - Cathy Cooker Empty iCookPro - Cathy Cooker Wed Dec 08, 2010 1:54 pm

Sikuma



This script is meant for leveling, not power cooking just one item. Starts with shrimp, go's to tuna, then swords, then sharks. Does all the level calculations itself and you WILL have shrimp/tuna/swordfish left in your bank when your done. Ive tested this script myself and know it works well.
Code:

import bot.*;


public class iCookPro extends Methods {

   public iCookPro(Client mc) {
      super(mc);
   }
   
   
   int[] toCook = {349,351,366,369,545};
   int[] burned = {353,368,371,547};
   int[] cooked = {546,370,367,352,350};
   int[] toWalk = {440,493,435,487,432,482};
   
   int[] stove = getObjectIndex(11);
   int banker = 95;
   
   public void main(String args[]) {
      while(running()) {
         if(getStatCurrent(7) < 30) {
            while(inventoryCount() < 30) {
               while(!inBank()) {
                  talkToNPC(getNPCIndex(banker)[0]);
                  wait(random(2500, 3500));
                  answerQuestion(0);
               }   
               while(inBank()) {
                  wait(500);
                  if(itemCount(toCook[0]) < 29) {
                     withdraw(toCook[0], 29);
                     wait(random(200,400));
                  }
                  closeBank();
               }
               closeBank();   
            }
            while(inventoryCount() >= 30 && itemCount(toCook[0]) >= 1) {
               while(!imAt(toWalk[2], toWalk[3])) {
                  walkTo(toWalk[2], toWalk[3]);
                  wait(random(1000,1500));
               }
               while(!imAt(toWalk[4], toWalk[5])) {
                  walkTo(toWalk[4], toWalk[5]);
                  wait(random(1000,1500));
               }
               while(imAt(toWalk[4], toWalk[5]) && itemCount(toCook[0]) >= 1) {
                  useItemOnObject(getItemSlot(toCook[0]), 432, 480);
                  wait(random(300,500));
                  mc.writeToConsole2("Reaced this");
                  
               }
            }
            while(inventoryCount() >= 30 && itemCount(toCook[0]) < 1) {
               trips++;
               useItem(getItemSlot(1263));
               while(!imAt(toWalk[0], toWalk[1])) {
                  walkTo(toWalk[0], toWalk[1]);
                  wait(random(1000,1500));
               }
               while(!inBank()) {
                  talkToNPC(getNPCIndex(banker)[0]);
                  wait(random(2500, 3500));
                  answerQuestion(0);
                  wait(random(1000,1200));
               }   
               while(inBank()) {
                  wait(1500);
                  if(itemCount(burned[0]) >= 1) {
                     depositAll(burned[0]);
                     wait(300);
                  }
                  if(itemCount(cooked[4]) >= 1) {
                     depositAll(cooked[4]);
                     wait(300);
                  }
                  if(itemCount(toCook[0]) < 1) {
                     withdrawAll(toCook[0]);
                     wait(300);
                  }
                  closeBank();
               }
               closeBank();
            }
               
         }
         if(getStatCurrent(7) >= 30 && getStatCurrent(7) < 50) {
            while(inventoryCount() < 30) {
               while(!inBank()) {
                  talkToNPC(getNPCIndex(banker)[0]);
                  wait(random(3500, 4500));
                  answerQuestion(0);
               }   
               while(inBank()) {
                  wait(500);
                  if(itemCount(toCook[2]) < 29) {
                     withdraw(toCook[2], 29);
                  }
                  closeBank();
               }
               closeBank();   
            }
            while(inventoryCount() >= 30 && itemCount(toCook[2]) >= 1) {
               while(!imAt(toWalk[2], toWalk[3])) {
                  walkTo(toWalk[2], toWalk[3]);
                  wait(random(1000,1500));
               }
               while(!imAt(toWalk[4], toWalk[5])) {
                  walkTo(toWalk[4], toWalk[5]);
                  wait(random(1000,1500));
               }
               while(imAt(toWalk[4], toWalk[5]) && itemCount(toCook[2]) >= 1) {
                  useItemOnObject(getItemSlot(toCook[2]), 432, 480);
                  wait(random(300,500));
                  
               }
            }
            while(inventoryCount() >= 30 && itemCount(toCook[2]) < 1) {
               trips++;
               useItem(getItemSlot(1263));
               while(!imAt(toWalk[0], toWalk[1])) {
                  walkTo(toWalk[0], toWalk[1]);
                  wait(random(1000,1500));
               }
               while(!inBank()) {
                  talkToNPC(getNPCIndex(banker)[0]);
                  wait(random(2500, 3500));
                  answerQuestion(0);
               }   
               while(inBank()) {
                  wait(500);
                  for(int i = 0;i < burned.length;i++) {
                     if(itemCount(burned[i]) >= 1) {
                        depositAll(burned[i]);
                        wait(300);
                     }
                  }
                  for(int i = 0;i < cooked.length;i++) {
                     if(itemCount(cooked[i]) >= 1) {
                        depositAll(cooked[i]);
                        wait(300);
                     }
                  }
                  wait(400);
                  if(itemCount(toCook[2]) < 1) {
                     withdrawAll(toCook[2]);
                     wait(400);
                  }
                  if(itemCount(toCook[0]) >= 1) {
                     depositAll(toCook[0]);
                     wait(300);
                  }
                     closeBank();
                     mc.writeToConsole2("Trips to Bank: "+ trips);
                     mc.writeToConsole2("Projected Fish Amount: "+ trips * 29);
                  }
                  closeBank();
               }
               
         }
         if(getStatCurrent(7) >= 50 && getStatCurrent(7) < 82) {
            while(inventoryCount() < 30) {
               while(!inBank()) {
                  talkToNPC(getNPCIndex(banker)[0]);
                  wait(random(3500, 4500));
                  answerQuestion(0);
               }   
               while(inBank()) {
                  wait(500);
                  if(itemCount(toCook[3]) < 29) {
                     withdraw(toCook[3], 29);
                  }
                  closeBank();
               }
               closeBank();   
            }
            while(inventoryCount() >= 30 && itemCount(toCook[3]) >= 1) {
               while(!imAt(toWalk[2], toWalk[3])) {
                  walkTo(toWalk[2], toWalk[3]);
                  wait(random(1000,1500));
               }
               while(!imAt(toWalk[4], toWalk[5])) {
                  walkTo(toWalk[4], toWalk[5]);
                  wait(random(1000,1500));
               }
               while(imAt(toWalk[4], toWalk[5]) && itemCount(toCook[3]) >= 1) {
                  useItemOnObject(getItemSlot(toCook[3]), 432, 480);
                  wait(random(300,500));
                  
               }
            }
            while(inventoryCount() >= 30 && itemCount(toCook[3]) < 1) {
               trips++;
               useItem(getItemSlot(1263));
               while(!imAt(toWalk[0], toWalk[1])) {
                  walkTo(toWalk[0], toWalk[1]);
                  wait(random(1000,1500));
               }
               while(!inBank()) {
                  talkToNPC(getNPCIndex(banker)[0]);
                  wait(random(2500, 3500));
                  answerQuestion(0);
               }   
               while(inBank()) {
                  wait(500);
                  for(int i = 0;i < burned.length;i++) {
                     if(itemCount(burned[i]) >= 1) {
                        depositAll(burned[i]);
                        wait(300);
                     }
                  }
                  for(int i = 0;i < cooked.length;i++) {
                     if(itemCount(cooked[i]) >= 1) {
                        depositAll(cooked[i]);
                        wait(300);
                     }
                  }
                  wait(400);
                  if(itemCount(toCook[3]) < 1) {
                     withdrawAll(toCook[3]);
                     wait(400);
                  }
                  if(itemCount(toCook[2]) >= 1) {
                     depositAll(toCook[2]);
                     wait(300);
                  }
                     closeBank();
                     mc.writeToConsole2("Trips to Bank: "+ trips);
                     mc.writeToConsole2("Projected Fish Amount: "+ trips * 29);
                  }
                  closeBank();
               }
               
         }
         if(getStatCurrent(7) >= 82) {
            while(inventoryCount() < 30) {
               while(!inBank()) {
                  talkToNPC(getNPCIndex(banker)[0]);
                  wait(random(3500, 4500));
                  answerQuestion(0);
               }   
               while(inBank()) {
                  wait(500);
                  if(itemCount(toCook[4]) < 29) {
                     withdraw(toCook[4], 29);
                  }
                  closeBank();
               }
               closeBank();   
            }
            while(inventoryCount() >= 30 && itemCount(toCook[4]) >= 1) {
               while(!imAt(toWalk[2], toWalk[3])) {
                  walkTo(toWalk[2], toWalk[3]);
                  wait(random(1000,1500));
               }
               while(!imAt(toWalk[4], toWalk[5])) {
                  walkTo(toWalk[4], toWalk[5]);
                  wait(random(1000,1500));
               }
               while(imAt(toWalk[4], toWalk[5]) && itemCount(toCook[4]) >= 1) {
                  useItemOnObject(getItemSlot(toCook[4]), 432, 480);
                  wait(random(300,500));
                  
               }
            }
            while(inventoryCount() >= 30 && itemCount(toCook[4]) < 1) {
               trips++;
               useItem(getItemSlot(1263));
               while(!imAt(toWalk[0], toWalk[1])) {
                  walkTo(toWalk[0], toWalk[1]);
                  wait(random(1000,1500));
               }
               while(!inBank()) {
                  talkToNPC(getNPCIndex(banker)[0]);
                  wait(random(2500, 3500));
                  answerQuestion(0);
               }   
               while(inBank()) {
                  wait(500);
                  for(int i = 0;i < burned.length;i++) {
                     if(itemCount(burned[i]) >= 1) {
                        depositAll(burned[i]);
                        wait(300);
                     }
                  }
                  for(int i = 0;i < cooked.length;i++) {
                     if(itemCount(cooked[i]) >= 1) {
                        depositAll(cooked[i]);
                        wait(300);
                     }
                  }
                  wait(400);
                  if(itemCount(toCook[4]) < 1) {
                     withdrawAll(toCook[4]);
                     wait(400);
                  }
                  if(itemCount(toCook[3]) >= 1) {
                     depositAll(toCook[3]);
                     wait(300);
                  }
                     closeBank();
                     mc.writeToConsole2("Trips to Bank: "+ trips);
                     mc.writeToConsole2("Projected Fish Amount: "+ trips * 29);
                  }
                  closeBank();
               }
               
         }
         
      }
   }
   int trips = 0;
}
http://uppit.com/nyglaijf9cnp/iCookPro.class

Edit: Re-Update this script, it now will bank any extra fish you dont need.



Last edited by Sikuma on Thu Dec 09, 2010 7:44 am; edited 1 time in total (Reason for editing : Simple Edits)

2iCookPro - Cathy Cooker Empty Re: iCookPro - Cathy Cooker Wed Dec 08, 2010 6:09 pm

Joel_T



cooked 1 shirmp and stopped lol

3iCookPro - Cathy Cooker Empty Re: iCookPro - Cathy Cooker Thu Dec 09, 2010 4:36 am

Sikuma



hmm, mine has been running flawlessly :/

edit:
Just ran the script to make sure and its still working just fine for me.

Sponsored content



Back to top  Message [Page 1 of 1]

Similar topics

-

» iFishPro - Cathy Fisher

Permissions in this forum:
You cannot reply to topics in this forum