Neon Bot
Welcome to NBot! NBot says to Login or Register!
Catherby Harpoon Fisher Rawrbotad

Join the forum, it's quick and easy

Neon Bot
Welcome to NBot! NBot says to Login or Register!
Catherby Harpoon Fisher 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

Catherby Harpoon Fisher

2 posters

Go down  Message [Page 1 of 1]

1Catherby Harpoon Fisher Empty Catherby Harpoon Fisher Wed Dec 01, 2010 4:08 pm

Lowrider

Lowrider

Hello everyone. Here is a tuna and swordie fisher for catherby. I hope you all enjoy!! Very Happy Please rate and comment for more scripts

Code:

import bot.*;
import java.awt.*;

public class CathFish extends Methods {
  long startTime;
  int fishLured, fails; 
 

public CathFish(Client mc) {super(mc);}
  public void main(String args[]) {
      startTime = System.currentTimeMillis();
      printMessage("@or2@System: @cya@Cath Fisher has been launched...");
      printMessage("@or2@System: @cya@Script by Lowrider"); 
    printMessage("@or2@System: @cya@Script layout by TimeDead");
      while(running()) {

      try {
            while(inventoryCount() < 30) {
              int[] pool = getObjectIndex(194);
              if(pool[0] != -1 && !sleeping() && fatigue() != 100L) {
                  useObject(pool[1], pool[2]);
                  wait(random(2000, 3000));
              }
              wait(50);
            }

            // toBank
            int x = random(423, 424);
            int y = random(496, 498);
            while(!imAt(x, y)) {
              walkTo(x, y);
              wait(random(2000, 3000));
            }
            x = random(440, 438);
            y = random(495, 494);
            while(!imAt(x, y))  {
              walkTo(x, y);
              wait(random(2000, 3000));
            }
            //bank
            while(!questionMenu()) {
              talkToNPC(getNPCIndex(95)[0]);
              wait(random(3000, 4000));
            }
            answerQuestion(0);
            while(!inBank())
              wait(1500);
            depositAll(366);
            wait(random(500, 1500));
            if(mc.method58(366) > 0)
              depositAll(366);
            wait(500);
            depositAll(369);
            wait(random(500, 1500));
            if(mc.method58(369) > 0)
              depositAll(369);
            wait(500);
            closeBank();
           
            //fishWalk
            x = random(428, 427);
            y = random(497, 496);
            while(!imAt(x, y)) {
              walkTo(x, y);
              wait(random(2000, 3000));
            }
            x = random(413, 411);
            y = random(499, 499);
            while(!imAt(x, y)) {
              walkTo(x, y);
              wait(random(2000, 3000));
            }
            x = random(409, 409);
            y = random(503, 503);
            while(!imAt(x, y)) {
              walkTo(x, y);
              wait(random(2000, 3000));
            }
        }
        catch(Exception e) {}
      }
  }

public void onChatMessage(int modstatus, String name, String message) {
    String s = name.toLowerCase();
    if (modstatus != 4 && modstatus != 7) {
        printMessage("@red@Warning: @whi@Mod detected");
        String m = message.toLowerCase();
        if (m.contains("YOUR NAME HERE")) {
          printMessage("@ran@Mod is talking to you! Respond we are stopping.");
          stop();
        }
  if(s.startsWith("Mod") || s.contains("mod") || s.contains("bot") || s.contains("Bot") || s.contains("Pyru") || s.contains("Lister")){
    speak("Hey");   
    stop();
         
                              printMessage("Mod detected, script and ocr stopped");
  }
  }
    }
  public void onStop() {
      handleCommand("status");
      printMessage("@or2@Fisher: @yel@stopped");
  }
 
  public boolean onServerMessage(String s) {
      s = s.toLowerCase();
      if(s.contains("you catch a")) {
        fishLured ++;
        return true;
      }
      else if(s.contains("you attempt to catch some"))
        return true;
      else if(s.contains("you fail to catch anything")) {
        fails ++;
        return true;
      }
     
      return false;
  }
 
  public void handleCommand(String s) {
      int index = s.indexOf(" ");
      String cmd = s;
      String args[] = new String[0];
      if(index != -1) {
        cmd = s.substring(0, index).trim();
        args = s.substring(index + 1).trim().split(" ");
      }
     
      if(cmd.equals("status")) {
        printMessage("@or2@Fisher: @yel@been running for: @or2@" + timeSince(startTime) + " @yel@fish lured: @or2@" + fishLured + " @yel@fails: @or2@" + fails);
      }
  }
}



Last edited by Lowrider on Fri Dec 03, 2010 12:40 am; edited 1 time in total

2Catherby Harpoon Fisher Empty Re: Catherby Harpoon Fisher Thu Dec 02, 2010 12:10 pm

flippaaja



works great thanks mon Cool

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